LDAP servers such as Microsoft Active Directory and OpenLDAP can handle central user management in OP5 Monitor. When used, OP5 Monitor verifies the user with the LDAP server lookup the group membership of the users in the directory.
This documentation assumes that you have the following:
- Administrator access to the domain.
- Basic knowledge about LDAP structure.
In OP5 Monitor, permissions is handled by groups. Make sure you have one group available for each role in the system.
If the domain doesn't allow to bind anonymously to resolve group memberships or find users, a service account must be added. This account needs to have read access to resolve group membership and search for users in the system.
Address to the LDAP server, or servers. Can be a space separated list of addresses. Addresses are added for redundancy. Servers will be used in that order.
TCP port to connect to. Leave blank for default. (389 for no encryption/start-tls, 636 for ssl)
Which type of encryption to use for connection between OP5 Monitor to the LDAP server. (none, start_tls or ssl). Make sure to have a valid ssl certificate for the LDAP server, and php recognizes it.
Distinguished name (or user principal name for active directory, which is
username@domain) of the service account, created under "Prepare your domain" above, or empty to bind anonymously.
Password for the service user.
For security reasons, this can also be a path to a filename containing the password. To use this feature, enter
It is also possible to keep the password in a separate config file, when multiple LDAP-connections is used. In this case, enter "
config:configname", which will use config file
/etc/op5/configname.yml. The config file should then contain one line per driver: "
driver name: secret"
Check this if you want to use Bind DN and Bind secret as the credentials for lookups in the LDAP or Active Diretory tree.
The distinguished name for the root of the directory to access. This is usually the DN for the domain, for example:
The base DN to search for users. This is an absolute DN, and not relative to Base DN. In almost all cases, use the same value as Base DN here.
A LDAP filter used to filter out user objects. Usually this is a filter for objectClass. For Active Directory "
(objectClass=user)" should work.
The base DN to search for groups. This is an absolute DN, and not relative to Base DN. In almost all cases, use the same value as Base DN here.
A LDAP filter used to filter out group objects. Usually this is a filter for objectClass. For Active Directory "
(objectClass=group)" should work.
If groups can be nested, so that a group can be member of another group. This is possible in Active Directory, and should there be active.
With this unchecked, only members of that group directly will be treated as members of the group. If this is the case for systems which supports nested groups. This checkbox can be unchecked for performance reasons.
When binding with UPN (user principal name), this is the suffix to use after @, which is the domain name. For example, if the UPN of a user is "
email@example.com", the UPN suffix is "
The key to select the username of a user in the system. Older versions of Active Directory uses sAMAccountName. But in later versions, use userPrincipalName
Check this if the userkey is a UPN. In that case, the domain part of the userkey will be ignored. Check this if you are using Active Directory, and userPrincipalName as userkey.
The name of the attribute in the user object describing the real name of the user. For active Directory, and most other LDAP systems, "
cn" should work. This is used to nicely display the username of the logged in user.
The name of the attribute in the user object containing the the email address. For active directory, and many other systems, "
The name of the attribute in a group, which contains the reference to it's members.
When using LDAP with posix extensions, this should be "
memberUid". When group is of class "
groupOfUniqueNames", this should be "
In Active directory, use memberkey: member:1.2.840.1135184.108.40.2061 :
Check this box if Memberkey is defines the entire DN of the member user or group, not only it's name. For Active Directory, this is true. In a posix system, this is false.
If binding to the LDAP server should be done with the user principal name instead of the DN of the user.
For Active Directory, this is true. For all other systems, this is false.
When binding with UPN, the system constructs a UPN from the username and UPN suffix, and tries to bind with the constructed UPN and given password. If bind succeeds, it resolves the groups.
When binding with DN, the system tries to bind with "Bind DN" and "Bind Secret" to look in the directory for the user. If the user is found, it tries to rebind with the user DN and password given, and if that succeeds, the group membership is resolved.
|Resolve with service account||
|User Base DN||
|Group Base DN||
|Userkey is UPN||
|Memberkey is DN||
|Bind with UPN||
To test if the system can bind using "Bind DN" and "Bind Secret", go to Assign Group Rights page in OP5 configuration. A column has appeared for the driver, and the corresponding group parameters is correctly set. The cell colour will tell you the group connection state and group state:
- green ? connection and group both successfully resolved
- red ? connection successful, but the group doesn't exist in the LDAP domain
- grey ? connection failed, group not even tested