summaryrefslogtreecommitdiffstats
path: root/lib/ldb/pyldb.c
Commit message (Collapse)AuthorAgeFilesLines
* ldb:pyldb: add some more helper functions for LdbDnStefan Metzmacher2014-05-021-0/+112
| | | | | | | | This adds [g|s]et_component[|_name|_value]() and get_rdn_[name|value](). Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* ldb:pyldb: fix doc string for set_extended_component()Stefan Metzmacher2014-05-021-1/+1
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* ldb:pyldb: add some const to PyObject_FromLdbValue()Stefan Metzmacher2014-05-021-1/+1
| | | | | | | | PyString_FromStringAndSize() makes a copy of the value... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* samba:python - Py_RETURN_NONE remove compatibility code for releases < 2.4Matthias Dieter Wallnöfer2014-01-091-4/+0
| | | | | | | | | http://www.python.org/doc//current/c-api/none.html Reviewed-By: Jelmer Vernooij <jelmer@samba.org> Autobuild-User(master): Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date(master): Thu Jan 9 16:27:47 CET 2014 on sn-devel-104
* pyldb: Fix CID 1034792 Dereference null return valueVolker Lendecke2013-08-191-0/+4
| | | | | | | | Add a NULL check Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* pyldb: decrement ref counters on py_results and quiet warningsMatthieu Patou2013-08-061-0/+4
| | | | | | | | Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User(master): Matthieu Patou <mat@samba.org> Autobuild-Date(master): Tue Aug 6 00:32:46 CEST 2013 on sn-devel-104
* pyldb: Add bindings for ldb_dn_remove_base_componentsAndrew Bartlett2012-07-061-0/+15
|
* pyldb: Fix dn concat operation to be the other way aroundAndrew Bartlett2012-07-061-1/+1
| | | | | | This now concatonates Dn(ldb, "cn=config") + Dn(ldb, "dc=samba,dc=org") as "cn=config,dc=samba,dc=org" Andrew Bartlett
* pyldb: Ensure that the ldb argument is really an ldb before we dereferenceAndrew Bartlett2012-06-111-0/+10
|
* pyldb: Fix some more long lines, fix formatting.Jelmer Vernooij2012-03-021-14/+37
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Mar 2 05:26:56 CET 2012 on sn-devel-104
* pyldb: Avoid using PyErr_LDB_ERROR_IS_ERR_RAISE where PyErr_SetLdbError ↵Jelmer Vernooij2012-03-011-13/+16
| | | | | | | suffices. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Mar 1 23:06:55 CET 2012 on sn-devel-104
* LDB:pyldb.c - use always the case insensitive comparison for attribute namesMatthias Dieter Wallnöfer2012-02-131-2/+2
| | | | | | We can make no assumptions about our users Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* pyldb: raise an exception if we can't add the attributeMatthieu Patou2012-01-031-1/+6
|
* pyldb: Add more docstrings.Jelmer Vernooij2011-12-081-7/+12
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Dec 8 22:08:49 CET 2011 on sn-devel-104
* pyldb: enhanced get() method on msg objectAndrew Tridgell2011-11-101-14/+33
| | | | | | | get() now takes a default value and an idx, allowing for much easier usage Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* pyldb: Remove duplicate definition of SYNTAX_DN.Jelmer Vernooij2011-11-021-1/+0
|
* ldb:pyldb.c - py_ldb_* modification calls - error string shouldn't be set hereMatthias Dieter Wallnöfer2011-10-111-17/+1
| | | | | | | | As discussed with Jelmer, we shouldn't be setting a generic LDB error string only for the Python bindings alone. This should be done in "ldb_request" and "ldb_wait" - the common place for all possible LDB access mechanisms. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* pyldb: Drop unnecessary dependency on pytalloc-util.Jelmer Vernooij2011-09-181-1/+0
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Sep 18 17:23:40 CEST 2011 on sn-devel-104
* ldb:pyldb.c - "py_ldb_rename" remove superflous "ldb" pointerMatthias Dieter Wallnöfer2011-09-131-4/+2
| | | | | | | Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Sep 13 18:11:18 CEST 2011 on sn-devel-104
* ldb:pyldb.c - point out that "PyLdbResult_AsResult" does not convert everythingMatthias Dieter Wallnöfer2011-09-111-1/+4
| | | | Reviewed-by: Jelmer
* pyldb: added OID_COMPARATOR constantsAndrew Tridgell2011-09-011-9/+11
| | | | | | | This also changes the other constants to remove the LDB_ prefix, which is redundent Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* pyldb: fixed a warningAndrew Tridgell2011-08-251-2/+2
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb - two cosmetic fixesMatthias Dieter Wallnöfer2011-08-191-2/+2
| | | | | @ldb.h: Removes an invalid comment line @pyldb.c: Fixes indentation
* pyldb: fix uninitialized memory bug in PyArg_ParseTuple() argumentStefan Metzmacher2011-08-081-1/+1
| | | | | | | | "s#", &str, &len) required 'len' as 'int' not as 'Py_ssize_t'. With Py_ssize_t the 2nd half of a 64bit Py_ssize_t, will be uninitialized as 'int' is only 32bit. metze
* pyldb: Consistently use pyldb_ prefix.Jelmer Vernooij2011-08-071-110/+118
|
* pyldb: return a copy of key constant DNs via python interfaceAndrew Tridgell2011-08-031-4/+21
| | | | | | | | | | this prevents an easy coding error where the caller modifies one of the key DNs for the database, by using an add_child function or similar Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* pyldb: added binary_encode() and binary_decode() methodsAndrew Tridgell2011-07-291-0/+53
| | | | | | | this gives access to RFC2254 encoding from python Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* pyldb: use dn.is_child_of() instead of dn.compare_base()Andrew Tridgell2011-07-211-4/+4
| | | | | | | | the compare_base() C API doesn't really fit well in python, as it returns 0 for true. Better to have a boolean function for the python interface. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb-python: add a function to Dn object to compare the Dn with a base DNMatthieu Patou2011-07-211-0/+17
|
* ldb: make ldb a top level library for Samba 4.0Andrew Bartlett2011-07-051-0/+3302
Signed-off-by: Andrew Tridgell <tridge@samba.org>