title: Nginx ldap require group
body: <p>I have compiled and configured nginx to work with ldap and our ActiveDirectory. All works with this configuration:</p>
  
  <pre><code>ldap_server MyAD {
     url ldap://100.100.100.11:3268/DC=&lt;mydomain&gt;,DC=&lt;myext&gt;?sAMAccountName?sub?(objectClass=user);
      binddn "&lt;user&gt;";
      binddn_passwd &lt;password&gt;;
      group_attribute member;
      group_attribute_is_dn on;
      require valid_user;
    }
  </code></pre>
  
  <p>My site require authentication and only users in ActiveDirectory can access.
  Now I'm trying to allow only users that are in a specific ActiveDirectory group, but with no success, can anyone help me to fix the url query?</p>