LDAP realm
You can configure security to communicate with a Lightweight Directory Access Protocol (LDAP) server to authenticate and authorize users.
To integrate with LDAP, you configure an ldap
realm in the snowowl.yml
configuration file.
Configuration
The following configuration settings are supported:
Configuration | Description |
---|---|
uri | The LDAP URI that points to the LDAP/AD server to connect to. |
bindDn | The user's DN who has access to the entire |
bindDnPassword | The password of the |
baseDn | The base directory where all entries in the entire subtree will be considered as potential matches for all searches. |
roleBaseDn | Alternative base directory where all role entries in the entire subtree will be considered. Defaults to the |
userFilter | The search filter to search for user entries under the configured |
roleFilter | The search filter to search for role entries under the configured |
userObjectClass | The user object's class to look for when searching for user entries. Defaults to |
roleObjectClass | The role object's class to look for when searching for role entries. Defaults to |
userIdProperty | The userId property to access and read for the user's unique identifier. Usually their username or email address. Defaults to |
permissionProperty | A multi-valued property that is used to store permission information on a role. Defaults to the |
memberProperty | A multi-valued property that is used to store and retrieve user |
The default configuration values are selected to support both OpenLDAP and Active Directory without needing to customize the default schema that comes with their default installation.
Configure Authentication
When users send their username and password with their request in the Authorization header, the LDAP security realm performs the following steps to authenticate the user:
Searches for a user entry in the configured
baseDn
to get theDN
Authenticates with the LDAP instance using the received
DN
and the provided password
If any of the above-mentioned steps fails for any reason, the user is not allowed to access the terminology server's content and the server will respond with HTTP 401 Unauthorized
.
To configure authentication, you need to configure the uri
, baseDn
, bindDn
, bindDnPassword
, userObjectClass
and userIdProperty
configuration settings.
Adding a user
To add a user in the LDAP realm, create an entry under the specified baseDn
using the configured userObjectClass
as class and the userIdProperty
as the property where the user's username/e-mail address is configured.
Example user entry:
Configure Authorization
On top of the authentication part, the LDAP realm provides configuration values to support full role-based access control and authorization.
When a user's request is successfully authenticated with the LDAP realm, Snow Owl authorizes the request using the user's currently set roles and permissions in the configured LDAP instance.
Adding a role
To add a role in the LDAP realm, create an entry under the specified baseDn
using the configured roleObjectClass
as class and the configured permissionProperty
and memberProperty
properties for permission and user mappings, respectively.
Example read-only role:
Last updated