summaryrefslogtreecommitdiffstats
path: root/pykolab/setup/setup_ldap.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/setup/setup_ldap.py')
-rw-r--r--pykolab/setup/setup_ldap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/setup/setup_ldap.py b/pykolab/setup/setup_ldap.py
index 74cc828..d2bbbf2 100644
--- a/pykolab/setup/setup_ldap.py
+++ b/pykolab/setup/setup_ldap.py
@@ -194,7 +194,7 @@ def _execute(*args, **kw):
conf.command_set('ldap', 'ldap_uri', ldap_default)
ldap_server = ldap_uri and get_host_from_url(ldap_uri) or "localhost"
- local_server = ldap_server == "localhost"
+ local_server = ldap_server == "localhost" and have_ldap_server
# Pre-execution checks.