summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-01-26 08:38:34 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-01-26 08:38:34 +0000
commit8be4584979e0ad5ae4b4da59c032b462eebf9021 (patch)
treee0c29361e7575ee10611aa13d764193bd79c1a30
parentc26e4057ae1ada769555079738f09f9cea1614b9 (diff)
downloadsamba-8be4584979e0ad5ae4b4da59c032b462eebf9021.tar.gz
samba-8be4584979e0ad5ae4b4da59c032b462eebf9021.tar.bz2
samba-8be4584979e0ad5ae4b4da59c032b462eebf9021.zip
Add a few more NTSTATUS <=> PAM error mappings.
Andrew Bartlett (This used to be commit 7495cafd42617c0aa2ba9de69f87426ecacc1297)
-rw-r--r--source3/lib/pam_errors.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/pam_errors.c b/source3/lib/pam_errors.c
index 925441fb1d..212d3831fd 100644
--- a/source3/lib/pam_errors.c
+++ b/source3/lib/pam_errors.c
@@ -36,7 +36,7 @@ static const struct {
{PAM_SYMBOL_ERR, NT_STATUS_UNSUCCESSFUL},
{PAM_SERVICE_ERR, NT_STATUS_UNSUCCESSFUL},
{PAM_SYSTEM_ERR, NT_STATUS_UNSUCCESSFUL},
- {PAM_BUF_ERR, NT_STATUS_UNSUCCESSFUL},
+ {PAM_BUF_ERR, NT_STATUS_NO_MEMORY},
{PAM_PERM_DENIED, NT_STATUS_ACCESS_DENIED},
{PAM_AUTH_ERR, NT_STATUS_WRONG_PASSWORD},
{PAM_CRED_INSUFFICIENT, NT_STATUS_INSUFFICIENT_LOGON_INFO}, /* FIXME: Is this correct? */
@@ -69,6 +69,8 @@ static const struct {
{NT_STATUS_ACCOUNT_EXPIRED, PAM_ACCT_EXPIRED},
{NT_STATUS_PASSWORD_EXPIRED, PAM_AUTHTOK_EXPIRED},
{NT_STATUS_PASSWORD_MUST_CHANGE, PAM_NEW_AUTHTOK_REQD},
+ {NT_STATUS_ACCOUNT_LOCKED_OUT, PAM_MAXTRIES},
+ {NT_STATUS_NO_MEMORY, PAM_BUF_ERR},
{NT_STATUS_OK, PAM_SUCCESS}
};