Apache user auth

  • Download mod_auth_ldap.tar.gz from http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap.html
  • Install either as a DSO or by compiling in - see webpage for more details
  • Add the following to httpd.conf
    
    <Directory "/var/www/foo">
    Options Indexes FollowSymLinks
    AllowOverride None
    order allow,deny
    allow from all
    AuthName "RCS Staff only"
    AuthType Basic
    LDAP_Server ldap.server.com
    LDAP_Port 389
    Base_DN "dc=server,dc=com"
    UID_Attr uid
    #require valid-user
    require user foo bar doe
    #require roomnumber "C119 Center Building"
    #require group cn=sysadmin,ou=Group,dc=server,dc=com
    </Directory>