X-Git-Url: http://andersk.mit.edu/gitweb/gssapi-openssh.git/blobdiff_plain/798eaea47848edd5ab821972ba8fa7ed8cbf6f06..46201ce0f8708c098cb4bcd3d42d7a6f7b5eb3e6:/openssh/auth.c diff --git a/openssh/auth.c b/openssh/auth.c index 2106dfc..010e550 100644 --- a/openssh/auth.c +++ b/openssh/auth.c @@ -527,6 +527,10 @@ getpwnamallow(const char *user) get_canonical_hostname(options.use_dns), get_remote_ipaddr()); pw = getpwnam(user); +#ifdef USE_PAM + if (options.use_pam && options.permit_pam_user_change && pw == NULL) + pw = sshpam_getpw(user); +#endif if (pw == NULL) { logit("Invalid user %.100s from %.100s", (user && user[0]) ? user : "unknown",