diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-11-11 10:38:03 +1300 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-04-02 17:12:47 +0200 |
commit | f557f82acc54d0fddf8be31bebdbc525ea80a171 (patch) | |
tree | acad6b6e7ed1b603168a5e9317079e06f8c1fe1a /source4/auth/sam.c | |
parent | 9d5f4cabf3f491fd1c22dbc1daaad8a657d12914 (diff) | |
download | samba-f557f82acc54d0fddf8be31bebdbc525ea80a171.tar.gz |
s4-auth: Support password history correctly, including allowing NTLM logins using the old password
This is only done during a 1 hour allowed period, by default.
We only update bad password count when not one of the last 3 passwords
Andrew Bartlett
Change-Id: I76fd8010ce273a21efb55f9601d17b9978a0acf0
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/auth/sam.c')
-rw-r--r-- | source4/auth/sam.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/auth/sam.c b/source4/auth/sam.c index e4df612e26f..f7bc6939dd7 100644 --- a/source4/auth/sam.c +++ b/source4/auth/sam.c @@ -90,6 +90,8 @@ const char *user_attrs[] = { "primaryGroupID", "memberOf", "badPasswordTime", + "lmPwdHistory", + "ntPwdHistory", NULL, }; |