summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/pyldb.c
AgeCommit message (Collapse)AuthorFilesLines
2011-07-05ldb: make ldb a top level library for Samba 4.0Andrew Bartlett1-3302/+0
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-06-22pyldb: added methods to get/set extended components on DNsAndrew Tridgell1-0/+51
this will be used by the dbcheck code Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-06-22ldb: added extended_str() method to pyldbAndrew Tridgell1-0/+16
this gives access to ldb_dn_get_extended_linearized() from python Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-06-22ldb: expose syntax oids to pythonAndrew Tridgell1-0/+10
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-06-19py-ldb: allow dictionnary like usage (ie. e.get("myattribute", defVal)Matthieu Patou1-3/+8
2011-06-14pyldb: make ldb operations more consistentAndrew Tridgell1-12/+21
This changes the controls option on ldb operations to be a keyword argument, which is more consistent with general python conventions. This also fixes the pydoc output to include the controls option.
2011-06-14pyldb: added validate option to ldb.modify()Andrew Tridgell1-9/+15
This allows validation of ldb messages in a ldb modify operation to be bypassed, by setting validate=False. This is useful in the dbcheck tool to allow for removing invalid empty attributes from the database
2011-05-21ldb:pyldb.c - all flags should be unsignedMatthias Dieter Wallnöfer1-10/+10
Adapt it to the previous commits Reviewed-by: Jelmer + Metze
2011-03-20pyldb: minor fixup, fix a memory leakMatthieu Patou1-2/+3
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sun Mar 20 12:13:50 CET 2011 on sn-devel-104
2011-03-04s4:dsdb - we don't need to check if a DN != NULL if we call "ldb_dn_validate"Matthias Dieter Wallnöfer1-2/+1
"ldb_dn_validate" is NULL-safe and does the check implicitly. Reviewed by: Tridge
2011-02-21pyldb: create LdbResult, return value from ldb.search is now a LdbResultMatthieu Patou1-5/+318
2011-01-18s4-pyldb Fix tp_basicsize for PyLdbDnAndrew Bartlett1-1/+1
This wasn't actually causing problems before, as the structures were the same size. Andrew Bartlett
2011-01-14pyldb Simplify python wrappers for struct ldb_val (LdbValue)Andrew Bartlett1-17/+4
Andrew Bartlett
2011-01-03pyldb: Fix memory reference error.Jelmer Vernooij1-2/+2
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Jan 3 02:34:05 CET 2011 on sn-devel-104
2011-01-03pyldb: Always return -1, 0, or 1 in tp_compare functions.Jelmer Vernooij1-6/+9
2011-01-03Revert broken destructor changes.Jelmer Vernooij1-1/+1
2011-01-03pyldb: Fix memory context, add more OOM checks.Jelmer Vernooij1-6/+10
2011-01-03pyldb: Some more OOM checks.Jelmer Vernooij1-4/+28
2011-01-03Make all functions in pyldb.c private, as they can't be used anyway.Jelmer Vernooij1-21/+27
2011-01-03pyldb: Use pytalloc-util.Jelmer Vernooij1-0/+1
2011-01-03ldb: Remove duplicate definition of check_special, use PyObject_New.Jelmer Vernooij1-5/+4
2011-01-03s4-python: Properly call PyObject_Del from all destructors.Jelmer Vernooij1-1/+1
2011-01-01s4-python: Only set BASETYPE flag if subclassing is supported.Jelmer Vernooij1-4/+4
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Jan 1 03:39:58 CET 2011 on sn-devel-104
2011-01-01s4-python: Add more prototypes.Jelmer Vernooij1-0/+2
2011-01-01s4-python: Properly call PyObject_Del from all destructors.Jelmer Vernooij1-6/+6
2010-12-22ldb:pyldb.c - remove unused variableMatthias Dieter Wallnöfer1-1/+1
2010-12-21ldb: Add ldb.Message.add and ldb.Message.elements.Jelmer Vernooij1-32/+72
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Dec 21 15:03:17 CET 2010 on sn-devel-104
2010-12-12ldb:pyldb.h - revert to the previous header behaviourMatthias Dieter Wallnöfer1-0/+2
"ldb_private.h" is private and therefore might not always be available.
2010-12-12ldb:pyldb - optimise includesMatthias Dieter Wallnöfer1-3/+0
2010-11-22Avoid the use of PyAPI_DATA, which is for internal Python API's.Arnaud Faucher1-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
2010-11-18s4-pyldb: ldb.Message.from_dict class method to create LdbMessage object ↵Kamen Mazdrashki1-0/+44
from dictionary
2010-11-18s4-pyldb: Move code to create a ldb_message from a Python Dictionary object ↵Kamen Mazdrashki1-46/+73
into a separate function
2010-11-18s4-pyldb: Few miss-alignments alignedKamen Mazdrashki1-9/+8
2010-11-18s4-pyldb: Fix wrong type of 'self' parameterKamen Mazdrashki1-1/+1
2010-11-10s4-pyldb: Handle internal errors in py_ldb_contains() properlyKamen Mazdrashki1-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
2010-11-08s4:pyldb.c - fix "py_ldb_contains" according to the comment by JelmerMatthias Dieter Wallnöfer1-4/+2
2010-11-08ldb:pyldb.c - "py_ldb_msg_element_get" - here we can safely use "unsigned ↵Matthias Dieter Wallnöfer1-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
2010-11-08ldb:pyldb.c - "py_ldb_contains" - return only "0" not found, "1" found, "-1" ↵Matthias Dieter Wallnöfer1-3/+10
error
2010-11-08ldb:pyldb.c - most of the times "time_t" is defined as "long int"Matthias Dieter Wallnöfer1-5/+5
Therefore use a signed long int for conversions. http://stackoverflow.com/questions/471248/what-is-ultimately-a-time-t-typedef-to
2010-11-08ldb:pyldb.c - fix some "Py_ssize_t" output warningsMatthias Dieter Wallnöfer1-3/+2
2010-11-08ldb:pyldb.c - use "Py_ssize_t" for counting list entriesMatthias Dieter Wallnöfer1-12/+11
This seems to be the most appopriate type
2010-11-08ldb:pyldb.c - fix indentationMatthias Dieter Wallnöfer1-2/+3
2010-10-16ldb:pyldb.c - remove pointless commentMatthias Dieter Wallnöfer1-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
2010-10-05Add missing dependencies for com_err.Jelmer Vernooij1-0/+2
2010-10-04pyldb: test return code before trying to talloc_stealMatthieu Patou1-2/+2
Otherwise you can have an error on the talloc_steal as the req can have been not talloced yet
2010-09-09pyldb: expose PyLdbDn_FromDn()Andrew Tridgell1-18/+0
This is needed by the dsdb python interface Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-05python-ldb: allow ldb_rename to take optional control(s)Matthieu Patou1-4/+50
2010-08-22pyldb: do type checking on the list form of ldb addAndrew Tridgell1-0/+6
Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-07-19s4-pyldb: Use ldb_msg_difference() in py_ldb_msg_diff()Kamen Mazdrashki1-2/+10
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15s4:pyldb whitespace fixAndrew Bartlett1-1/+1