diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-04-19 10:39:56 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-04-19 12:34:33 +0200 |
commit | 4471778d7846e0c5d5989e522ee214a3b4ded153 (patch) | |
tree | 176828701c4c6411df07487c83aac8bfcf8eb53b /source3/passdb/pdb_get_set.c | |
parent | cf39ef363782dae8d9b73bb249f2321c924c1dc8 (diff) | |
download | samba-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/passdb/pdb_get_set.c')
-rw-r--r-- | source3/passdb/pdb_get_set.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/passdb/pdb_get_set.c b/source3/passdb/pdb_get_set.c index 7575af293a..a9b22bbb40 100644 --- a/source3/passdb/pdb_get_set.c +++ b/source3/passdb/pdb_get_set.c @@ -400,12 +400,6 @@ bool pdb_set_pass_can_change_time(struct samu *sampass, time_t mytime, enum pdb_ return pdb_set_init_flags(sampass, PDB_CANCHANGETIME, flag); } -bool pdb_set_pass_must_change_time(struct samu *sampass, time_t mytime, enum pdb_value_state flag) -{ - sampass->pass_must_change_time = mytime; - return pdb_set_init_flags(sampass, PDB_MUSTCHANGETIME, flag); -} - bool pdb_set_pass_last_set_time(struct samu *sampass, time_t mytime, enum pdb_value_state flag) { sampass->pass_last_set_time = mytime; |