Add another message rather than 'internal module error'
authorAndrew Bartlett <abartlet@samba.org>
Wed, 24 Jul 2002 03:13:43 +0000 (03:13 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 24 Jul 2002 03:13:43 +0000 (03:13 +0000)
Andrew Bartlett
(This used to be commit e09c4bd69aaec0dc43b5bf69f651cbfad3c5f4ad)

source3/nsswitch/pam_winbind.c

index a8754d1710db7befcc8c2ab3ba09858091d767a9..29ceca4e79ef877e2aede66a4a70af7ffef3fb01 100644 (file)
@@ -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)