diff options
Diffstat (limited to 'auth-pam.c')
-rw-r--r-- | auth-pam.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/auth-pam.c b/auth-pam.c index bc378a32b..8cb78db11 100644 --- a/auth-pam.c +++ b/auth-pam.c | |||
@@ -31,7 +31,7 @@ | |||
31 | 31 | ||
32 | /* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */ | 32 | /* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */ |
33 | #include "includes.h" | 33 | #include "includes.h" |
34 | RCSID("$Id: auth-pam.c,v 1.70 2003/09/02 13:18:53 djm Exp $"); | 34 | RCSID("$Id: auth-pam.c,v 1.71 2003/09/13 12:02:05 dtucker Exp $"); |
35 | 35 | ||
36 | #ifdef USE_PAM | 36 | #ifdef USE_PAM |
37 | #include <security/pam_appl.h> | 37 | #include <security/pam_appl.h> |
@@ -289,7 +289,8 @@ sshpam_init(const char *user) | |||
289 | sshpam_handle = NULL; | 289 | sshpam_handle = NULL; |
290 | } | 290 | } |
291 | debug("PAM: initializing for \"%s\"", user); | 291 | debug("PAM: initializing for \"%s\"", user); |
292 | sshpam_err = pam_start("sshd", user, &null_conv, &sshpam_handle); | 292 | sshpam_err = |
293 | pam_start(SSHD_PAM_SERVICE, user, &null_conv, &sshpam_handle); | ||
293 | if (sshpam_err != PAM_SUCCESS) { | 294 | if (sshpam_err != PAM_SUCCESS) { |
294 | pam_end(sshpam_handle, sshpam_err); | 295 | pam_end(sshpam_handle, sshpam_err); |
295 | sshpam_handle = NULL; | 296 | sshpam_handle = NULL; |