Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
htaccess [2011/01/03 21:19] 80.123.31.191 |
htaccess [2011/11/19 17:04] (aktuell) admin |
||
---|---|---|---|
Zeile 24: | Zeile 24: | ||
*[[http://www.gaijin.at/olshtcrypt.php|.htpasswd Crypt]] | *[[http://www.gaijin.at/olshtcrypt.php|.htpasswd Crypt]] | ||
- | =====.htaccess mit LDAP Authentifizierung===== | + | =====.htaccess mit LDAP Authentifizierung für alle Benutzer ===== |
<file> | <file> | ||
AuthType Basic | AuthType Basic | ||
Zeile 30: | Zeile 30: | ||
AuthBasicProvider ldap | AuthBasicProvider ldap | ||
AuthzLDAPAuthoritative off | AuthzLDAPAuthoritative off | ||
- | AuthLDAPURL ldap://bgweiz.at/ou=people,dc=bgweiz,dc=at | + | AuthLDAPURL ldap://10.67.0.5/ou=people,dc=bgweiz,dc=at |
Require valid-user | Require valid-user | ||
+ | </file> | ||
+ | |||
+ | =====.htaccess mit LDAP Authentifizierung einer Gruppe ===== | ||
+ | |||
+ | <file> | ||
+ | AuthType Basic | ||
+ | AuthName "5B - Rainer" | ||
+ | AuthBasicProvider ldap | ||
+ | AuthzLDAPAuthoritative on | ||
+ | AuthLDAPUrl ldap://10.67.0.5/dc=bgweiz,dc=at?uid | ||
+ | AuthLDAPGroupAttributeIsDN off | ||
+ | AuthLDAPGroupAttribute memberUid | ||
+ | Require ldap-group cn=rainer5b,ou=groups,dc=bgweiz,dc=at | ||
+ | Options +Indexes | ||
</file> | </file> | ||
Zeile 61: | Zeile 75: | ||
</file> | </file> | ||
+ | ===== Error Reporting ===== | ||
+ | |||
+ | <file> | ||
+ | # to stop php startup errors | ||
+ | php_flag display_startup_errors off | ||
+ | # to stop all php errors and warning | ||
+ | php_flag display_errors off | ||
+ | # report everything except run-time notices. | ||
+ | php_value error_reporting 8191 | ||
+ | # report both fatal and non-fatal compile-time warnings by the Zend Engine | ||
+ | php_value error_reporting 128 | ||
+ | # report run-time notices, compile-time parse errors, run-time errors and warnings | ||
+ | php_value error_reporting 8 | ||
+ | # report fatal run-time errors and unrecoverable errors | ||
+ | php_value error_reporting 1 | ||
+ | </file> |