From a23c05cb46c68d36984df659ade4fb518ccd4d4e Mon Sep 17 00:00:00 2001 From: grueneedv <grueneedv@users.noreply.github.com> Date: Tue, 3 May 2016 10:35:34 +0200 Subject: [PATCH] Update ldap.txt Add documentation for OpenLDAP case. --- modules/ldap/docs/ldap.txt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/modules/ldap/docs/ldap.txt b/modules/ldap/docs/ldap.txt index 151db8876..e4b057a24 100644 --- a/modules/ldap/docs/ldap.txt +++ b/modules/ldap/docs/ldap.txt @@ -451,13 +451,15 @@ a listing of all configuration options and their details. * that most products have a special query to recursively search * group membership. * - * Note: Only ActiveDirectory is currently supported. + * Note: Only ActiveDirectory is currently supported + * (OpenLDAP is implemented but not supported, see example below). * * Default: '' * Required: No */ 'ldap.product' => '', 'ldap.product' => 'ActiveDirectory', + 'ldap.product' => 'OpenLDAP', /** @@ -548,3 +550,14 @@ required, see the config info above for details. 'ldap.basedn' => 'DC=example,DC=org' ) +Example for unsupported OpenLDAP usage. +Intention is to filter in 'ou=groups,dc=example,dc=com' for +'(memberUid = <UID>)' and take only the attributes 'cn' (=name of the group). + + 50 => array( + 'class' => 'ldap:AttributeAddUsersGroups', + 'ldap.product' => 'OpenLDAP', + 'ldap.basedn' => 'ou=groups,dc=example,dc=org', + 'attribute.member' => 'cn', + 'attribute.memberof' => 'memberUid', + ), -- GitLab