Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
Syncrepl monitoring tools
Commits
349af5d0
Commit
349af5d0
authored
Sep 21, 2020
by
Ondřej Kuzník
Browse files
Can't use -s base for empty suffix
parent
0c07c7dc
Pipeline
#1047
passed with stage
in 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
syncmonitor/environment.py
View file @
349af5d0
...
...
@@ -89,6 +89,9 @@ class Provider:
self
.
cookie
=
SyncreplCookie
(
cookie
)
self
.
mode
=
mode
if
self
.
scope
==
ldap0
.
SCOPE_BASE
and
not
searchbase
:
self
.
scope
=
ldap0
.
SCOPE_SUBTREE
self
.
behind
=
Watchdog
(
30
)
self
.
behind
.
triggered
.
connect
(
self
.
_no_progress
)
...
...
@@ -108,7 +111,7 @@ class Provider:
control
=
ldap0
.
controls
.
syncrepl
.
SyncRequestControl
(
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
])
self
.
observer
=
SyncreplObserver
(
self
.
search
,
self
.
cookie
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment