OpenAM Java API : Retrieve LDAP Datastore credentials

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

Daly

Specialised in IAM (security, access control, identity management) and Open Source integration, settled in 2004 by IAM industry veteran, JANUA offers high value-added products and services to businesses and governements with a concern for Identity Management and Open Source components.
JANUA provides better security, build relationships, and enable new cloud, mobile, and IoT offerings from any device or connected thing.
Daly

Les derniers articles par Daly (tout voir)