4b2ee11293
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
14 lines
502 B
Plaintext
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);
|
|
}
|