Servername lliurexguard DocumentRoot /var/www/lliurexguard/ Options +ExecCGI AddHandler cgi-script .cgi DirectoryIndex lliurexguard.cgi Order deny,allow Deny from all Allow from all AuthBasicProvider ldap AuthType Basic AuthName "LliurexGuard: Sols els professors passaran!!!" AuthLDAPURL "ldap://localhost:389/ou=Teachers,ou=People,dc=ma5,dc=lliurex,dc=net?uid?sub" AuthzLDAPAuthoritative off Require valid-user