-#ifdef KRB5
- if (type != NULL && strcasecmp(type, "KerberosV5") == 0) {
- log_rerror(APLOG_MARK, APLOG_WARNING, 0, r,
- "The use of KerberosV5 in AuthType is obsolete, please consider using the AuthKerberos option");
- conf->krb_auth_enable = 1;
- }
-#endif
-
-#ifdef KRB4
- if (type != NULL && strcasecmp(type, "KerberosV4") == 0) {
- log_rerror(APLOG_MARK, APLOG_WARNING, 0, r,
- "The use of KerberosV4 in AuthType is obsolete, please consider using the AuthKerberos option");
- conf->krb_auth_enable = 1;
- }
-#endif
-
- if (!conf->krb_auth_enable)
+ if (type && strcasecmp(type, "Kerberos") == 0)
+ use_krb5 = use_krb4 = 1;
+ else if(type && strcasecmp(type, "KerberosV5") == 0)
+ use_krb4 = 0;
+ else if (type && strcasecmp(type, "KerberosV4") == 0)
+ use_krb5 = 0;
+ else