Linux technical support - [email protected]


nginx ldap group config example

http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    auth_ldap_cache_enabled off;

    ldap_server dc1 {
      url ldap://dc1.alexlinux.lan:3268/DC=alexlinux,DC=lan?sAMAccountName?sub?(objectClass=person);
      binddn "alexlinux\\comp";
      binddn_passwd 123;
      group_attribute member;
      group_attribute_is_dn on;
      require valid_user;
      require group "CN=systemtest,OU=Groups,DC=alexlinux,DC=lan";
    }
################################################################
server {
    server_name systemtest.alexlinux.lan;

    error_log             /var/log/nginx/systemtest.alexlinux.lan debug;

    root /data/sites/systemtest.alexlinux.lan;
    index index.php;


    auth_ldap "Forbidden";
    auth_ldap_servers dc1;

    location = /robots.txt {

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>