r19058: Implement "user cannot change password", and complete "user must change
authorJim McDonough <jmcd@samba.org>
Tue, 3 Oct 2006 17:14:18 +0000 (17:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:06 +0000 (12:15 -0500)
commitdc1f0804dd8177d3c3a0b2db993855d5679e9565
tree9893078628f8963ca854411001cd3c7fdcff998d
parentb96aae779bdbd96677aef58d205282605046a8a6
r19058: Implement "user cannot change password", and complete "user must change
password at next logon" code.  The "password last set time" of zero now
means "user must change password", because that's how windows seems to
use it.  The "can change" and "must change" times are now calculated
based on the "last set" time and policies.

We use the "can change" field now to indicate that a user cannot change
a password by putting MAX_TIME_T in it (so long as "last set" time isn't
zero).  Based on this, we set the password-can-change bit in the
faked secdesc.
(This used to be commit 21abbeaee9b7f7cff1d34d048463c30cda44a2e3)
source3/auth/auth_sam.c
source3/passdb/passdb.c
source3/passdb/pdb_get_set.c
source3/passdb/pdb_interface.c
source3/passdb/pdb_ldap.c
source3/rpc_server/srv_netlog_nt.c
source3/rpc_server/srv_samr_nt.c
source3/smbd/chgpasswd.c