ldapconnection

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

旧巷老猫 提交于 2020-01-21 11:35:12
问题 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

python and ldap via SSL

蓝咒 提交于 2019-12-25 10:36:11
问题 I try to query an Active Directory Server with python which works fine. But now I don't want to send my credentials unencrypted on the wire, so I'd like to use LDAPs. Is there an easy way to do this? All I found till now was that I had to add this option: l.set_option(ldap.OPT_X_TLS_CACERTFILE,'/path/to/my/Ca.pem') But I actually don't want to get the CA cert or a correct cert and verify that as well. Sure, from a security perspective I should verify that my communication partner is the

python and ldap via SSL

一曲冷凌霜 提交于 2019-12-25 10:34:03
问题 I try to query an Active Directory Server with python which works fine. But now I don't want to send my credentials unencrypted on the wire, so I'd like to use LDAPs. Is there an easy way to do this? All I found till now was that I had to add this option: l.set_option(ldap.OPT_X_TLS_CACERTFILE,'/path/to/my/Ca.pem') But I actually don't want to get the CA cert or a correct cert and verify that as well. Sure, from a security perspective I should verify that my communication partner is the

LDAPException size limit exceeded

跟風遠走 提交于 2019-12-24 13:24:08
问题 I am using unboundid ldap sdk for executing ldap query. I am facing a strange problem while running ldap search query. I am getting a Exception when i run query against a group which contains 50k entries. My Exception : LDAPException(resultCode=4 (size limit exceeded), errorMessage='size limit exceeded') at com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPSearchResults.nextElement(LDAPSearchResults.java:254) at com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPSearchResults.next(LDAPSearchResults.java:279

phabricator LDAP connection failed

。_饼干妹妹 提交于 2019-12-13 16:24:32
问题 I'm trying to configure LDAP authentification in Phabricator. the setup on /config/group/ldap/have been done. However, when trying to login using LDAP, phabricator is answering tby the following error: >>> UNRECOVERABLE FATAL ERROR <<< Call to undefined function ldap_connect() /sfrphabricator/phabricator/src/applications/auth/ldap/PhabricatorLDAPProvider.php:110 ┻━┻ ︵ ¯\_(ツ)_/¯ ︵ ┻━┻ Is there any configuration trick for ldap authentification for phabricator ? 回答1: If you have another DN for

Error 0x80005000 with LdapConnection and LDAPS

老子叫甜甜 提交于 2019-12-13 06:37:20
问题 Before I start, I've already visited Unknown Error (0x80005000) with LDAPS Connection and changed my code and while it did solve the problem it seems that it has mysteriously come back. Here's the good stuff: public static bool Authenticate(string username, string password, string domain) { bool authentic = false; try { LdapConnection con = new LdapConnection( new LdapDirectoryIdentifier(Host, Port)); if (IsSSL) { con.SessionOptions.SecureSocketLayer = true; con.SessionOptions

Implementation of timeout in LDAP

血红的双手。 提交于 2019-12-12 10:01:21
问题 I have been handling an application in which we are using LDAP to fetch user details. Sometimes it will take more time to fetch user details. I want to implement time out on methods that fetch details so that we can avoid hanging transactions in server in worst case. Here we are using LdapUtil class in which we have configured LdapTemplate class to fetch the required details. How can we implement timeout on LDAP methods? (In this case ldapTemplate.search(...) methods) public class LdapUtil {

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

可紊 提交于 2019-12-12 08:02:13
问题 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 file to connect to LDAP server in Android app The following TrustManagers not fit our product requirements: com.unboundid.util.ssl.PromptTrustManager com.unboundid.util.ssl.HostNameTrustManager com.unboundid.util.ssl.ValidityDateTrustManager I do not

Unable to turn on SecureSocketLayer with DirectoryServices.Protocols.LdapConnection

强颜欢笑 提交于 2019-12-07 05:30:11
问题 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

Implementation of timeout in LDAP

拜拜、爱过 提交于 2019-12-06 08:59:29
I have been handling an application in which we are using LDAP to fetch user details. Sometimes it will take more time to fetch user details. I want to implement time out on methods that fetch details so that we can avoid hanging transactions in server in worst case. Here we are using LdapUtil class in which we have configured LdapTemplate class to fetch the required details. How can we implement timeout on LDAP methods? (In this case ldapTemplate.search(...) methods) public class LdapUtil { @Autowired(required = true) @Qualifier(value = "ldapTemplateApp") LdapTemplate ldapTemplate; public Set