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)
committerKarolin Seeger <kseeger@samba.org>
Tue, 7 Jun 2011 18:01:23 +0000 (20:01 +0200)
commite0a4750a52e7e95b33322fba43a13841f48e3c37
treea9700943485e8940cc9d55c0d9bf4590c608d2e1
parent1f085e919c50ef56c34ced554e20e74cb94b9b57
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.
(cherry picked from commit 4ae564df76c99a3866188dfb7e5a236188e97350)
source3/passdb/pdb_get_set.c
source3/rpc_server/samr/srv_samr_util.c