Issue with Custom ldap integration

I am trying to connect to external LDAP(OUD) for authenticating proxy service users in OUD and to search some attritbutes. I followed the steps mentioned in apigee doc https://docs.apigee.com/api-platform/reference/policies/ldap-policy

I am getting error while executing ldap policy

"{ "fault": { "faultstring": "Ldap connection provider com.apigee.messaging.runtime.ldap.ExternalLdapProvider not found", "detail": { "errorcode": "steps.ldap.LdapConnectionProviderNotFound" } } }"

Please let me know if I am missing any thing ?

Do we need any jar from target system OUD ?

Do I need to explicitly add reference of custom-ldap.jar

I did steps mentioned below.

1.Downloaded the custom-ldap.jar_.zip from the link provided in apigee doc

2.Execute below command to move tha jar to resource file.

Command:

curl -v -u <userName>:<Password> -H Content-Type: multipart/form-data \ -X POST -F file=@{jar_file} \ http://<:8080/v1/organizations/payroll/resourcefiles?name={jar_file}&type=java

3.Restart apigee server including management server

4.Execute below command to create ldap resources.

Command :

curl -X POST -H "Content-Type: application/xml" \ http://<IP>:<port>/v1/organizations/<org>/environments/dev/ldapresources \ -u userName:Password -d \ '<LdapResource name="ldapResource1"> <Connection> <Hosts> <Host port="2389"><IP---></Host> </Hosts> <SSLEnabled>false</SSLEnabled> <Version>3</Version> <Authentication>simple</Authentication> <ConnectionProvider>jndi</ConnectionProvider> <LdapConnectorClass>com.apigee.messaging.runtime.ldap.ExternalLdapConProvider</LdapConnectorClass>(I extracted it from custom-ldap.jar) </Connection> <ConnectPool enabled="true"> <Timeout>30000</Timeout> <Maxsize>50</Maxsize> <Prefsize>30</Prefsize> <Initsize></Initsize> <Protocol></Protocol> </ConnectPool> <Admin> <DN>ou=PMS,ou=Users,dc=gosi,dc=com,dc=sa</DN> <Password>secret</Password> </Admin> </LdapResource>'

0 0 284
0 REPLIES 0