summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-04-19 10:39:56 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-04-19 12:34:33 +0200
commit4471778d7846e0c5d5989e522ee214a3b4ded153 (patch)
tree176828701c4c6411df07487c83aac8bfcf8eb53b /source3/torture
parentcf39ef363782dae8d9b73bb249f2321c924c1dc8 (diff)
downloadsamba-4471778d7846e0c5d5989e522ee214a3b4ded153.tar.gz
samba-4471778d7846e0c5d5989e522ee214a3b4ded153.tar.bz2
samba-4471778d7846e0c5d5989e522ee214a3b4ded153.zip
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
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/pdbtest.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/torture/pdbtest.c b/source3/torture/pdbtest.c
index 9f9ca0c40a..1257eff9f6 100644
--- a/source3/torture/pdbtest.c
+++ b/source3/torture/pdbtest.c
@@ -409,12 +409,6 @@ int main(int argc, char **argv)
pdb_get_account_policy(PDB_POLICY_MIN_PASSWORD_AGE, &min_age);
pdb_set_pass_last_set_time(out, time(NULL), PDB_SET);
- if (expire == 0 || expire == (uint32)-1) {
- pdb_set_pass_must_change_time(out, get_time_t_max(), PDB_SET);
- } else {
- pdb_set_pass_must_change_time(out, time(NULL)+expire, PDB_SET);
- }
-
if (min_age == (uint32)-1) {
pdb_set_pass_can_change_time(out, 0, PDB_SET);
} else {