LDAP policy

Not applicable

I am implementing LDAP policy in onprem. I have added the policy and configured the resource using the management API call. When I am hitting the proxy I am getting below error.

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

Can anyone help me out to resolve this issue?

Thanks in advance.

Solved Solved
0 2 257
1 ACCEPTED SOLUTION

If I were diagnosing this I would look in the system.log for the message processor.

It's possible the required .jars are not present to satisfy the unboundid class. Have you downloaded and installed those JARs as instructed?

Also - ask yourself, why are you using unboundid? Why not just the JNDI resolver? Maybe Try that; the JARs are builtin. An LdapResource with jndi looks like this:

<LdapResource name="ldap1">
  <Connection>
    <Hosts>
      <Host>www.zflexldap.com</Host>
    </Hosts>
    <SSLEnabled>false</SSLEnabled>
    <Version>3</Version>
    <Authentication>simple</Authentication>
    <ConnectionProvider>jndi</ConnectionProvider> <!-- TRY THIS -->
  </Connection>
  <ConnectPool enabled="true">
    <Timeout>30000</Timeout>
    <Maxsize>50</Maxsize>
    <Prefsize>30</Prefsize>
    <Initsize></Initsize>
    <Protocol></Protocol>
  </ConnectPool>
  <Admin>
    <DN>cn=ro_admin,ou=sysadmins,dc=zflexsoftware,dc=com</DN>
    <Password>zflexpass</Password>
  </Admin>
</LdapResource>

View solution in original post

2 REPLIES 2

If I were diagnosing this I would look in the system.log for the message processor.

It's possible the required .jars are not present to satisfy the unboundid class. Have you downloaded and installed those JARs as instructed?

Also - ask yourself, why are you using unboundid? Why not just the JNDI resolver? Maybe Try that; the JARs are builtin. An LdapResource with jndi looks like this:

<LdapResource name="ldap1">
  <Connection>
    <Hosts>
      <Host>www.zflexldap.com</Host>
    </Hosts>
    <SSLEnabled>false</SSLEnabled>
    <Version>3</Version>
    <Authentication>simple</Authentication>
    <ConnectionProvider>jndi</ConnectionProvider> <!-- TRY THIS -->
  </Connection>
  <ConnectPool enabled="true">
    <Timeout>30000</Timeout>
    <Maxsize>50</Maxsize>
    <Prefsize>30</Prefsize>
    <Initsize></Initsize>
    <Protocol></Protocol>
  </ConnectPool>
  <Admin>
    <DN>cn=ro_admin,ou=sysadmins,dc=zflexsoftware,dc=com</DN>
    <Password>zflexpass</Password>
  </Admin>
</LdapResource>

Yes, finally resolved the issue. I was missing the jar file in required directory.