Questions tagged [ldapconnection]

The LdapConnection class creates a TCP/IP or UDP LDAP connection to Microsoft Active Directory Domain Services or an LDAP server.

105 questions
10
votes
4 answers

LDAP: How to authenticate user with connection details

I am not able to authenticate a user using LDAP. I have got following details: URL=ldap://10.10.10.10:389 LDAP BASE:DC=lab2,DC=ins LDAP Bind Account: CN=Ldap Bind,OU=Service Accounts,OU=TECH,DC=lab2,DC=ins LDAP Bind Account Pw: secret I can…
Himanshu Yadav
  • 13,315
  • 46
  • 162
  • 291
8
votes
1 answer

memberOf vs. groupMembership in LDAP (Liferay)

What is the difference b/n memberOf attribute and groupMembership attribute when used in LDAP Authentication settings in Liferay? The users are imported successfully. The groups are also imported successfully. But the users are not assigned to the…
Ashok Goli
  • 5,043
  • 8
  • 38
  • 68
7
votes
1 answer

Unable to turn on SecureSocketLayer with DirectoryServices.Protocols.LdapConnection

I am trying to fix a bug with SSL in a product and noticed that although the code sets SSL to be true, in the next line in the code SSL is still at false. I wrote a unit test for this and the unit test confirms my suspicions. [TestMethod] …
Jared
  • 5,977
  • 10
  • 38
  • 48
6
votes
2 answers

What's the difference in using distinguished name with cn or uid when logging into LDAP?

I'm running into a problem using LDAP to authenticate logins. We are using a Novell edirectory for authentication of other applications like Jira. ( Jira works perfect ). I have this application that allow these basic LDAP configurations: My…
jeph perro
  • 6,242
  • 26
  • 90
  • 124
6
votes
3 answers

How to use UnboundID SDK to connect to an LDAP server with the SSL server certificate?

I have in my hand an SSL LDAP server certificate. I want to use it to connect to the LDAP server using UnboundID SDK. I do not want to use com.unboundid.util.ssl.TrustAllTrustManager as was showed here: Using UnboundID SDK with an SSL certificate…
Michael
  • 10,063
  • 18
  • 65
  • 104
5
votes
1 answer

LDAPException when trying to connect using userPrincipalName

We made a new enhancement to the client around LDAP, to enable login using userPrincipalName. He was earlier using sAMAccountName for login. When the user tried to test the application in his test environment, he is getting the following error for…
Nitin Avula
  • 333
  • 2
  • 7
  • 21
5
votes
2 answers

C# LDAP SetPassword throws The RPC server is unavailable

I am trying to create a new user -> set password and enable account . earlier i was using 1 single object , but after looking at a few posts i decided to use 'using' for 3 different operations string strDisplayName = txtFirstName.Text + " "…
Rajat banerjee
  • 1,781
  • 3
  • 17
  • 35
5
votes
1 answer

error on connecting to OpenLDAP using LdapConnection

using (LdapConnection ldap = new LdapConnection("localhost:389")) { //ldap.AuthType = AuthType.Basic; ldap.Bind(new NetworkCredential("cn=manager,dc=wave,dc=com", "secret")); } I tried with both with…
BreakHead
  • 10,480
  • 36
  • 112
  • 165
4
votes
2 answers

LDAP: error code 49 - cannot bind the principalDn

I'm a newbie to ApacheDS.I just created a new partition in ApcheDS. When i try to register my connection factory i get above error..(with OracleAQ ) My code is; // ldap settings env.put(Context.INITIAL_CONTEXT_FACTORY,…
Ratha
  • 9,434
  • 17
  • 85
  • 163
4
votes
1 answer

Ldap ssl with dynamic truststore

I am trying to connect to a ldap over ssl. I have generated a .jks file with the certificate entry. I do not want to import this to cacerts rather want to access it dynamically when i initialize the ldap connection. if (sslAuth) { ldapHost =…
geekops
  • 505
  • 8
  • 21
4
votes
2 answers

Sanitize LDAP_bind query

I know that when I query a MySQL database in PHP from user entered data, the data should be sanitized. For a project that I am starting up, I will be authenticating against Active Directory for use login using the ldap_bind() function. I've taken…
4
votes
1 answer

Retrieve all users and their roles from LDAP using Java

I have a Web application. For LDAP I am using Apache Directive Studio. I want to get all the users and their roles in my application. I am able to get particular information by using the following code. import java.util.Properties; import…
Mitul Maheshwari
  • 2,647
  • 4
  • 24
  • 38
4
votes
1 answer

Error Number in LDAP binding using ruby

I m using following code to check whether the provided parameters are correct or not for binding.. require 'rubygems' require 'net/ldap' ldap = Net::LDAP.new ldap.host = your_server_ip_address ldap.port = 389 ldap.auth "joe_user", "opensesame" if…
Sonal S.
  • 1,444
  • 1
  • 15
  • 31
3
votes
4 answers

PHP - Catch timeout exception from ldap_connect()

I've written a little monitoring script in PHP, which should monitor a virtual directory and it's active directories. Everything works fine but when the virtual directory service freezes is my ldap_connect() not able to connect but also doesn't get…
TehQuila
  • 628
  • 1
  • 8
  • 19
3
votes
1 answer

LDAP Connection error ("The server is not operational.") when connecting to port 636

I am trying to connect to LDAP with port 636 but i am getting error "The server is not operational" but if I try to connect to port 389 then it connects normally and get data This is the code i am using DirectoryEntry entry = new…
Arijit Das
  • 33
  • 1
  • 5
1
2 3 4 5 6 7