pam_krb5/pam_krb5-2.2.3-1-setcred-assume-establish.dif
OBS User autobuild 4b2ee11293 Accepting request 34011 from Linux-PAM
Copy from Linux-PAM/pam_krb5 based on submit request 34011 from user mcalmer

OBS-URL: https://build.opensuse.org/request/show/34011
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pam_krb5?expand=0&rev=37
2010-03-05 10:54:32 +00:00

14 lines
502 B
Plaintext

Index: src/auth.c
===================================================================
--- src/auth.c.orig
+++ src/auth.c
@@ -554,6 +554,6 @@ pam_sm_setcred(pam_handle_t *pamh, int f
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);
}