Generate ACB_PW_EXPIRED correctly
authorAndrew Bartlett <abartlet@samba.org>
Wed, 27 Feb 2008 21:50:00 +0000 (08:50 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 27 Feb 2008 21:50:00 +0000 (08:50 +1100)
commitacda1f69bc9b9c43e157e254d0bae54d11363661
tree89d965e1837f91b24cf8e5a012c0c8ca3ab2b04b
parent447d5a795441aa6beab2f057c5ac1bc3c04e08c4
Generate ACB_PW_EXPIRED correctly

More correctly handle expired passwords, and do not expire machine accounts.

Test that the behaviour is consistant with windows, using the RPC-SAMR test.

Change NETLOGON to directly query the userAccountControl, just because
we don't want to do the extra expiry processing here.

Andrew Bartlett
source/auth/auth_sam.c
source/auth/sam.c
source/dsdb/common/util.c
source/rpc_server/netlogon/dcerpc_netlogon.c
source/rpc_server/samr/dcesrv_samr.c
source/torture/rpc/samr.c