diff --git a/README.md b/README.md index 5d65896..cfc1996 100644 --- a/README.md +++ b/README.md @@ -33,22 +33,24 @@ make install Define list of your LDAP servers with required user/group requirements: ```bash - ldap_server test1 { - url ldap://192.168.0.1:3268/DC=test,DC=local?sAMAccountName?sub?(objectClass=person); - binddn "TEST\\LDAPUSER"; - binddn_passwd LDAPPASSWORD; - group_attribute uniquemember; - group_attribute_is_dn on; - require valid_user; - } - - ldap_server test2 { - url ldap://192.168.0.2:3268/DC=test,DC=local?sAMAccountName?sub?(objectClass=person); - binddn "TEST\\LDAPUSER"; - binddn_passwd LDAPPASSWORD; - group_attribute uniquemember; - group_attribute_is_dn on; - require valid_user; + http { + ldap_server test1 { + url ldap://192.168.0.1:3268/DC=test,DC=local?sAMAccountName?sub?(objectClass=person); + binddn "TEST\\LDAPUSER"; + binddn_passwd LDAPPASSWORD; + group_attribute uniquemember; + group_attribute_is_dn on; + require valid_user; + } + + ldap_server test2 { + url ldap://192.168.0.2:3268/DC=test,DC=local?sAMAccountName?sub?(objectClass=person); + binddn "TEST\\LDAPUSER"; + binddn_passwd LDAPPASSWORD; + group_attribute uniquemember; + group_attribute_is_dn on; + require valid_user; + } } ``` @@ -67,5 +69,5 @@ And add required servers in correct order into your location/server directive: index index.html index.htm; } -} + } ```