Commit 349af5d0 authored by Ondřej Kuzník's avatar Ondřej Kuzník

Can't use -s base for empty suffix

parent 0c07c7dc
Pipeline #1047 passed with stage
in 47 seconds
...@@ -89,6 +89,9 @@ class Provider: ...@@ -89,6 +89,9 @@ class Provider:
self.cookie = SyncreplCookie(cookie) self.cookie = SyncreplCookie(cookie)
self.mode = mode self.mode = mode
if self.scope == ldap0.SCOPE_BASE and not searchbase:
self.scope = ldap0.SCOPE_SUBTREE
self.behind = Watchdog(30) self.behind = Watchdog(30)
self.behind.triggered.connect(self._no_progress) self.behind.triggered.connect(self._no_progress)
...@@ -108,7 +111,7 @@ class Provider: ...@@ -108,7 +111,7 @@ class Provider:
control = ldap0.controls.syncrepl.SyncRequestControl( control = ldap0.controls.syncrepl.SyncRequestControl(
cookie=self.cookie, mode=self.mode) cookie=self.cookie, mode=self.mode)
self.search = self.client.search(self.base, scope=self.scope, self.search = self.client.search(self.base, scope=self.scope, filterstr="(|)",
req_ctrls=[control]) req_ctrls=[control])
self.observer = SyncreplObserver(self.search, self.cookie) self.observer = SyncreplObserver(self.search, self.cookie)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment