Module: check_mk
Branch: master
Commit: 07caf32afe4bc74c5421912fa347531d641ec80f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=07caf32afe4bc7…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 30 10:35:15 2017 +0200
Fixed issues in recent commit
Change-Id: Idbd38ed8732483a63c1a92534ceee9295796df86
---
web/plugins/userdb/ldap.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/plugins/userdb/ldap.py b/web/plugins/userdb/ldap.py
index 850a9a6..701d33f 100644
--- a/web/plugins/userdb/ldap.py
+++ b/web/plugins/userdb/ldap.py
@@ -322,7 +322,7 @@ class LDAPUserConnector(UserConnector):
locator.m_logger = log.logger
try:
server = locator.locate(domain)
- self.log(' DISCOVERY: Discovered server %r from %r' % (server,
connect_params["domain"]))
+ self.log(' DISCOVERY: Discovered server %r from %r' % (server,
domain))
return server
except Exception, e:
self.log(' DISCOVERY: Failed to discover a server from domain %r' %
domain)
@@ -475,7 +475,7 @@ class LDAPUserConnector(UserConnector):
if connect_method == "discover":
servers = [ self._discover_nearest_dc(connect_params["domain"]) ]
else:
- servers = [ connect_params['server'] ] +
connect_prams.get('failover_servers', [])
+ servers = [ connect_params['server'] ] +
connect_params.get('failover_servers', [])
return servers