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)
commit5043215f219f90a899a8dc75518540a04b93301f
tree61b72bfb81e80cb61739c40351b20422b632cbc8
parent446fb38765c8b3d0e8cf3f74442029cabca3a41b
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
(This used to be commit acda1f69bc9b9c43e157e254d0bae54d11363661)
source4/auth/auth_sam.c
source4/auth/sam.c
source4/dsdb/common/util.c
source4/rpc_server/netlogon/dcerpc_netlogon.c
source4/rpc_server/samr/dcesrv_samr.c
source4/torture/rpc/samr.c