LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File pam_krb5-2.2.3-1-setcred-assume-establish.dif of Package pam_krb5 (Project openSUSE:Factory)

Index: src/auth.c
===================================================================
--- src/auth.c.orig
+++ src/auth.c
@@ -568,6 +568,6 @@ pam_sm_setcred(pam_handle_t *pamh, int f
 					       "pam_setcred(PAM_DELETE_CRED)",
 					       _pam_krb5_session_caller_setcred);
 	}
-	warn("pam_setcred() called with no flags");
-	return PAM_SERVICE_ERR;
+	warn("pam_setcred() called with no flags. Assume PAM_ESTABLISH_CRED");
+	return pam_sm_open_session(pamh, (flags | PAM_ESTABLISH_CRED), argc, argv);
 }