- if (!conf->krb_auth_enable &&
- (type == NULL || (strncasecmp(type, "Kerberos", 8) != 0)))
+#ifdef KRB5
+ if (type != NULL && strcasecmp(type, "KerberosV5") == 0) {
+ ap_log_rerror(APLOG_MARK, APLOG_WARNING, 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) {
+ ap_log_rerror(APLOG_MARK, APLOG_WARNING, 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)