summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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