OpenAM Java API : Retrieve LDAP Datastore credentials. When developing plugins in OpenAM, using the Java SDK API, you could need to retrieve some information from a registered LDAP datastore. But in order to do that, you have to extract the directory credentials from OpenAM configuration.

Developing for OpenAM can sometimes be tricky, mainly because there is not so much documentation about it. So, here is a snippet which describes how to retrieve from OpenAM, the connection information of the top realm embedded datastore, for example.

And if you want to connect to your LDAP directory using the OpenAM Java SDK API, you can use the LDAPConnection class, instead of importing an external LDAP library.

Daly
Les derniers articles par Daly (tout voir)