[nagios-plugins] check_ldap: add certificate support (#1194)

waja <notifications-9UaJU3cA/F/[email protected]> Tue, 01 Oct 2013 11:22:48 -0700
Newsgroups gmane.network.nagios.plugins.devel
Message-ID <nagios-plugins/nagios-plugins/pull/[email protected]>
--===============2196299137795435805==
Content-Type: multipart/alternative;
	boundary="--==_mimepart_524b12f83fb5e_69115a7d3c4125";
	charset=UTF-8
Content-Transfer-Encoding: 7bit

----==_mimepart_524b12f83fb5e_69115a7d3c4125
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

Here&#39;s a patch adding the certificate expiration check feature to the ldap
plugin, based on the http plugin. For some unknown reason, probably due to
the way secure connection is established, it doesn&#39;t work with the --ssl
options, only for the --starttls one.
--
Just turning attached patch of github issue #1067 into a push request.
(Closes #1067)
You can merge this Pull Request by running:

  git pull https://github.com/waja/nagios-plugins github1067

Or you can view, comment on it, or merge it online at:

  https://github.com/nagios-plugins/nagios-plugins/pull/1194

-- Commit Summary --

  * check_ldap: add certificate support

-- File Changes --

    M THANKS.in (1)
    M plugins/Makefile.am (2)
    M plugins/check_ldap.c (58)
    M plugins/netutils.h (1)
    M plugins/sslutils.c (11)

-- Patch Links --

https://github.com/nagios-plugins/nagios-plugins/pull/1194.patch
https://github.com/nagios-plugins/nagios-plugins/pull/1194.diff

----==_mimepart_524b12f83fb5e_69115a7d3c4125
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

<p>Here's a patch adding the certificate expiration check feature to the ldap<br>
plugin, based on the http plugin. For some unknown reason, probably due to<br>
the way secure connection is established, it doesn't work with the --ssl</p>

<h2>options, only for the --starttls one.</h2>

<p>Just turning attached patch of github issue <a href="https://github.com/nagios-plugins/nagios-plugins/issues/1067" class="issue-link" title="add check certificate support for LDAP plugin [sf#2430999]">#1067</a> into a push request.<br>
(Closes <a href="https://github.com/nagios-plugins/nagios-plugins/issues/1067" class="issue-link" title="add check certificate support for LDAP plugin [sf#2430999]">#1067</a>)</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/waja/nagios-plugins github1067</pre>
<p>Or view, comment on, or merge it at:</p>
<p>&nbsp;&nbsp;<a href='https://github.com/nagios-plugins/nagios-plugins/pull/1194'>https://github.com/nagios-plugins/nagios-plugins/pull/1194</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>check_ldap: add certificate support</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/nagios-plugins/nagios-plugins/pull/1194/files#diff-0">THANKS.in</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/nagios-plugins/nagios-plugins/pull/1194/files#diff-1">plugins/Makefile.am</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/nagios-plugins/nagios-plugins/pull/1194/files#diff-2">plugins/check_ldap.c</a>
    (58)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/nagios-plugins/nagios-plugins/pull/1194/files#diff-3">plugins/netutils.h</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/nagios-plugins/nagios-plugins/pull/1194/files#diff-4">plugins/sslutils.c</a>
    (11)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/nagios-plugins/nagios-plugins/pull/1194.patch'>https://github.com/nagios-plugins/nagios-plugins/pull/1194.patch</a></li>
  <li><a href='https://github.com/nagios-plugins/nagios-plugins/pull/1194.diff'>https://github.com/nagios-plugins/nagios-plugins/pull/1194.diff</a></li>
</ul>

----==_mimepart_524b12f83fb5e_69115a7d3c4125--


--===============2196299137795435805==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
--===============2196299137795435805==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________________
Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
--===============2196299137795435805==--