This project has moved. For the latest updates, please go here.

People Picker Problem

Mar 20, 2015 at 2:59 PM
Sorry I accidentally posted this under issues instead of discussions.

I have ldapcp installed and it is working fine in central administration, however the people picker in my site will not find anyone. No matter what I type it just says Sorry, we're having trouble reaching the server.

I checked the logs and don't see any errors. Any suggestions would be great.
Mar 23, 2015 at 5:35 PM
Edited Mar 23, 2015 at 5:35 PM
on what SharePoint version you are getting this problem. I'm facing similar problem in SharePoint 2010 . I got the following error. in SharePoint errors log.

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:
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
Mar 25, 2015 at 1:18 PM
Hello, you can filter the logs on area/product "LDAPCP" to find the relevant messages in the logs
Mar 25, 2015 at 1:39 PM
Pingsp2013 - We are on sharepoint 2013 connecting to an adfs on server 2012 r2

Yvand - there are no errors showing in the log
Mar 25, 2015 at 4:47 PM
then you should use Fiddler to get the correlation ID of the request that fails, and use it to filter logs, it should show you the actual error
Mar 25, 2015 at 4:58 PM
I used Fiddler and this was what I got back

<Request xmlns="" SchemaVersion="" LibraryVersion="" ApplicationName="Javascript Library"><Actions><StaticMethod TypeId="{de2db963-8bab-4fb4-8a58-611aebc5254b}" Name="ClientPeoplePickerSearchUser" Id="2"><Parameters><Parameter TypeId="{ac9358c6-e9b1-4514-bf6e-106acbfb19ce}"><Property Name="AllowEmailAddresses" Type="Boolean">false</Property><Property Name="AllowMultipleEntities" Type="Boolean">true</Property><Property Name="AllUrlZones" Type="Boolean">false</Property><Property Name="EnabledClaimProviders" Type="Null" /><Property Name="ForceClaims" Type="Boolean">false</Property><Property Name="MaximumEntitySuggestions" Type="Number">30</Property><Property Name="PrincipalSource" Type="Number">15</Property><Property Name="PrincipalType" Type="Number">13</Property><Property Name="QueryString" Type="String">rha</Property><Property Name="Required" Type="Boolean">true</Property><Property Name="SharePointGroupID" Type="Number">0</Property><Property Name="UrlZone" Type="Number">0</Property><Property Name="UrlZoneSpecified" Type="Boolean">false</Property><Property Name="Web" Type="Null" /><Property Name="WebApplicationID" Type="String">{00000000-0000-0000-0000-000000000000}</Property></Parameter></Parameters></StaticMethod></Actions><ObjectPaths /></Request>

Is that helpful?
Mar 25, 2015 at 9:16 PM
Ok, I'm seeing this when I type into the people picker.

Error when open web service: System.InvalidOperationException: ID4039: A custom ServiceAuthorizationManager has been configured. Any custom ServiceAuthorizationManager must be derived from IdentityModelServiceAuthorizationManager.
at Microsoft.IdentityModel.Tokens.FederatedServiceCredentials.ConfigureServiceHost(ServiceHostBase serviceHost, ServiceConfiguration configuration)
at System.ServiceModel.Description.DispatcherBuilder.ValidateDescription(ServiceDescription description, ServiceHostBase serviceHost)
at System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost)
at System.ServiceModel.ServiceHostBase.InitializeRuntime()
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at Microsoft.SharePoint.Client.Services.MultipleBaseAddressWebServiceHost.OnOpen(TimeSpan timeout)
Apr 21, 2015 at 12:08 PM
did you make any change in the web.config ?