Code

Fix Debian bug #479984: Allow empty LDAP base
[nagiosplug.git] / plugins / check_ldap.c
index 25432de12f9e35b6b8379e97f8150d3b74075eda..400d74ad7655f38bdba16a722b7b76e5076ab625 100644 (file)
@@ -36,6 +36,7 @@ const char *email = "nagiosplug-devel@lists.sourceforge.net";
 #include "utils.h"
 
 #include <lber.h>
+#define LDAP_DEPRECATED 1
 #include <ldap.h>
 
 enum {
@@ -373,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;