]>
Commit | Line | Data |
---|---|---|
7e2f545e JR |
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 | |
3 | @@ -157,6 +157,7 @@ | |
4 | int krb_verify_kdc; | |
5 | const char *krb_service_name; | |
6 | int krb_authoritative; | |
7 | + int krb_register_basic; | |
8 | int krb_delegate_basic; | |
9 | #if 0 | |
10 | int krb_ssl_preauthentication; | |
11 | @@ -218,6 +219,9 @@ | |
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."), | |
14 | ||
15 | + command("KrbRegisterBasic", ap_set_flag_slot, krb_register_basic, | |
16 | + FLAG, "If 'on' will register with AuthType Basic intead of Kerberos."), | |
17 | + | |
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."), | |
20 | ||
21 | @@ -325,6 +329,7 @@ | |
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; | |
27 | #if 0 | |
28 | ((kerb_auth_config *)rec)->krb_ssl_preauthentication = 0; | |
29 | @@ -1636,6 +1641,8 @@ | |
30 | use_krb5 = 1; | |
31 | else if(type && strcasecmp(type, "KerberosV4") == 0) | |
32 | use_krb4 = 1; | |
33 | + else if (type && conf->krb_register_basic && strcasecmp(type, "Basic") == 0) | |
34 | + use_krb5 = use_krb4 = 1; | |
35 | else | |
36 | return DECLINED; | |
37 |