summaryrefslogtreecommitdiffstats
path: root/auth-pam.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-09-13 14:02:05 +0200
committerDarren Tucker <dtucker@zip.com.au>2003-09-13 14:02:05 +0200
commitc58c2eedb04168330060406d7634db155d871fb2 (patch)
tree9081320c44e209bb20db4fee10abe8cbaf0f14ce /auth-pam.c
parent[configure.ac] define WITH_ABBREV_NO_TTY for SCO. Report by Roger Cornelius. (diff)
downloadopenssh-c58c2eedb04168330060406d7634db155d871fb2.tar.xz
openssh-c58c2eedb04168330060406d7634db155d871fb2.zip
- (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 bc378a32b..8cb78db11 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;