Module: check_mk
Branch: master
Commit: 8a7b1750b16044b7195660bff7ab1e2b0bafcf4e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8a7b1750b16044…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Aug 11 11:40:33 2015 +0200
check_ldap: fix fatal bug if new hostname is *not* specified
---
checks/check_ldap | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/check_ldap b/checks/check_ldap
index 346a489..7a7f354 100644
--- a/checks/check_ldap
+++ b/checks/check_ldap
@@ -30,7 +30,7 @@ def check_ldap_arguments(params):
if "hostname" in settings:
args = ' -H %s' % quote_shell_string(settings["hostname"])
else:
- args = ' -H $HOSTADDRESS'
+ args = ' -H $HOSTADDRESS$'
args += ' -b %s' % quote_shell_string(basedn)