summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Eble <psychotrahe@users.sourceforge.net>2007-06-20 11:09:47 (GMT)
committerMatthias Eble <psychotrahe@users.sourceforge.net>2007-06-20 11:09:47 (GMT)
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 a2f0dee..fc1d3c6 100644
--- a/plugins/check_ldap.c
+++ b/plugins/check_ldap.c
@@ -101,12 +101,14 @@ main (int argc, char *argv[])
101 101
102 if (strstr(argv[0],"check_ldaps")) { 102 if (strstr(argv[0],"check_ldaps")) {
103 asprintf (&progname, "check_ldaps"); 103 asprintf (&progname, "check_ldaps");
104 starttls = TRUE;
105 } 104 }
106 105
107 if (process_arguments (argc, argv) == ERROR) 106 if (process_arguments (argc, argv) == ERROR)
108 usage4 (_("Could not parse arguments")); 107 usage4 (_("Could not parse arguments"));
109 108
109 if (strstr(argv[0],"check_ldaps") && ! starttls && ! ssl_on_connect)
110 starttls = TRUE;
111
110 /* initialize alarm signal handling */ 112 /* initialize alarm signal handling */
111 signal (SIGALRM, socket_timeout_alarm_handler); 113 signal (SIGALRM, socket_timeout_alarm_handler);
112 114