Ci-dessous un exemple d'authentification LDAP dans apache avec prise en compte des groupes imbriqué (Sous groupe)

AuthLDAPMaxSubGroupDepth 2 indique deux niveau de sous groupe possible.

<Location />
        AuthType Basic
        AuthName "Connection Trac"
        AuthBasicProvider ldap
        Order Allow,Deny
        Allow from All
        AuthLDAPURL "ldap://ldap.domain.local:389/DC=mon,DC=domain,DC=local?sAMAccountName?sub?(objectClass=*)"
        AuthLDAPBindDN "CN=UserLdap,OU=Users,OU=Groups,DC=mon,DC=domain,DC=local
        AuthLDAPBindPassword "password6"
        AuthLDAPGroupAttribute "member"
        AuthLDAPSubGroupClass "group"
        AuthLDAPSubGroupAttribute "member"
        AuthLDAPMaxSubGroupDepth 2
        Require ldap-group CN=Mon_Groupe,OU=Groups,DC=mon,DC=domain,DC=local
</Location>