]>
Commit | Line | Data |
---|---|---|
3a9a1b70 JR |
1 | --- openchange-openchange-2.3-VULCAN/libmapi/IProfAdmin.c~ 2015-05-16 17:22:04.000000000 +0200 |
2 | +++ openchange-openchange-2.3-VULCAN/libmapi/IProfAdmin.c 2021-11-16 21:59:10.069774286 +0100 | |
3 | @@ -753,7 +753,7 @@ | |
4 | _PUBLIC_ enum MAPISTATUS LoadProfile(struct mapi_context *mapi_ctx, | |
5 | struct mapi_profile *profile) | |
6 | { | |
7 | - enum credentials_use_kerberos use_krb = CRED_AUTO_USE_KERBEROS; | |
8 | + enum credentials_use_kerberos use_krb = CRED_USE_KERBEROS_DESIRED; | |
9 | ||
10 | /* Sanity checks */ | |
11 | OPENCHANGE_RETVAL_IF(!mapi_ctx, MAPI_E_NOT_INITIALIZED, NULL); | |
12 | @@ -777,9 +777,9 @@ | |
13 | * another API in the profile */ | |
14 | if (profile->kerberos) { | |
15 | if (!strncmp(profile->kerberos, "yes", 3)) { | |
16 | - use_krb = CRED_MUST_USE_KERBEROS; | |
17 | + use_krb = CRED_USE_KERBEROS_REQUIRED; | |
18 | } else { | |
19 | - use_krb = CRED_DONT_USE_KERBEROS; | |
20 | + use_krb = CRED_USE_KERBEROS_DISABLED; | |
21 | } | |
22 | } | |
23 | /* additionally, don't set the username in the ccache if kerberos | |
24 | @@ -787,14 +787,14 @@ | |
25 | * credentials. cli_credentials_guess probably gets the right | |
26 | * thing anyway in the situations where kerberos is in use */ | |
27 | if (profile->username && *(profile->username) | |
28 | - && use_krb != CRED_MUST_USE_KERBEROS) { | |
29 | + && use_krb != CRED_USE_KERBEROS_REQUIRED) { | |
30 | cli_credentials_set_username(profile->credentials, profile->username, CRED_SPECIFIED); | |
31 | } | |
32 | if (profile->password && *(profile->password)) { | |
33 | cli_credentials_set_password(profile->credentials, profile->password, CRED_SPECIFIED); | |
34 | } | |
35 | - if (use_krb != CRED_AUTO_USE_KERBEROS) { | |
36 | - cli_credentials_set_kerberos_state(profile->credentials, use_krb); | |
37 | + if (use_krb != CRED_USE_KERBEROS_DESIRED) { | |
38 | + cli_credentials_set_kerberos_state(profile->credentials, use_krb, CRED_SPECIFIED); | |
39 | } | |
40 | ||
41 | return MAPI_E_SUCCESS; |