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/py_passdb.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source3/passdb/py_passdb.c') diff --git a/source3/passdb/py_passdb.c b/source3/passdb/py_passdb.c index 46f2e90f3d..d0ef567738 100644 --- a/source3/passdb/py_passdb.c +++ b/source3/passdb/py_passdb.c @@ -198,10 +198,9 @@ static int py_samu_set_pass_must_change_time(PyObject *obj, PyObject *value, voi struct samu *sam_acct = (struct samu *)pytalloc_get_ptr(obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); - if (!pdb_set_pass_must_change_time(sam_acct, PyInt_AsLong(value), PDB_CHANGED)) { - return -1; - } - return 0; + + /* TODO: make this not a get/set or give a better exception */ + return -1; } static PyObject *py_samu_get_username(PyObject *obj, void *closure) -- cgit