This project has moved and is read-only. For the latest updates, please go here.

Ldap connection error

Mar 25, 2016 at 10:24 PM
I try to add a connection to an LDAP Sun v11 with the following values :

LDAP Path : LDAPS://IP_Of_The_LDAP_Server
Username : uid=xxxx,ou=xxx,dc=xxx
Password : xxx

The Secure checkbox is checked.

When i click on the button "Test LDAP Connection", i have this error :
Unable to connect to LDAP for following reason:
Unknown error (0x80005000)
It may be expected if w3wp process of central admin has intentionally no access to LDAP server.

I have activated the LDAPCP log but there is no message ...

Can LDAPCP connect to a LDAP SUN ? Can LDAPCP connect to an LDAPS server ?
Thanks a lot for your help.
Mar 28, 2016 at 9:57 AM
Yvand,
can you answer me please ?
This is a point very important for my project and my customer.

Thank you so much in advance.

Best regards.
Mar 29, 2016 at 4:05 PM
hello,
I never tested myself but it should definitely work. LDAPCP entirely relies on DirectoryEntry class ( https://msdn.microsoft.com/en-us/library/system.directoryservices.directoryentry.aspx ).
For your information, I just published an update, and among other improvements it dumps the détails of the exception when test of LDAP connection fails, maybe it will give you more information on what's wrong.
Thanks,
Yvan
Mar 29, 2016 at 4:16 PM
Hello Yvand,
thanks a lot for your answer. I'm going to test your new version as soon as possible and tell you if i have found the solution.
Many thanks.
Apr 20, 2016 at 3:26 PM
Hello Yvand,
i have found the solution to connect with LDAPCP to my Ldap Sun Server with LDAPS !

The connection string is :

LDAP Path : LDAP://ServerDNSName/uid=xxx,ou=xxx,dc=xxx
Username : uid=xxxx,ou=xxx,dc=xxx
Password : xxx

Check the FastBind box

The public certificate and root certification chain of the ldaps must be in the local store of the Sharepoint server.
I have found the solution thanks to this site : http://poshcode.org/86

Regards
Apr 21, 2016 at 4:04 PM
Great, thanks for posting the solution here!
Apr 28, 2016 at 3:18 PM
Hello,
i have just forgotten the port 636 in the LDAP connection string...
So the LDAP Path is : LDAP://ServerDNSName:636/uid=xxx,ou=xxx,dc=xxx

Regards
Nov 4, 2016 at 4:41 PM
Hello,
the previous ldap path works when we click on "Test LDAP Connection" from the "Global configuration" (LDAPCP Configuration on Security page of Central Administration) but the people picker gave no results.

With this LDAP Connection String, the people picker works and display results !!!!
LDAP Path : LDAP://ServerDNSName:636/dc=xxx
Username : uid=xxxx,ou=xxx,dc=xxx
Password : xxx

Check the FastBind box and optionnaly Encryption

Note : the claim mapping has to be done too. Otherwise the people won't display any results.
Marked as answer by Fabguy91 on 11/4/2016 at 8:41 AM