##### Kapitel 8 - AAA SetHandler server-info Require ip 127.0.0.1 ::1 SetHandler server-status AuthType Basic AuthName "Half-Secure Server-Status" AuthUserFile /usr/local/apache2/htpasswd.users Require ip 127.0.0.1 ::1 Require valid-user ### Digest-Authentication LoadModule auth_digest_module modules/mod_auth_digest.so AuthType Digest AuthName "Geheim" AuthUserFile /usr/local/apache2/htdigest.users Require valid-user ### MySQL-Authentication LoadModule authn_dbd_module modules/mod_authn_dbd.so LoadModule authz_dbd_module modules/mod_authz_dbd.so LoadModule dbd_module modules/mod_dbd.so ServerName mysql.sv ServerAlias *.mysql.sv DocumentRoot /usr/local/apache2/htdocs-firma1.sv/ DBDriver mysql DBDParams "dbname=userdb user=apache pass=apache" DBDMin 2 DBDKeep 4 DBDMax 8 DBDExptime 300 AuthType Basic AuthName "MySQL-Auth" AuthBasicProvider dbd AuthDBDUserPWQuery "SELECT password FROM userdb WHERE user=%s" Require valid-user ### SQLite-Authentication, mit Caching LoadModule authn_socache_module modules/mod_authn_socache.so LoadModule socache_shmcb_module modules/mod_socache_shmcb.so ServerName sqlite.sv ServerAlias *.sqlite.sv DocumentRoot /usr/local/apache2/htdocs-firma2.sv/ DBDriver sqlite3 DBDParams "/usr/local/apache2/digest.sqlite3" DBDPrepareSQL "SELECT password FROM digest WHERE user=%s AND realm=%s" digquery AuthType Digest AuthName "SQLite-Auth" AuthDigestProvider socache dbd AuthnCacheProvideFor dbd AuthnCacheContext my-sqlite3-location # AuthDBDUserRealmQuery digquery AuthDBDUserRealmQuery "SELECT password FROM digest WHERE user=%s AND realm=%s" Require valid-user ### LDAP-Authentication LoadModule authnz_ldap_module modules/mod_authnz_ldap.so LoadModule ldap_module modules/mod_ldap.so ServerName ldap.sv ServerAlias *.ldap.sv DocumentRoot /usr/local/apache2/htdocs-ipbased.sv/ AuthType Basic AuthName "LDAP-Auth" AuthBasicProvider ldap # AuthzLDAPAuthoritative off #AuthLDAPURL ldaps://localhost:636/ou=People,dc=ipbased,dc=sv?uid? AuthLDAPURL ldap://localhost/ou=Users,dc=heinlein-akademie,dc=de?uid? Require valid-user CustomLog logs/ldap_access.log combined ErrorLog logs/ldap_error.log LogLevel info