aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matthias Eble <psychotrahe@users.sourceforge.net> 2007-06-20 11:09:47 +0000
committerGravatar Matthias Eble <psychotrahe@users.sourceforge.net> 2007-06-20 11:09:47 +0000
commitf39f01e4980ed16af70a6df3dbec493ebe814396 (patch)
tree62835f96344cb56efd205f04b27ae860943c7c6b
parent596002687a957a7f3512607cf3e4135903e12cee (diff)
downloadmonitoring-plugins-f39f01e4980ed16af70a6df3dbec493ebe814396.tar.gz
Fixed default behaviour of check_ldaps
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1747 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/check_ldap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c
index a2f0dee6..fc1d3c6c 100644
--- a/plugins/check_ldap.c
+++ b/plugins/check_ldap.c
@@ -101,12 +101,14 @@ main (int argc, char *argv[])
if (strstr(argv[0],"check_ldaps")) {
asprintf (&progname, "check_ldaps");
- starttls = TRUE;
}
if (process_arguments (argc, argv) == ERROR)
usage4 (_("Could not parse arguments"));
+ if (strstr(argv[0],"check_ldaps") && ! starttls && ! ssl_on_connect)
+ starttls = TRUE;
+
/* initialize alarm signal handling */
signal (SIGALRM, socket_timeout_alarm_handler);