Fix bug #7054 - X account flag does not work when pwdlastset is 0.
authorJeremy Allison <jra@samba.org>
Tue, 24 May 2011 00:14:47 +0000 (17:14 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 24 May 2011 18:14:35 +0000 (20:14 +0200)
commit309a8fd7c62e7008b1a4c4c77c3a9ea35ed4bb07
tree293872e001f357c69e8453e7e19caa9336e5b392
parent53829fd4951fc1189d64ecef1c1f58d21f0fb38b
Fix bug #7054 - X account flag does not work when pwdlastset is 0.

Don't allow pass_last_set_time to be set to zero (which means
"user must change password on next logon") if user object doesn't
allow password change.

Don't automatically allow user object password change if
"user must change password on next logon" is set.

Jim please check.

Jeremy.
source3/passdb/pdb_get_set.c
source3/rpc_server/samr/srv_samr_util.c