summaryrefslogtreecommitdiff
path: root/source3/nsswitch/pam_winbind.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-24 03:13:43 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-24 03:13:43 +0000
commitfc6ae0994d6038f5b292007fe508af0c892a6f7f (patch)
tree29042ee48e37db094a08afe575b3fc192c72fed3 /source3/nsswitch/pam_winbind.c
parentabb45ccfa02e4bedccaf10b8ae9e8d264163b026 (diff)
downloadsamba-fc6ae0994d6038f5b292007fe508af0c892a6f7f.tar.gz
samba-fc6ae0994d6038f5b292007fe508af0c892a6f7f.tar.bz2
samba-fc6ae0994d6038f5b292007fe508af0c892a6f7f.zip
Add another message rather than 'internal module error'
Andrew Bartlett (This used to be commit e09c4bd69aaec0dc43b5bf69f651cbfad3c5f4ad)
Diffstat (limited to 'source3/nsswitch/pam_winbind.c')
-rw-r--r--source3/nsswitch/pam_winbind.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c
index a8754d1710..29ceca4e79 100644
--- a/source3/nsswitch/pam_winbind.c
+++ b/source3/nsswitch/pam_winbind.c
@@ -163,6 +163,10 @@ static int winbind_auth_request(const char *user, const char *pass, int ctrl)
/* password expired */
_pam_log(LOG_WARNING, "user `%s' password expired", user);
return retval;
+ case PAM_NEW_AUTHTOK_REQD:
+ /* password expired */
+ _pam_log(LOG_WARNING, "user `%s' new password required", user);
+ return retval;
case PAM_USER_UNKNOWN:
/* the user does not exist */
if (ctrl & WINBIND_DEBUG_ARG)