1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-22 01:14:21 +01:00
This commit is contained in:
kakwa 2019-02-13 09:44:47 +01:00
parent 5ee8a74040
commit 245bafb01c
2 changed files with 5 additions and 5 deletions

View File

@ -107,14 +107,14 @@ ldap.groupdn = 'ou=group,dc=example,dc=org'
# users dn # users dn
ldap.userdn = 'ou=people,dc=example,dc=org' ldap.userdn = 'ou=people,dc=example,dc=org'
# ldapsearch filter to get a specific user # ldapsearch filter to get one specific user
# %(username)s is content of the attribute marked 'key: True' in the attributes.file conf # %(username)s is content of the attribute marked 'key: True' in the attributes.file config file
ldap.user_filter_tmpl = '(uid=%(username)s)' ldap.user_filter_tmpl = '(uid=%(username)s)'
# ldapsearch filter to get groups of a user # ldapsearch filter to get groups of a user
# %(username)s is content of the attribute marked 'key: True' in the attributes.file conf # %(username)s is content of the attribute marked 'key: True' in the attributes.file config file
ldap.group_filter_tmpl = '(member=uid=%(username)s,ou=People,dc=example,dc=org)' ldap.group_filter_tmpl = '(member=uid=%(username)s,ou=People,dc=example,dc=org)'
# filter to search users # filter to search users
# %(searchstring)s is content passed through the search box # %(searchstring)s is the content passed through the search box
ldap.search_filter_tmpl = '(|(uid=%(searchstring)s*)(sn=%(searchstring)s*))' ldap.search_filter_tmpl = '(|(uid=%(searchstring)s*)(sn=%(searchstring)s*))'
# ldap group attributes and how to fill them # ldap group attributes and how to fill them

View File

@ -76,7 +76,7 @@ The ldap backend exposes the following parameters:
| | | to recover a given user | template | the **username** variable (*%(username)s*) | | | | to recover a given user | template | the **username** variable (*%(username)s*) |
| | | | | | | | | | | |
| | | | | **username** is the content of the | | | | | | **username** is the content of the |
| | | | | the attribute marked by '**key: Truee**' | | | | | | the attribute marked by '**key: True**' |
| | | | | in the **attributes.yml** file | | | | | | in the **attributes.yml** file |
+--------------------------+----------+------------------------------------+--------------------------+------------------------------------------------+ +--------------------------+----------+------------------------------------+--------------------------+------------------------------------------------+
| group_filter_tmpl | backends | The search filter template to | ldap search filter | The following variables are usable: | | group_filter_tmpl | backends | The search filter template to | ldap search filter | The following variables are usable: |