summaryrefslogtreecommitdiff
path: root/auth-pam.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/auth-pam.c b/auth-pam.c
index 3d550b4dd..122896c7f 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -32,7 +32,7 @@
32#include "canohost.h" 32#include "canohost.h"
33#include "readpass.h" 33#include "readpass.h"
34 34
35RCSID("$Id: auth-pam.c,v 1.22 2001/01/22 05:34:40 mouring Exp $"); 35RCSID("$Id: auth-pam.c,v 1.23 2001/02/04 12:20:19 djm Exp $");
36 36
37#define NEW_AUTHTOK_MSG \ 37#define NEW_AUTHTOK_MSG \
38 "Warning: Your password has expired, please change it now" 38 "Warning: Your password has expired, please change it now"
@@ -211,10 +211,12 @@ int auth_pam_password(struct passwd *pw, const char *password)
211int do_pam_account(char *username, char *remote_user) 211int do_pam_account(char *username, char *remote_user)
212{ 212{
213 int pam_retval; 213 int pam_retval;
214 extern ServerOptions options;
214 215
215 debug("PAM setting rhost to \"%.200s\"", get_canonical_hostname()); 216 debug("PAM setting rhost to \"%.200s\"",
217 get_canonical_hostname(options.reverse_mapping_check));
216 pam_retval = pam_set_item(pamh, PAM_RHOST, 218 pam_retval = pam_set_item(pamh, PAM_RHOST,
217 get_canonical_hostname()); 219 get_canonical_hostname(options.reverse_mapping_check));
218 if (pam_retval != PAM_SUCCESS) { 220 if (pam_retval != PAM_SUCCESS) {
219 fatal("PAM set rhost failed[%d]: %.200s", 221 fatal("PAM set rhost failed[%d]: %.200s",
220 pam_retval, PAM_STRERROR(pamh, pam_retval)); 222 pam_retval, PAM_STRERROR(pamh, pam_retval));