mirror of
https://github.com/mainnika/nginx-auth-ldap.git
synced 2026-06-12 18:03:36 +00:00
@@ -33,6 +33,7 @@ make install
|
||||
Define list of your LDAP servers with required user/group requirements:
|
||||
|
||||
```bash
|
||||
http {
|
||||
ldap_server test1 {
|
||||
url ldap://192.168.0.1:3268/DC=test,DC=local?sAMAccountName?sub?(objectClass=person);
|
||||
binddn "TEST\\LDAPUSER";
|
||||
@@ -50,6 +51,7 @@ Define list of your LDAP servers with required user/group requirements:
|
||||
group_attribute_is_dn on;
|
||||
require valid_user;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
And add required servers in correct order into your location/server directive:
|
||||
@@ -67,5 +69,5 @@ And add required servers in correct order into your location/server directive:
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user