pam: map more NT password errors to PAM errors
commit0fba7b2b7b23b7971d5d34148292fb4eaa35617a
authorBjörn Jacke <bj@sernet.de>
Wed, 25 Nov 2015 13:04:24 +0000 (25 14:04 +0100)
committerStefan Metzmacher <metze@samba.org>
Sat, 14 Jan 2017 09:27:06 +0000 (14 10:27 +0100)
tree35561f01ca2e917544741fbb4057c53dfa278cd5
parentd6b86387269d6459820534dd06f6bd9b03ee968e
pam: map more NT password errors to PAM errors

NT_STATUS_ACCOUNT_DISABLED,
NT_STATUS_PASSWORD_RESTRICTION,
NT_STATUS_PWD_HISTORY_CONFLICT,
NT_STATUS_PWD_TOO_RECENT,
NT_STATUS_PWD_TOO_SHORT

now map to PAM_AUTHTOK_ERR (Authentication token manipulation error), which is
the closest match.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=2210

Signed-off-by: Bjoern Jacke <bj@sernet.de>
Reviewed by: Jeremy Allison <jra@samba.org>

(cherry picked from commit 69f10080c3765a9b139fbad7f3dc633066fdded2)
libcli/auth/pam_errors.c
nsswitch/pam_winbind.c