summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2019-07-04 13:26:20 +1200
committerAndrew Bartlett <abartlet@samba.org>2019-07-04 02:07:21 +0000
commitf8fbd9cfe166eeee796b8964c597598e9bca597f (patch)
tree3cfad685c198c739f6481d449799cdf7b5fad3d7 /lib
parentcbf074d7d5198158279929c19d582de9a340f782 (diff)
downloadsamba-f8fbd9cfe166eeee796b8964c597598e9bca597f.tar.gz
pyldb: Apply flags specified by ldb.Ldb(flags=...) even if the URL is not set
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'lib')
-rw-r--r--lib/ldb/pyldb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ldb/pyldb.c b/lib/ldb/pyldb.c
index 0858dddad40..868e3665128 100644
--- a/lib/ldb/pyldb.c
+++ b/lib/ldb/pyldb.c
@@ -1181,6 +1181,8 @@ static int py_ldb_init(PyLdbObject *self, PyObject *args, PyObject *kwargs)
PyErr_SetLdbError(PyExc_LdbError, ret, ldb);
return -1;
}
+ } else {
+ ldb_set_flags(ldb, flags);
}
talloc_free(options);