summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Boddie <paul@boddie.org.uk>2014-09-12 22:08:21 +0200
committerPaul Boddie <paul@boddie.org.uk>2014-09-12 22:08:21 +0200
commit69b068bafb25086299674b3c6c28e9141880cec6 (patch)
tree50dd1d7c71a8b5ce5f57936ed35efd76f78f9907
parent80f3525eb609893815f3604ae8dcc551b520f0bc (diff)
downloadpykolab-69b068bafb25086299674b3c6c28e9141880cec6.tar.gz
Ensure that a local server really is available if indicated.
-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.