summaryrefslogtreecommitdiff
path: root/source3/passdb/py_passdb.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-11-16 16:51:06 +1100
committerAmitay Isaacs <amitay@gmail.com>2011-11-18 14:38:27 +1100
commite80dbdcab1831bd07e76863acaea4e356f71cf98 (patch)
tree5644def6e1b923ec12a031fe31354f2c1c11413f /source3/passdb/py_passdb.c
parent32e825d60df26fa1d4cf5c8c7cb37ca0523847ca (diff)
downloadsamba-e80dbdcab1831bd07e76863acaea4e356f71cf98.tar.gz
samba-e80dbdcab1831bd07e76863acaea4e356f71cf98.tar.bz2
samba-e80dbdcab1831bd07e76863acaea4e356f71cf98.zip
s4-s3-upgrade now look for -1 as the special 'not set' value
this is possible because we know the py_passdb will always set -1 here, not passing though 0xFFFFFFFF. Andrew Bartlett
Diffstat (limited to 'source3/passdb/py_passdb.c')
-rw-r--r--source3/passdb/py_passdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/py_passdb.c b/source3/passdb/py_passdb.c
index de278399b1..39ecf86094 100644
--- a/source3/passdb/py_passdb.c
+++ b/source3/passdb/py_passdb.c
@@ -2317,7 +2317,7 @@ static PyObject *py_pdb_get_account_policy(pytalloc_Object *self)
type = account_policy_name_to_typenum(names[i]);
status = methods->get_account_policy(methods, type, &value);
if (NT_STATUS_IS_OK(status)) {
- PyDict_SetItemString(py_acct_policy, names[i], PyInt_FromLong(value));
+ PyDict_SetItemString(py_acct_policy, names[i], Py_BuildValue("i", value));
}
}