1 --- mod_auth_kerb-5.4/src/mod_auth_kerb.c~ 2011-03-24 00:01:16.104419296 +0100
2 +++ mod_auth_kerb-5.4/src/mod_auth_kerb.c 2011-03-24 00:04:28.831007797 +0100
5 const char *krb_service_name;
7 + int krb_register_basic;
8 int krb_delegate_basic;
10 int krb_ssl_preauthentication;
12 command("KrbAuthoritative", ap_set_flag_slot, krb_authoritative,
13 FLAG, "Set to 'off' to allow access control to be passed along to lower modules iff the UserID is not known to this module."),
15 + command("KrbRegisterBasic", ap_set_flag_slot, krb_register_basic,
16 + FLAG, "If 'on' will register with AuthType Basic intead of Kerberos."),
18 command("KrbDelegateBasic", ap_set_flag_slot, krb_delegate_basic,
19 FLAG, "Always offer Basic authentication regardless of KrbMethodK5Pass and pass on authentication to lower modules if Basic headers arrive."),
22 ((kerb_auth_config *)rec)->krb_verify_kdc = 1;
23 ((kerb_auth_config *)rec)->krb_service_name = NULL;
24 ((kerb_auth_config *)rec)->krb_authoritative = 1;
25 + ((kerb_auth_config *)rec)->krb_register_basic = 0;
26 ((kerb_auth_config *)rec)->krb_delegate_basic = 0;
28 ((kerb_auth_config *)rec)->krb_ssl_preauthentication = 0;
31 else if(type && strcasecmp(type, "KerberosV4") == 0)
33 + else if (type && conf->krb_register_basic && strcasecmp(type, "Basic") == 0)
34 + use_krb5 = use_krb4 = 1;