ldap_server test1 {
url ldap://192.168.1.1/ou=Peple,dc=uplook,dc=com?uid?sub?(objectClass=*); 根据uid进程用户查找
binddn cn=admin,dc=uplook,dc=com
binddn_passwd "123456"
require valid_user;
}
location / {
auth_ldap "for test";
auth_ldap_servers test1;
root html;
index index.html index.html;
}
auth-nginx-ldap