From e80dbdcab1831bd07e76863acaea4e356f71cf98 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 16 Nov 2011 16:51:06 +1100 Subject: 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 --- source3/passdb/py_passdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/passdb') 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)); } } -- cgit