pam: map more NT password errors to PAM errors
authorBjörn Jacke <bj@sernet.de>
Wed, 25 Nov 2015 13:04:24 +0000 (14:04 +0100)
committerBjoern Jacke <bj@sernet.de>
Tue, 13 Dec 2016 13:12:06 +0000 (14:12 +0100)
commit69f10080c3765a9b139fbad7f3dc633066fdded2
treef410fee5a7579c98cefd47e510d5e2493517be16
parentdcd4fed82d25c40ac61fe3aa42083b47eca94389
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>
libcli/auth/pam_errors.c
nsswitch/pam_winbind.c