aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matthias Eble <psychotrahe@users.sourceforge.net> 2008-01-06 00:10:49 +0000
committerGravatar Matthias Eble <psychotrahe@users.sourceforge.net> 2008-01-06 00:10:49 +0000
commit2375feee3d81b692116f078b41df8b19aecd6e68 (patch)
treea74cd1f66ad41ae30d7108834c88f705c71cef8a
parentb5d3997aa39169637871a4bca5f860fae21aba3e (diff)
downloadmonitoring-plugins-2375feee3d81b692116f078b41df8b19aecd6e68.tar.gz
If unspecified set LDAP_OPT_SUCCESS to LDAP_SUCCESS (Sergei Haramundanis - #1498923)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1888 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/check_ldap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c
index 6a46ff12..5541e5c8 100644
--- a/plugins/check_ldap.c
+++ b/plugins/check_ldap.c
@@ -67,6 +67,9 @@ int ld_port = DEFAULT_PORT;
#ifdef HAVE_LDAP_SET_OPTION
int ld_protocol = DEFAULT_PROTOCOL;
#endif
+#ifndef LDAP_OPT_SUCCESS
+# define LDAP_OPT_SUCCESS LDAP_SUCCESS
+#endif
double warn_time = UNDEFINED;
double crit_time = UNDEFINED;
struct timeval tv;