htaccess 對 ldap & kerberos 認證設定範例

ldap example :

SSLRequireSSL
AuthType Basic
AuthName “internal area”
AuthBasicProvider ldap
AuthLDAPURL “ldaps://ldap.liho.tw ldap2.liho.tw/ou=people,dc=liho,dc=tw?uid”
Require valid-user

kerberos example :

SSLRequireSSL
AuthType Kerberos
AuthName “internal area”
KrbVerifyKDC Off
KrbMethodNegotiate Off
KrbAuthoritative On
KrbMethodK5Passwd On
KrbSaveCredentials Off
KrbAuthRealms LIHO.TW
#Krb5KeyTab /etc/xxxx/keytab
require valid-user