summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-03-21 02:19:25 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-03-21 02:19:25 +0100
commit960b75531530c05fcaaa7400e52f2b688a6e8d88 (patch)
tree66120a5cda1b17c77f96da96ec753131973456f9 /source4/lib
parentde1e3e2cf0c666a51b062ed5395906892beb53c0 (diff)
downloadsamba-960b75531530c05fcaaa7400e52f2b688a6e8d88.tar.gz
samba-960b75531530c05fcaaa7400e52f2b688a6e8d88.tar.bz2
samba-960b75531530c05fcaaa7400e52f2b688a6e8d88.zip
pyldb: Let conversion to LDIF up to the user of the API rather than doing
it implicitly.
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/pyldb.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c
index 3e3aa97240..bceda05e4f 100644
--- a/source4/lib/ldb/pyldb.c
+++ b/source4/lib/ldb/pyldb.c
@@ -65,18 +65,7 @@ static PyObject *PyObject_FromLdbValue(struct ldb_context *ldb_ctx,
PyObject *ret;
new_val = *val;
-
- if (ldb_ctx != NULL) {
- a = ldb_schema_attribute_by_name(ldb_ctx, el->name);
-
- if (a != NULL) {
- if (a->syntax->ldif_write_fn(ldb_ctx, mem_ctx, val, &new_val) != 0) {
- talloc_free(mem_ctx);
- return NULL;
- }
- }
- }
-
+
ret = PyString_FromStringAndSize((const char *)new_val.data, new_val.length);
talloc_free(mem_ctx);