add explanation of ldap parameter

This commit is contained in:
rebortg 2019-05-12 11:42:07 +02:00
parent d819f17a99
commit 60fbdfa07e

View File

@ -90,11 +90,11 @@ Directory as authentication backend. Queries are done via LDAP.
children 5 children 5
credentials-ttl 60 credentials-ttl 60
ldap { ldap {
base-dn DC=rgtest,DC=local base-dn DC=example,DC=local
bind-dn CN=proxyuser,CN=Users,DC=rgtest,DC=local bind-dn CN=proxyuser,CN=Users,DC=example,DC=local
filter-expression (cn=%s) filter-expression (cn=%s)
password Qwert1234 password Qwert1234
server 192.168.188.201 server ldap.example.local
username-attribute cn username-attribute cn
} }
method ldap method ldap
@ -105,6 +105,12 @@ Directory as authentication backend. Queries are done via LDAP.
listen-address 192.168.188.103 { listen-address 192.168.188.103 {
disable-transparent disable-transparent
} }
* ``base-dn`` set the base directory for the search
* ``bind-dn`` and ``password``: set the user, which is used for the ldap search
* ``filter-expression``: set the exact filter which a authorized user match in a ldap-search. In this example every User is able to authorized.
You can find more about the ldap authentication `here <http://www.squid-cache.org/Versions/v3/3.2/manuals/basic_ldap_auth.html>`_
Adjusting cache size Adjusting cache size
^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^