X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fcheck_ldap.c;h=400d74ad7655f38bdba16a722b7b76e5076ab625;hb=ce3de90c9ec8589b66412a7070d3bf15abc41b01;hp=7ef4509c0c2ffd39569bdf060c54d1ad61469dee;hpb=6fbd14fea5c111a23d9074d25499991cbfa58f79;p=nagiosplug.git diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c index 7ef4509..400d74a 100644 --- a/plugins/check_ldap.c +++ b/plugins/check_ldap.c @@ -36,6 +36,7 @@ const char *email = "nagiosplug-devel@lists.sourceforge.net"; #include "utils.h" #include +#define LDAP_DEPRECATED 1 #include enum { @@ -191,7 +192,7 @@ main (int argc, char *argv[]) LDAP_SUCCESS) { if (verbose) ldap_perror(ld, "ldap_bind"); - printf (_("Could not bind to the ldap-server\n")); + printf (_("Could not bind to the LDAP server\n")); return STATE_CRITICAL; } @@ -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;