From ce3de90c9ec8589b66412a7070d3bf15abc41b01 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sun, 11 Apr 2010 11:28:02 +0200 Subject: Fix Debian bug #479984: Allow empty LDAP base The check_ldap plugin did not allow for specifying an empty LDAP base. See: http://bugs.debian.org/479984 (Fixed by Stephane Chazelas, forwarded by Jan Wagner.) --- plugins/check_ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c index 49283946..400d74ad 100644 --- a/plugins/check_ldap.c +++ b/plugins/check_ldap.c @@ -374,7 +374,7 @@ validate_arguments () if (ld_host==NULL || strlen(ld_host)==0) usage4 (_("Please specify the host name\n")); - if (ld_base==NULL || strlen(ld_base)==0) + if (ld_base==NULL) usage4 (_("Please specify the LDAP base\n")); return OK; -- cgit v1.2.3-74-g34f1