diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 +0000 |
commit | caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe (patch) | |
tree | 118fd80cc8ba27ef695a8e8ce409e5d70f4fa451 /plugins/check_ldap.c | |
parent | 16f53e0717b60660145388b0feb351628f606211 (diff) | |
download | monitoring-plugins-caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe.tar.gz |
Bulk EOL cleanup
$ git diff --ignore-space-change|diffstat
0 files changed
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ldap.c')
-rw-r--r-- | plugins/check_ldap.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c index 3d6f05c4..d0134a09 100644 --- a/plugins/check_ldap.c +++ b/plugins/check_ldap.c @@ -87,15 +87,15 @@ main (int argc, char *argv[]) LDAPMessage *result; /* should be int result = STATE_UNKNOWN; */ - + int status = STATE_UNKNOWN; long microsec; double elapsed_time; - + /* for ldap tls */ - - int tls; - int version=3; + + int tls; + int version=3; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -129,7 +129,7 @@ main (int argc, char *argv[]) printf ("Could not connect to the server at port %i\n", ld_port); return STATE_CRITICAL; } -#else +#else if (!(ld = ldap_open (ld_host, ld_port))) { if (verbose) ldap_perror(ld, "ldap_open"); @@ -137,7 +137,7 @@ main (int argc, char *argv[]) return STATE_CRITICAL; } #endif /* HAVE_LDAP_INIT */ - + #ifdef HAVE_LDAP_SET_OPTION /* set ldap options */ if (ldap_set_option (ld, LDAP_OPT_PROTOCOL_VERSION, &ld_protocol) != @@ -152,7 +152,7 @@ main (int argc, char *argv[]) #if defined(HAVE_LDAP_SET_OPTION) && defined(LDAP_OPT_X_TLS) /* ldaps: set option tls */ tls = LDAP_OPT_X_TLS_HARD; - + if (ldap_set_option (ld, LDAP_OPT_X_TLS, &tls) != LDAP_SUCCESS) { if (verbose) @@ -179,7 +179,7 @@ main (int argc, char *argv[]) /* call start_tls */ if (ldap_start_tls_s(ld, NULL, NULL) != LDAP_SUCCESS) { - if (verbose) + if (verbose) ldap_perror(ld, "ldap_start_tls"); printf (_("Could not init startTLS at port %i!\n"), ld_port); return STATE_CRITICAL; @@ -189,7 +189,7 @@ main (int argc, char *argv[]) return STATE_CRITICAL; #endif /* HAVE_LDAP_START_TLS_S */ } - + /* bind to the ldap server */ if (ldap_bind_s (ld, ld_binddn, ld_passwd, LDAP_AUTH_SIMPLE) != LDAP_SUCCESS) { |