Nginx使用LDAP认证

来源:互联网 发布:讲文明知礼仪海报 编辑:程序博客网 时间:2024/05/21 15:43


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
 

0 0
原创粉丝点击