ldapconnection

Unable to turn on SecureSocketLayer with DirectoryServices.Protocols.LdapConnection

送分小仙女□ 提交于 2019-12-05 08:48:54
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] public void SecureSocketLayerSetToTrue( ) { var ldapConnection = new LdapConnection( new LdapDirectoryIdentifier( "ldap.test.com", 636 )); ldapConnection.SessionOptions.SecureSocketLayer = true; Assert.IsTrue( ldapConnection.SessionOptions.SecureSocketLayer ); } The test fails. Is there something here that I am missing? It turns out that the way that the

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

本秂侑毒 提交于 2019-12-01 17:55:23
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 problem is, when I try to log in, it takes my username XXXXXXXX and pre-pends it to the search base as uid. So it tries to log me in as : uid=XXXXXXXX,ou=people,o=mycompany Which would work on our Sun LDAP server, but doesn't work on our Novell edirectory LDAP server. edirectory only works when I try to log in as the distinguished name : cn=XXXXXXXX,ou

memberOf vs. groupMembership in LDAP (Liferay)

左心房为你撑大大i 提交于 2019-11-29 04:35:25
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 groups automatically. And when I changed the group variable from 'groupMembership' to 'memberOf', several users are not able to login to Liferay. What exactly are memberOf and groupMembership variables? memberOf is not a "variable", it is an attribute, or more accurately, it is a virtual attribute, or a dynamic attribute generated on the fly by some

LDAP: How to authenticate user with connection details

浪子不回头ぞ 提交于 2019-11-27 18:38:07
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 search a sAMAccountName value using above details, but how to authenticate a user with user name and password? If you follow my previous questions then you will understand that, I am successfully able to connect to LDAP server but not able to authenticate him. User to authenticate: user: someusername password: somepwd I am not able to connect to LDAP server

memberOf vs. groupMembership in LDAP (Liferay)

女生的网名这么多〃 提交于 2019-11-27 18:20:21
问题 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 groups automatically. And when I changed the group variable from 'groupMembership' to 'memberOf', several users are not able to login to Liferay. What exactly are memberOf and groupMembership variables? 回答1: memberOf is not a "variable", it is an

LDAP: How to authenticate user with connection details

醉酒当歌 提交于 2019-11-26 19:32:01
问题 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 search a sAMAccountName value using above details, but how to authenticate a user with user name and password? If you follow my previous questions then you will understand that, I am successfully able to connect to LDAP server but not able to authenticate