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