summaryrefslogtreecommitdiff
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
parentae477e922e12f32f715759a6e77447e244528070 (diff)
- (dtucker) [auth-pam.c] Use SSHD_PAM_SERVICE for PAM service name, patch
from cjwatson at debian.org.
-rw-r--r--ChangeLog4
-rw-r--r--auth-pam.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f2467d8a4..c76e1fc29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,8 @@
6 registry other than "files" (eg LDAP, see bug #543). 6 registry other than "files" (eg LDAP, see bug #543).
7 - (tim) [configure.ac] define WITH_ABBREV_NO_TTY for SCO. 7 - (tim) [configure.ac] define WITH_ABBREV_NO_TTY for SCO.
8 Report by Roger Cornelius. 8 Report by Roger Cornelius.
9 - (dtucker) [auth-pam.c] Use SSHD_PAM_SERVICE for PAM service name, patch
10 from cjwatson at debian.org.
9 11
1020030912 1220030912
11 - (tim) [regress/agent-ptrace.sh] sh doesn't like "if ! shell_function; then". 13 - (tim) [regress/agent-ptrace.sh] sh doesn't like "if ! shell_function; then".
@@ -1084,4 +1086,4 @@
1084 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. 1086 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
1085 Report from murple@murple.net, diagnosis from dtucker@zip.com.au 1087 Report from murple@murple.net, diagnosis from dtucker@zip.com.au
1086 1088
1087$Id: ChangeLog,v 1.2988 2003/09/13 01:15:15 tim Exp $ 1089$Id: ChangeLog,v 1.2989 2003/09/13 12:02:05 dtucker Exp $
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"
34RCSID("$Id: auth-pam.c,v 1.70 2003/09/02 13:18:53 djm Exp $"); 34RCSID("$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;