git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43c6f8c
)
pydsdb: Allow the full range of uint32_t values for attributeID
author
Andrew Bartlett
<abartlet@samba.org>
Tue, 28 Jul 2015 02:29:25 +0000
(14:29 +1200)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 3 Sep 2015 07:11:35 +0000
(09:11 +0200)
The high bit may be set in these integers, so we need an unsigned int to store it in
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11429
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit
bed29f3c92861fb2b83ad03a5c759061e1c31eba
)
source4/dsdb/pydsdb.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/pydsdb.c
b/source4/dsdb/pydsdb.c
index 388d3c3e208a19ce08d391dc087b2f2edbddc8d0..9a3b50939379763f2aa45d9c2b4ad88e4381e145 100644
(file)
--- a/
source4/dsdb/pydsdb.c
+++ b/
source4/dsdb/pydsdb.c
@@
-259,7
+259,7
@@
static PyObject *py_dsdb_get_oid_from_attid(PyObject *self, PyObject *args)
WERROR status;
TALLOC_CTX *mem_ctx;
- if (!PyArg_ParseTuple(args, "O
i
", &py_ldb, &attid))
+ if (!PyArg_ParseTuple(args, "O
I
", &py_ldb, &attid))
return NULL;
PyErr_LDB_OR_RAISE(py_ldb, ldb);
@@
-452,7
+452,7
@@
static PyObject *py_dsdb_get_lDAPDisplayName_by_attid(PyObject *self, PyObject *
const struct dsdb_attribute *a;
uint32_t attid;
- if (!PyArg_ParseTuple(args, "O
i
", &py_ldb, &attid))
+ if (!PyArg_ParseTuple(args, "O
I
", &py_ldb, &attid))
return NULL;
PyErr_LDB_OR_RAISE(py_ldb, ldb);