summaryrefslogtreecommitdiff
path: root/auth-pam.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-09-13 22:02:05 +1000
committerDarren Tucker <dtucker@zip.com.au>2003-09-13 22:02:05 +1000
commitc58c2eedb04168330060406d7634db155d871fb2 (patch)
tree9081320c44e209bb20db4fee10abe8cbaf0f14ce /auth-pam.c
parentae477e922e12f32f715759a6e77447e244528070 (diff)
- (dtucker) [auth-pam.c] Use SSHD_PAM_SERVICE for PAM service name, patch
from cjwatson at debian.org.
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/auth-pam.c b/auth-pam.c
index bc378a32..8cb78db1 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -31,7 +31,7 @@
/* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */
#include "includes.h"
-RCSID("$Id: auth-pam.c,v 1.70 2003/09/02 13:18:53 djm Exp $");
+RCSID("$Id: auth-pam.c,v 1.71 2003/09/13 12:02:05 dtucker Exp $");
#ifdef USE_PAM
#include <security/pam_appl.h>
@@ -289,7 +289,8 @@ sshpam_init(const char *user)
sshpam_handle = NULL;
}
debug("PAM: initializing for \"%s\"", user);
- sshpam_err = pam_start("sshd", user, &null_conv, &sshpam_handle);
+ sshpam_err =
+ pam_start(SSHD_PAM_SERVICE, user, &null_conv, &sshpam_handle);
if (sshpam_err != PAM_SUCCESS) {
pam_end(sshpam_handle, sshpam_err);
sshpam_handle = NULL;