summaryrefslogtreecommitdiff
path: root/lib/ldb/pyldb.c
AgeCommit message (Collapse)AuthorFilesLines
2011-08-08pyldb: fix uninitialized memory bug in PyArg_ParseTuple() argumentStefan Metzmacher1-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
2011-08-07pyldb: Consistently use pyldb_ prefix.Jelmer Vernooij1-110/+118
2011-08-03pyldb: return a copy of key constant DNs via python interfaceAndrew Tridgell1-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>
2011-07-29pyldb: added binary_encode() and binary_decode() methodsAndrew Tridgell1-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>
2011-07-21pyldb: use dn.is_child_of() instead of dn.compare_base()Andrew Tridgell1-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>
2011-07-21ldb-python: add a function to Dn object to compare the Dn with a base DNMatthieu Patou1-0/+17
2011-07-05ldb: make ldb a top level library for Samba 4.0Andrew Bartlett1-0/+3302
Signed-off-by: Andrew Tridgell <tridge@samba.org>