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); }