pam_krb5/pam_krb5-2.2.3-1-setcred-assume-establish.dif

12 lines
390 B
Plaintext

--- src/auth.c
+++ src/auth.c 2009/01/29 11:44:07
@@ -419,6 +419,6 @@
if (flags & PAM_DELETE_CRED) {
return pam_sm_close_session(pamh, flags, argc, argv);
}
- 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);
}