|
|
e5b36c |
diff -up openchange-openchange-2.3-VULCAN/libmapi/IProfAdmin.c.samba-4.13 openchange-openchange-2.3-VULCAN/libmapi/IProfAdmin.c
|
|
|
e5b36c |
--- openchange-openchange-2.3-VULCAN/libmapi/IProfAdmin.c.samba-4.13 2020-11-13 13:37:00.953428673 +0100
|
|
|
e5b36c |
+++ openchange-openchange-2.3-VULCAN/libmapi/IProfAdmin.c 2020-11-13 13:38:36.541453531 +0100
|
|
|
e5b36c |
@@ -753,7 +753,7 @@ _PUBLIC_ enum MAPISTATUS OpenProfile(str
|
|
|
e5b36c |
_PUBLIC_ enum MAPISTATUS LoadProfile(struct mapi_context *mapi_ctx,
|
|
|
e5b36c |
struct mapi_profile *profile)
|
|
|
e5b36c |
{
|
|
|
e5b36c |
- enum credentials_use_kerberos use_krb = CRED_AUTO_USE_KERBEROS;
|
|
|
e5b36c |
+ enum credentials_use_kerberos use_krb = CRED_USE_KERBEROS_DESIRED;
|
|
|
e5b36c |
|
|
|
e5b36c |
/* Sanity checks */
|
|
|
e5b36c |
OPENCHANGE_RETVAL_IF(!mapi_ctx, MAPI_E_NOT_INITIALIZED, NULL);
|
|
|
e5b36c |
@@ -777,9 +777,9 @@ _PUBLIC_ enum MAPISTATUS LoadProfile(str
|
|
|
e5b36c |
* another API in the profile */
|
|
|
e5b36c |
if (profile->kerberos) {
|
|
|
e5b36c |
if (!strncmp(profile->kerberos, "yes", 3)) {
|
|
|
e5b36c |
- use_krb = CRED_MUST_USE_KERBEROS;
|
|
|
e5b36c |
+ use_krb = CRED_USE_KERBEROS_REQUIRED;
|
|
|
e5b36c |
} else {
|
|
|
e5b36c |
- use_krb = CRED_DONT_USE_KERBEROS;
|
|
|
e5b36c |
+ use_krb = CRED_USE_KERBEROS_DISABLED;
|
|
|
e5b36c |
}
|
|
|
e5b36c |
}
|
|
|
e5b36c |
/* additionally, don't set the username in the ccache if kerberos
|
|
|
e5b36c |
@@ -787,13 +787,13 @@ _PUBLIC_ enum MAPISTATUS LoadProfile(str
|
|
|
e5b36c |
* credentials. cli_credentials_guess probably gets the right
|
|
|
e5b36c |
* thing anyway in the situations where kerberos is in use */
|
|
|
e5b36c |
if (profile->username && *(profile->username)
|
|
|
e5b36c |
- && use_krb != CRED_MUST_USE_KERBEROS) {
|
|
|
e5b36c |
+ && use_krb != CRED_USE_KERBEROS_REQUIRED) {
|
|
|
e5b36c |
cli_credentials_set_username(profile->credentials, profile->username, CRED_SPECIFIED);
|
|
|
e5b36c |
}
|
|
|
e5b36c |
if (profile->password && *(profile->password)) {
|
|
|
e5b36c |
cli_credentials_set_password(profile->credentials, profile->password, CRED_SPECIFIED);
|
|
|
e5b36c |
}
|
|
|
e5b36c |
- if (use_krb != CRED_AUTO_USE_KERBEROS) {
|
|
|
e5b36c |
+ if (use_krb != CRED_USE_KERBEROS_DESIRED) {
|
|
|
e5b36c |
cli_credentials_set_kerberos_state(profile->credentials, use_krb);
|
|
|
e5b36c |
}
|
|
|
e5b36c |
|