配置Nginx使用Active Directory 做認證


配置Nginx使用AD做認證

nginx.conf 配置

http {
    ldap_server ldap {
    url ldap://xxx:389/DC=test,DC=com?sAMAccountName?sub?(objectClass=person);
    binddn "admin@test.com";
    binddn_passwd adminpass;
    group_attribute uniquemember;
    group_attribute_is_dn off;
    require  valid_user;
    ssl_check_cert off;
    }
}

具體域名配置

    location / {
        include  /usr/local/openresty/nginx/conf/acl.cfg;
        auth_ldap "Forbidden";
        auth_ldap_servers ldap;
    }

 

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM