Configuring an API LDAP registry
An API LDAP registry defines the LDAP server to authenticate incoming API requests.
About this task
LDAP registries can be used to authenticate users to APIs.
Procedure
- In the search field, enter registry.
- From the search results, click API LDAP registry.
- Click Add.
- Define the basic properties - Name, administrative state, and comments.
- Specify the hostname or IP address of the LDAP server.
- Specify the listening port on the LDAP server. The default value is 636.
- Optional: Specify the TLS client profile to secure connections with the LDAP server.
- Specify the LDAP version to use for the bind operation. The default value is v3.
- In the User authentication area, define user authentication.
- Specify how to create the user for authentication. The default value is
Search DN.
- Compose DN
- Select Compose DN when the DN can be composed from the username.
uid=john,ou=People,dc=company,dc=comis an example DN format that can be composed from the username. - Compose UPN
- Select Compose UPN when the UPN can be composed from the username.
john@example.comis an example UPN format that can be composed from the username . - Search DN
- Select Search DN when the DN cannot be composed from the username and an LDAP search is needed to retrieve information that matches the username.
- For an authenticated bind, provide the administrator DN and password. For an anonymous bind, do not define these properties.
- Specify the LDAP search parameters for the LDAP search to retrieve the user DN.
- Compose DN
- When Compose DN, the search parameters can include the base DN, but must include the prefix and suffix. For example, enter (uid= as the prefix and ) as the suffix.
- Compose UPN
- When Compose UPN, the search parameters must include the suffix. For example, enter @example.com as the suffix.
- Search DN
- When Search DN, the search parameters can include the base DN, but must include the prefix and suffix. For example, enter (uid= as the prefix and ) as the suffix.
- Enter the time to wait in seconds for a response from the LDAP server before the LDAP connection is closed. The default value is 60. A value of 0 indicates that the connection never times out.
- Specify how to create the user for authentication. The default value is
Search DN.
- Optional: In the Group authentication area, define how
to check group membership for an authenticated user in the LDAP registry.
- Enable group authentication.
- Specify the configuration type for group authentication.
- Dynamic
- Build group authentication dynamically, which is always used for compose UPN.
- Static
- Build group authentication from predefined configuration, which cannot be used for compose UPN.
- Specify the search scope.
- For static configuration, specify the base DN, filter prefix, and filter suffix.
- For dynamic configuration, specify the filter expression.
- Click Apply to save changes to the running configuration.
- Click Save to save changes to the persisted configuration.
What to do next
Associate the LDAP registry as necessary to the following configurations.
- Basic authentication security definition
- Client security assembly action
- User security assembly action