summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5960026)
raw | patch | inline | side by side (parent: 5960026)
author | Matthias Eble <psychotrahe@users.sourceforge.net> | |
Wed, 20 Jun 2007 11:09:47 +0000 (11:09 +0000) | ||
committer | Matthias Eble <psychotrahe@users.sourceforge.net> | |
Wed, 20 Jun 2007 11:09:47 +0000 (11:09 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1747 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_ldap.c | patch | blob | history |
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c
index a2f0dee6551a28c6a276e3af5f40303805089c83..fc1d3c6cf0ffea4ec5df885c9344387a677f1db6 100644 (file)
--- a/plugins/check_ldap.c
+++ b/plugins/check_ldap.c
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);