s4-s3-upgrade now look for -1 as the special 'not set' value
[ira/wip.git] / source3 / passdb / py_passdb.c
index de278399b142f68ec68feec6ec37a4ded752891a..39ecf86094b925dd95b8f8c85a46f2b2642b0b27 100644 (file)
@@ -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));
                }
        }