From f39f01e4980ed16af70a6df3dbec493ebe814396 Mon Sep 17 00:00:00 2001 From: Matthias Eble Date: Wed, 20 Jun 2007 11:09:47 +0000 Subject: Fixed default behaviour of check_ldaps git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1747 f882894a-f735-0410-b71e-b25c423dba1c 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[]) 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); -- cgit v0.10-9-g596f