aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_ldap.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ldap.c')
-rw-r--r--plugins/check_ldap.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c
index 9c41cc30..b12a0edb 100644
--- a/plugins/check_ldap.c
+++ b/plugins/check_ldap.c
@@ -335,6 +335,13 @@ print_usage (void)
Usage: %s -H <host> -b <base_dn> [-p <port>] [-a <attr>] [-D <binddn>]\n\
[-P <password>] [-w <warn_time>] [-c <crit_time>] [-t timeout]%s\n\
(Note: all times are in seconds.)\n"),
- progname, (HAVE_LDAP_SET_OPTION ? "[-2|-3] [-4|-6]" : ""));
+ progname,
+#ifdef HAVE_LDAP_SET_OPTION
+ " [-2|-3] [-4|-6]"
+#else
+ ""
+#endif
+ );
+
printf (_(UT_HLP_VRS), progname, progname);
}