Sfoglia il codice sorgente

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.)
Holger Weiss 16 anni fa
parent
commit
ce3de90c9e
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 1 0
      NEWS
  2. 1 1
      plugins/check_ldap.c

+ 1 - 0
NEWS

@@ -16,6 +16,7 @@ This file documents the major additions and syntax changes between releases.
 	Fix regression in check_http ssl checks on some servers - make SNI an option
 	Fix regression in check_http ssl checks on some servers - make SNI an option
 	Fix guest mode support in check_disk_smb
 	Fix guest mode support in check_disk_smb
 	Fix check_disk_smb failure when run via ePN
 	Fix check_disk_smb failure when run via ePN
+	check_ldap now allows for specifying an empty LDAP base
 	WARNINGS
 	WARNINGS
 	Updated developer documentation to say that performance labels should not have an equals sign or
 	Updated developer documentation to say that performance labels should not have an equals sign or
 	single quote in the label
 	single quote in the label

+ 1 - 1
plugins/check_ldap.c

@@ -374,7 +374,7 @@ validate_arguments ()
 	if (ld_host==NULL || strlen(ld_host)==0)
 	if (ld_host==NULL || strlen(ld_host)==0)
 		usage4 (_("Please specify the host name\n"));
 		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"));
 		usage4 (_("Please specify the LDAP base\n"));
 
 
 	return OK;
 	return OK;