diff --git a/conf/ldapcherry.ini b/conf/ldapcherry.ini index dfbe87a..c5de286 100644 --- a/conf/ldapcherry.ini +++ b/conf/ldapcherry.ini @@ -107,14 +107,14 @@ ldap.groupdn = 'ou=group,dc=example,dc=org' # users dn ldap.userdn = 'ou=people,dc=example,dc=org' -# ldapsearch filter to get a specific user -# %(username)s is content of the attribute marked 'key: True' in the attributes.file conf +# ldapsearch filter to get one specific user +# %(username)s is content of the attribute marked 'key: True' in the attributes.file config file ldap.user_filter_tmpl = '(uid=%(username)s)' # 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)' # 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 group attributes and how to fill them diff --git a/docs/backends.rst b/docs/backends.rst index ec5994b..7679597 100644 --- a/docs/backends.rst +++ b/docs/backends.rst @@ -76,7 +76,7 @@ The ldap backend exposes the following parameters: | | | to recover a given user | template | the **username** variable (*%(username)s*) | | | | | | | | | | | | **username** is the content of the | -| | | | | the attribute marked by '**key: Truee**' | +| | | | | the attribute marked by '**key: True**' | | | | | | in the **attributes.yml** file | +--------------------------+----------+------------------------------------+--------------------------+------------------------------------------------+ | group_filter_tmpl | backends | The search filter template to | ldap search filter | The following variables are usable: |