sam.c: Make NTLM login set logonCount when unset
authorGarming Sam <garming@catalyst.net.nz>
Fri, 7 Apr 2017 02:41:05 +0000 (14:41 +1200)
committerGarming Sam <garming@samba.org>
Thu, 13 Apr 2017 05:29:17 +0000 (07:29 +0200)
commitde26e2f87aaa6255ed87f5d97509a1af9ca221ec
tree3ef42b8593ba9f24bbb444fbc261cbcdcc4dadeb
parent7f0c839bfbf9e9473b03fd096c3cf4ba257a5f37
sam.c: Make NTLM login set logonCount when unset

Previously, it only bothered if it was being incremented. Now on first
logon, it should turn the unset logonCount to 0.

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/auth/sam.c