From 4471778d7846e0c5d5989e522ee214a3b4ded153 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 19 Apr 2012 10:39:56 +1000 Subject: s3-passdb: Remove unused sampass->pass_must_change_time There is no need to call pdb_set_pass_must_change_time() because nothing ever consults that value. It is always calculated from the domain policy. Also, this means we no longer store the value in LDAP. The value would only ever be set when migrating from tdbsam or smbpasswd, not on password changes, so would become incorrect over time. Andrew Bartlett --- source3/passdb/pdb_samba4.c | 1 - 1 file changed, 1 deletion(-) (limited to 'source3/passdb/pdb_samba4.c') diff --git a/source3/passdb/pdb_samba4.c b/source3/passdb/pdb_samba4.c index 2b785fa424..024c293aa1 100644 --- a/source3/passdb/pdb_samba4.c +++ b/source3/passdb/pdb_samba4.c @@ -564,7 +564,6 @@ static int pdb_samba4_replace_by_sam(struct pdb_samba4_state *state, PDB_LOGOFFTIME, PDB_BAD_PASSWORD_TIME, PDB_CANCHANGETIME, - these are calculated per policy, not stored - PDB_MUSTCHANGETIME, - these are calculated per policy, not stored PDB_DOMAIN, PDB_NTUSERNAME, - this makes no sense, and never really did PDB_LOGONDIVS, -- cgit