summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/pyldb.c
Commit message (Collapse)AuthorAgeFilesLines
* s4:dsdb - we don't need to check if a DN != NULL if we call "ldb_dn_validate"Matthias Dieter Wallnöfer2011-03-041-2/+1
| | | | | | "ldb_dn_validate" is NULL-safe and does the check implicitly. Reviewed by: Tridge
* pyldb: create LdbResult, return value from ldb.search is now a LdbResultMatthieu Patou2011-02-211-5/+318
|
* s4-pyldb Fix tp_basicsize for PyLdbDnAndrew Bartlett2011-01-181-1/+1
| | | | | | | This wasn't actually causing problems before, as the structures were the same size. Andrew Bartlett
* pyldb Simplify python wrappers for struct ldb_val (LdbValue)Andrew Bartlett2011-01-141-17/+4
| | | | Andrew Bartlett
* pyldb: Fix memory reference error.Jelmer Vernooij2011-01-031-2/+2
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Jan 3 02:34:05 CET 2011 on sn-devel-104
* pyldb: Always return -1, 0, or 1 in tp_compare functions.Jelmer Vernooij2011-01-031-6/+9
|
* Revert broken destructor changes.Jelmer Vernooij2011-01-031-1/+1
|
* pyldb: Fix memory context, add more OOM checks.Jelmer Vernooij2011-01-031-6/+10
|
* pyldb: Some more OOM checks.Jelmer Vernooij2011-01-031-4/+28
|
* Make all functions in pyldb.c private, as they can't be used anyway.Jelmer Vernooij2011-01-031-21/+27
|
* pyldb: Use pytalloc-util.Jelmer Vernooij2011-01-031-0/+1
|
* ldb: Remove duplicate definition of check_special, use PyObject_New.Jelmer Vernooij2011-01-031-5/+4
|
* s4-python: Properly call PyObject_Del from all destructors.Jelmer Vernooij2011-01-031-1/+1
|
* s4-python: Only set BASETYPE flag if subclassing is supported.Jelmer Vernooij2011-01-011-4/+4
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Jan 1 03:39:58 CET 2011 on sn-devel-104
* s4-python: Add more prototypes.Jelmer Vernooij2011-01-011-0/+2
|
* s4-python: Properly call PyObject_Del from all destructors.Jelmer Vernooij2011-01-011-6/+6
|
* ldb:pyldb.c - remove unused variableMatthias Dieter Wallnöfer2010-12-221-1/+1
|
* ldb: Add ldb.Message.add and ldb.Message.elements.Jelmer Vernooij2010-12-211-32/+72
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Dec 21 15:03:17 CET 2010 on sn-devel-104
* ldb:pyldb.h - revert to the previous header behaviourMatthias Dieter Wallnöfer2010-12-121-0/+2
| | | | "ldb_private.h" is private and therefore might not always be available.
* ldb:pyldb - optimise includesMatthias Dieter Wallnöfer2010-12-121-3/+0
|
* Avoid the use of PyAPI_DATA, which is for internal Python API's.Arnaud Faucher2010-11-221-6/+6
| | | | | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Nov 22 00:52:56 CET 2010 on sn-devel-104
* s4-pyldb: ldb.Message.from_dict class method to create LdbMessage object ↵Kamen Mazdrashki2010-11-181-0/+44
| | | | from dictionary
* s4-pyldb: Move code to create a ldb_message from a Python Dictionary object ↵Kamen Mazdrashki2010-11-181-46/+73
| | | | into a separate function
* s4-pyldb: Few miss-alignments alignedKamen Mazdrashki2010-11-181-9/+8
|
* s4-pyldb: Fix wrong type of 'self' parameterKamen Mazdrashki2010-11-181-1/+1
|
* s4-pyldb: Handle internal errors in py_ldb_contains() properlyKamen Mazdrashki2010-11-101-4/+9
| | | | | | | | It is an exceptional condition for ldb_search() to return more than one results during SCOPE_BASE search on DN Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Wed Nov 10 09:02:00 UTC 2010 on sn-devel-104
* s4:pyldb.c - fix "py_ldb_contains" according to the comment by JelmerMatthias Dieter Wallnöfer2010-11-081-4/+2
|
* ldb:pyldb.c - "py_ldb_msg_element_get" - here we can safely use "unsigned ↵Matthias Dieter Wallnöfer2010-11-081-3/+3
| | | | | | | | | int" for the element reference We don't make use of "Py_List*" calls Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Mon Nov 8 11:21:27 UTC 2010 on sn-devel-104
* ldb:pyldb.c - "py_ldb_contains" - return only "0" not found, "1" found, "-1" ↵Matthias Dieter Wallnöfer2010-11-081-3/+10
| | | | error
* ldb:pyldb.c - most of the times "time_t" is defined as "long int"Matthias Dieter Wallnöfer2010-11-081-5/+5
| | | | | | Therefore use a signed long int for conversions. http://stackoverflow.com/questions/471248/what-is-ultimately-a-time-t-typedef-to
* ldb:pyldb.c - fix some "Py_ssize_t" output warningsMatthias Dieter Wallnöfer2010-11-081-3/+2
|
* ldb:pyldb.c - use "Py_ssize_t" for counting list entriesMatthias Dieter Wallnöfer2010-11-081-12/+11
| | | | This seems to be the most appopriate type
* ldb:pyldb.c - fix indentationMatthias Dieter Wallnöfer2010-11-081-2/+3
|
* ldb:pyldb.c - remove pointless commentMatthias Dieter Wallnöfer2010-10-161-1/+0
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Oct 16 14:38:58 UTC 2010 on sn-devel-104
* Add missing dependencies for com_err.Jelmer Vernooij2010-10-051-0/+2
|
* pyldb: test return code before trying to talloc_stealMatthieu Patou2010-10-041-2/+2
| | | | | Otherwise you can have an error on the talloc_steal as the req can have been not talloced yet
* pyldb: expose PyLdbDn_FromDn()Andrew Tridgell2010-09-091-18/+0
| | | | | | This is needed by the dsdb python interface Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* python-ldb: allow ldb_rename to take optional control(s)Matthieu Patou2010-09-051-4/+50
|
* pyldb: do type checking on the list form of ldb addAndrew Tridgell2010-08-221-0/+6
| | | | Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
* s4-pyldb: Use ldb_msg_difference() in py_ldb_msg_diff()Kamen Mazdrashki2010-07-191-2/+10
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:pyldb whitespace fixAndrew Bartlett2010-07-151-1/+1
|
* s4:pyldb Fix memory handling for ldb_message_elementAndrew Bartlett2010-07-151-5/+10
| | | | | | | The problem here is that we need to use the array, not the individual message element as the memory context. Andrew Bartlett
* ldb: allow ldb_sequence_number to be called in pythonMatthieu Patou2010-07-151-0/+26
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* ldb:pyldb.c - introduce a "mem_ctx" also on "py_ldb_search"Matthias Dieter Wallnöfer2010-06-201-12/+19
| | | | To prevent memory leaks
* ldb:pyldb.c - some cleanups and adequations also in "py_ldb_modify" and ↵Matthias Dieter Wallnöfer2010-06-201-19/+28
| | | | | | "py_ldb_rename" To make them consistent.
* ldb:python bindings - some small cleanup & improvements in "py_ldb_add"Matthias Dieter Wallnöfer2010-06-191-14/+13
| | | | Also to make it similar to "py_ldb_delete".
* ldb:python bindings - let also "py_ldb_delete" support controlsMatthias Dieter Wallnöfer2010-06-191-6/+50
|
* ldb:pyldb.c - we cannot use "ldb_dn_compare" if both message DNs are NULL in ↵Matthias Dieter Wallnöfer2010-06-071-3/+5
| | | | | | "py_ldb_msg_compare" Discovered by the testcase.
* s4:ldb python bindings - implement comparison on Python LDB Message objectsMatthieu Patou2010-06-071-2/+38
| | | | Coauthors: Jelmer Vernooij, Matthias Dieter Wallnöfer
* pyldb: Remove duplicate copy of function.Jelmer Vernooij2010-05-311-28/+0
|