1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

fixed the build

the changes from Matthias didn't take account of url and lp being None
in some ldb python instances in 'make test'
This commit is contained in:
Andrew Tridgell
2009-08-17 21:40:19 +10:00
parent 7a79d16183
commit 3dee92fcb9

View File

@ -98,11 +98,13 @@ class Ldb(ldb.Ldb):
glue.ldb_set_utf8_casefold(self) glue.ldb_set_utf8_casefold(self)
# Allow admins to force non-sync ldb for all databases # Allow admins to force non-sync ldb for all databases
nosync_p = lp.get("nosync", "ldb") if lp is not None:
if nosync_p is not None and nosync_p == true: nosync_p = lp.get("nosync", "ldb")
if nosync_p is not None and nosync_p == true:
flags |= FLG_NOSYNC flags |= FLG_NOSYNC
self.connect(url, flags, options) if url is not None:
self.connect(url, flags, options)
def set_credentials(self, credentials): def set_credentials(self, credentials):
glue.ldb_set_credentials(self, credentials) glue.ldb_set_credentials(self, credentials)