]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pyldb: Apply flags specified by ldb.Ldb(flags=...) even if the URL is not set
authorAndrew Bartlett <abartlet@samba.org>
Thu, 4 Jul 2019 01:26:20 +0000 (13:26 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 4 Jul 2019 02:07:21 +0000 (02:07 +0000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/ldb/pyldb.c

index 0858dddad40e6068ad81b399a65c53a47154cc98..868e3665128095bbe86f576a3f369816f6ff205d 100644 (file)
@@ -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);