Howto Authenticate LinOTP selfservice users against LDAP
--------------------------------------------------------
see http://httpd.apache.org/docs/2.1/mod/mod_authnz_ldap.html

1. Activate authnz_ldap for Apache2

    a2enmod authnz_ldap
   
2. Configure Apache2:
   Edit /etc/apache2/sites-enabled/linotp2:

        <Location /selfservice>
        AuthBasicProvider ldap
        AuthType Basic
        AuthName "LinOTP 2 selfservice"
        AuthLDAPURL "ldap://172.16.200.61:389/ou=linotp,dc=linotp-test,dc=local?sAMAccountName?sub?(objectClass=user)" NONE
        AuthLDAPBindDN "Administrator@linotp-test"
        AuthLDAPBindPassword "topsecret"
        Require ldap-group cn=linotp_selfservice_user, ou=linotp, dc=linotp-test, dc=local
        #require ldap-attribute objectClass=user
        # CN=IS Comms,OU=Resource,OU=\*Groups,DC=mtvne,DC=ad,DC=viacom,DC=com
        # Require ldap-attribute city="San Jose" status=active
        # Require ldap-filter &(cell=*)(department=marketing)
   	# Require valid-user
        </Location>
       
   Choose a convenient BindDN (maybe not your administrator)
  
   AuthLDAPURL: ldap://<ldapserver>/<basedn>?<UserIdentifierAttribute>?<SearchDepth>?<SearchPattern>
       
3. Activeate changes

    /etc/init.d/apache2 restart
