LDAPCP for Sharepoint2010

Dec 18, 2014 at 5:56 PM
we are trying to setup ldapcp for sharepoint2010 . we are getting following error.

has anyone got this error

12/04/2014 10:01:01.97 w3wp.exe (0x1BA8) 0x1C90 LDAPCP LDAP Lookup 1337 Medium [LDAPCP] Connect as uid=sharepointImportQA, ou=People, o=Administrators, l=us, dc=mylife,dc=com to LDAP://myldapserver:389/DC=mylife,DC=com. db9c6092-bc9a-4673-8a7b-5a94c72fc350
12/04/2014 10:01:01.98 w3wp.exe (0x1BA8) 0x1C90 LDAPCP LDAP Lookup 1337 Unexpected [LDAPCP] Unexpected error during connection to LDAP server "LDAP://myldapserver:389/DC=mylife,DC=com": Object reference not set to an instance of an object.. Callstack: at ldapcp.LDAPCP.SearchObjectsInLDAP(String filter, Uri context, String[] entityTypes, List`1& LDAPSearchResults) db9c6092-bc9a-4673-8a7b-5a94c72fc350
Dec 18, 2014 at 5:58 PM
12/04/2014 10:01:01.98 w3wp.exe (0x1BA8) 0x1C90 SharePoint Foundation Web Controls ad5x Medium Claims Search call failed. Error Message: Object reference not set to an instance of an object. Callstack: at Microsoft.SharePoint.WebControls.PeopleQueryControl.IssueClaimsQuery(String searchPattern, String providerID, String hierarchyNodeID, Int32 pageSize, SPProviderHierarchyTree spgroupTree). db9c6092-bc9a-4673-8a7b-5a94c72fc350
Dec 18, 2014 at 5:59 PM
Does LDAP cp works on SharePoint 2010 and Oracle Directory 6.3.1.1 ?
Coordinator
Dec 19, 2014 at 8:38 AM
Hello,
LDAPCP should work with any LDAP directory, and according to the callstack this doesn't look like an error related to LDAP server (exception occurs in LDAPCP.SearchObjectsInLDAP, not in .NET directory services API).
Is there any chance you generate a dump on the null reference exception and share it with me, so that I can check why it occurs?
cheers,
Yvan
Dec 19, 2014 at 5:14 PM
Thank you for quick response. I will provide dump. in one or two days.
Mar 17, 2015 at 2:36 AM
Edited Mar 23, 2015 at 4:36 PM
I, m still struggling with this error. I've attempted to install version 5.1.0.0 on our sharepoint 2010 sandbox, configured with single ldap connection Oracle Directory 6.3.1.1

03/16/2015 20:47:49.66 w3wp.exe (0x183C) 0x18F4 LDAPCP LDAPCP 1337 Medium [LDAPCP] LdapcpConfig PersistedObject changed, refreshing configuration a672a240-89fa-4fd1-af5f-3c060ccbfbdd
03/16/2015 20:48:09.27 w3wp.exe (0x183C) 0x18F4 LDAPCP LDAP Lookup 1337 Medium [LDAPCP] Connect as cn=admin,ou=People,o=Administrators,l=nyl,dc=mylifelife,dc=com to LDAP://MYLDAPSERVER.COM:389/DC=mylife,DC=com. d5967744-4904-42b9-b389-25e80f7ed41d
03/16/2015 20:48:09.33 w3wp.exe (0x183C) 0x18F4 LDAPCP LDAP Lookup 1337 Unexpected [LDAPCP] Unexpected error during connection to LDAP server "LDAP://MYLDAPSERVER:389/DC=mylife,DC=com": Object reference not set to an instance of an object.. Callstack:
at ldapcp.LDAPCP.SearchObjectsInLDAP(String filter, Uri context, String[] entityTypes, List`1& LDAPSearchResults)   d5967744-4904-42b9-b389-25e80f7ed41d    
03/16/2015 20:48:09.33 w3wp.exe (0x183C) 0x18F4 LDAPCP LDAP Lookup 1337 Medium [LDAPCP] This LDAP query did not return any result: "(| (&(objectclass=mylifePerson)(myid=john3l2*)) (&(objectclass=user)(displayName=john3l2*)) (&(objectclass=user)(cn=john3l2*)(!(objectClass=computer))) (&(objectclass=user)(sn=john3l2*)) )" d5967744-4904-42b9-b389-25e80f7ed41d

I got results when gave same search in LDAP browser but didnt wrok in peopelpicker. what could be the reason ?
Coordinator
Mar 17, 2015 at 9:11 AM
hello, again, the best way to understand what happens is to generate a dump on the null reference exception.
Logs give no clue on which object that is null.
Mar 17, 2015 at 4:41 PM
Thanks for all support....

I looked at SP logs, Event Viewers and IIS logs I did not find errors logged.


Would you help me where exactly this LDAP code dumps the errors dump.

Thanks
Apr 30, 2015 at 4:41 PM
Edited Apr 30, 2015 at 4:42 PM
Tested again same resutls again .. This time I enableD verbose on ULS logs.

Set-SPLogLevel -Identity "LDAPCP:" -TraceSeverity Verbose

04/30/2015 12:00:16.35 w3wp.exe (0x14A8) 0x1F84 LDAPCP LDAP Lookup 1337 Unexpected [LDAPCP] Unexpected error during connection to LDAP server "LDAP://server.myorg.com:2999/dc=myorg,dc=com": Object reference not set to an instance of an object.. Callstack: at ldapcp.LDAPCP.SearchObjectsInLDAP(String filter, Uri context, String[] entityTypes, List`1& LDAPSearchResults) 889655eb-7e54-41c4-a1c2-ffa0ee94c702
04/30/2015 12:00:16.35 w3wp.exe (0x14A8) 0x1F84 LDAPCP LDAP Lookup 1337 Medium [LDAPCP] This LDAP query did not return any result: "(| (&(objectclass=myOrgPerson)(myOrgid=sam
)) (&(objectclass=myOrgPerson)(cn=sam*)) )" 889655eb-7e54-41c4-a1c2-ffa0ee94c702

where as on LDAP logs I can see same searh query returning results.

On people picker window .It just diplaying immediately "No results were found to match your search item" wIth out even waiting for results. from Ldap.