diff options
author | Damien Miller <djm@mindrot.org> | 2000-04-20 23:12:58 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-04-20 23:12:58 +1000 |
commit | d0cff3ecc49204c03c06428f7b779b8a18c0486f (patch) | |
tree | 97eaecdaec4a134fc48d5704a33f4ad3ba9ca1f4 /auth-pam.c | |
parent | 166fca8894807de71b741a779330bd23edfec013 (diff) |
- Merge fixes from Debian patch from Phil Hands <phil@hands.com>
- Allow setting of PAM service name through CFLAGS (SSHD_PAM_SERVICE)
- Use vhangup to clean up Linux ttys
- Force posix getopt processing on GNU libc systems
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 f6458949e..e1e24854f 100644 --- a/auth-pam.c +++ b/auth-pam.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include "xmalloc.h" | 13 | #include "xmalloc.h" |
14 | #include "servconf.h" | 14 | #include "servconf.h" |
15 | 15 | ||
16 | RCSID("$Id: auth-pam.c,v 1.2 2000/01/26 23:55:38 damien Exp $"); | 16 | RCSID("$Id: auth-pam.c,v 1.3 2000/04/20 13:12:58 damien Exp $"); |
17 | 17 | ||
18 | /* Callbacks */ | 18 | /* Callbacks */ |
19 | static int pamconv(int num_msg, const struct pam_message **msg, | 19 | static int pamconv(int num_msg, const struct pam_message **msg, |
@@ -215,7 +215,8 @@ void start_pam(struct passwd *pw) | |||
215 | 215 | ||
216 | debug("Starting up PAM with username \"%.200s\"", pw->pw_name); | 216 | debug("Starting up PAM with username \"%.200s\"", pw->pw_name); |
217 | 217 | ||
218 | pam_retval = pam_start("sshd", pw->pw_name, &conv, (pam_handle_t**)&pamh); | 218 | pam_retval = pam_start(SSHD_PAM_SERVICE, pw->pw_name, &conv, |
219 | (pam_handle_t**)&pamh); | ||
219 | if (pam_retval != PAM_SUCCESS) | 220 | if (pam_retval != PAM_SUCCESS) |
220 | fatal("PAM initialisation failed: %.200s", PAM_STRERROR((pam_handle_t *)pamh, pam_retval)); | 221 | fatal("PAM initialisation failed: %.200s", PAM_STRERROR((pam_handle_t *)pamh, pam_retval)); |
221 | 222 | ||