summaryrefslogtreecommitdiffstats
path: root/plugins/check_ldap.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2006-10-19 00:25:16 (GMT)
committerBenoit Mortier <opensides@users.sourceforge.net>2006-10-19 00:25:16 (GMT)
commit082cfc29e3673abf595d70cd05f0a483947c22d5 (patch)
treead3b7e973e4cb01c1fc02999da2ad3b0640f1b99 /plugins/check_ldap.c
parent584562a48ea731a3bf98d66c6602c64e1e72c63a (diff)
downloadmonitoring-plugins-082cfc29e3673abf595d70cd05f0a483947c22d5.tar.gz
first pass at cleaning localization for new release
first pass at making all the headre be the same licence, plugin, etc... git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1499 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ldap.c')
-rw-r--r--plugins/check_ldap.c52
1 files changed, 33 insertions, 19 deletions
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c
index 7f8b7fd..c33746b 100644
--- a/plugins/check_ldap.c
+++ b/plugins/check_ldap.c
@@ -1,18 +1,31 @@
1/****************************************************************************** 1/******************************************************************************
2 2*
3 This program is free software; you can redistribute it and/or modify 3* Nagios check_ldap plugin
4 it under the terms of the GNU General Public License as published by 4*
5 the Free Software Foundation; either version 2 of the License, or 5* License: GPL
6 (at your option) any later version. 6* Copyright (c) 1999-2006 nagios-plugins team
7 7*
8 This program is distributed in the hope that it will be useful, 8* Last Modified: $Date$
9 but WITHOUT ANY WARRANTY; without even the implied warranty of 9*
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10* Description:
11 GNU General Public License for more details. 11*
12 12* This file contains the check_ldap plugin
13 You should have received a copy of the GNU General Public License 13*
14 along with this program; if not, write to the Free Software 14* License Information:
15 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 15*
16* This program is free software; you can redistribute it and/or modify
17* it under the terms of the GNU General Public License as published by
18* the Free Software Foundation; either version 2 of the License, or
19* (at your option) any later version.
20*
21* This program is distributed in the hope that it will be useful,
22* but WITHOUT ANY WARRANTY; without even the implied warranty of
23* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24* GNU General Public License for more details.
25*
26* You should have received a copy of the GNU General Public License
27* along with this program; if not, write to the Free Software
28* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16 29
17 $Id$ 30 $Id$
18 31
@@ -388,16 +401,17 @@ print_help (void)
388 printf (_(UT_SUPPORT)); 401 printf (_(UT_SUPPORT));
389} 402}
390 403
404/* todo
405* add option -4 and -6 to the long manual
406*
407*/
391 408
392void 409void
393print_usage (void) 410print_usage (void)
394{ 411{
395 printf (_("Usage:")); 412 printf (_("Usage:"));
396 printf ("\%s -H <host> -b <base_dn> [-p <port>] [-a <attr>] [-D <binddn>]\n\ 413 printf (" %s -H <host> -b <base_dn> [-p <port>] [-a <attr>] [-D <binddn>]",progname);
397 [-P <password>] [-w <warn_time>] [-c <crit_time>]\n\ 414 printf ("[-P <password>] [-w <warn_time>] [-c <crit_time>] [-t timeout]\n",
398 [-t timeout]%s\n",
399//(Note: all times are in seconds.)\n",
400 progname,
401#ifdef HAVE_LDAP_SET_OPTION 415#ifdef HAVE_LDAP_SET_OPTION
402 " [-2|-3] [-4|-6]" 416 " [-2|-3] [-4|-6]"
403#else 417#else