LDAPSearchException while executing LDAP Policy

Dear Team,

I am getting LDAPSearchException when executing LDAP policy to authenticate user from external AD.

Can any one help?

Thanks and Regards,

Manish

0 3 241
3 REPLIES 3

people might be able to help. but you'll need to show your configuration -both of the LDAP policy and the LDAP resource.

Hide private details.

Hi Team, We are getting below error when calling API with LDAP policy.

{ "fault": { "faultstring": "com/unboundid/ldap/sdk/LDAPSearchException", "detail": { "errorcode": "Internal Server Error" } } }

Below is LDAP policy configuration. We are using this to authenticate user with external active directory.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Ldap async="false" continueOnError="false" enabled="true" name="LDAP-1"> <DisplayName>LDAP-1</DisplayName> <LdapResource>Ldap_ExtAD_Mig</LdapResource> <Authentication> <UserName ref="request.header.username"/> <Password ref="request.header.password"/> <Scope>subtree</Scope> <BaseDN>myBaseDN</BaseDN> </Authentication> </Ldap>

Also find the details of the ldap resource

<LdapResource name='myLdap'><Connection><Hosts><Host>myhost.com</Host></Hosts><SSLEnabled>false</SSLEnabled><Version>3</Version><Authentication>simple</Authentication><ConnectionProvider>unboundid</ConnectionProvider><ServerSetType>round robin</ServerSetType></Connection><ConnectPool enabled='true'><Timeout>30000</Timeout><Maxsize>50</Maxsize><Prefsize>30</Prefsize><Initsize></Initsize><Protocol></Protocol></ConnectPool><Admin><DN>CN=AAA,OU=BBB,OU=CCC,O=DDD</DN><Password>secret</Password></Admin></LdapResource>

Please help to find the solution.

Manish, Can you first verify if ldapsearch from command line is working. This will help you understand your specific details are good. You can also do a tcpdump and analyze using wireshark. This will help you see the search string from apigee gateway to your LDAP and the response back.