summaryrefslogtreecommitdiff
path: root/auth-pam.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/auth-pam.c b/auth-pam.c
index 07847cb9d..befb84c08 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -29,7 +29,7 @@
29#include "xmalloc.h" 29#include "xmalloc.h"
30#include "servconf.h" 30#include "servconf.h"
31 31
32RCSID("$Id: auth-pam.c,v 1.20 2000/12/20 02:34:49 djm Exp $"); 32RCSID("$Id: auth-pam.c,v 1.21 2001/01/19 04:46:38 djm Exp $");
33 33
34#define NEW_AUTHTOK_MSG \ 34#define NEW_AUTHTOK_MSG \
35 "Warning: Your password has expired, please change it now" 35 "Warning: Your password has expired, please change it now"
@@ -323,13 +323,13 @@ void finish_pam(void)
323} 323}
324 324
325/* Start PAM authentication for specified account */ 325/* Start PAM authentication for specified account */
326void start_pam(struct passwd *pw) 326void start_pam(const char *user)
327{ 327{
328 int pam_retval; 328 int pam_retval;
329 329
330 debug("Starting up PAM with username \"%.200s\"", pw->pw_name); 330 debug("Starting up PAM with username \"%.200s\"", user);
331 331
332 pam_retval = pam_start(SSHD_PAM_SERVICE, pw->pw_name, &conv, &pamh); 332 pam_retval = pam_start(SSHD_PAM_SERVICE, user, &conv, &pamh);
333 333
334 if (pam_retval != PAM_SUCCESS) { 334 if (pam_retval != PAM_SUCCESS) {
335 fatal("PAM initialisation failed[%d]: %.200s", 335 fatal("PAM initialisation failed[%d]: %.200s",