summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb.i
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-11-06 14:02:40 +1100
committerAndrew Tridgell <tridge@samba.org>2008-11-06 14:02:40 +1100
commit30eff4f31b497ac94d8ee02ee2ec24bc8865ce0d (patch)
treefd1bac1a63ff9cb3c62187c091d474174f475b65 /source4/lib/ldb/ldb.i
parent41a1c882d4adec957a1ed180b53fd6874d9524f2 (diff)
downloadsamba-30eff4f31b497ac94d8ee02ee2ec24bc8865ce0d.tar.gz
samba-30eff4f31b497ac94d8ee02ee2ec24bc8865ce0d.tar.bz2
samba-30eff4f31b497ac94d8ee02ee2ec24bc8865ce0d.zip
fixed options argument to ldb connect in python
The options argument to ldb connect() needs to be marked for the same special handling as attrs in search
Diffstat (limited to 'source4/lib/ldb/ldb.i')
-rw-r--r--source4/lib/ldb/ldb.i4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb.i b/source4/lib/ldb/ldb.i
index 6013462225..35d443e809 100644
--- a/source4/lib/ldb/ldb.i
+++ b/source4/lib/ldb/ldb.i
@@ -190,6 +190,7 @@ PyObject *ldb_val_to_py_object(struct ldb_context *ldb_ctx,
}
%apply const char * const *NULL_STR_LIST { const char * const *attrs }
+%apply const char * const *NULL_STR_LIST { const char * const *options }
%apply const char * const *NULL_STR_LIST { const char * const *control_strings }
#endif
@@ -712,9 +713,10 @@ typedef struct ldb_context {
%feature("docstring") connect "S.connect(url,flags=0,options=None) -> None\n" \
"Connect to a LDB URL.";
ldb_error connect(const char *url, unsigned int flags = 0,
- const char *options[] = NULL);
+ const char *const *options = NULL);
~ldb() { talloc_free($self); }
+
ldb_error search_ex(TALLOC_CTX *mem_ctx,
ldb_dn *base = NULL,
enum ldb_scope scope = LDB_SCOPE_DEFAULT,