<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-BR">
	<id>https://wiki.slacam.com.br/index.php?action=history&amp;feed=atom&amp;title=Autentica_LDAP_Nagios</id>
	<title>Autentica LDAP Nagios - Histórico de revisão</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.slacam.com.br/index.php?action=history&amp;feed=atom&amp;title=Autentica_LDAP_Nagios"/>
	<link rel="alternate" type="text/html" href="https://wiki.slacam.com.br/index.php?title=Autentica_LDAP_Nagios&amp;action=history"/>
	<updated>2026-11-17T00:50:47Z</updated>
	<subtitle>Histórico de revisões para esta página neste wiki</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.slacam.com.br/index.php?title=Autentica_LDAP_Nagios&amp;diff=602&amp;oldid=prev</id>
		<title>Felipe em 20h50min de 18 de dezembro de 2013</title>
		<link rel="alternate" type="text/html" href="https://wiki.slacam.com.br/index.php?title=Autentica_LDAP_Nagios&amp;diff=602&amp;oldid=prev"/>
		<updated>2013-12-18T20:50:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;pt-BR&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Edição anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Edição das 20h50min de 18 de dezembro de 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Linha 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linha 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;ads media=goo5/&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;LDAP authentication in Nagios 3.2.3 on CentOS 5.5&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;LDAP authentication in Nagios 3.2.3 on CentOS 5.5&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Enabling LDAP authentication in Nagios has been one of those things that I&amp;#039;ve been putting off for a while. It took me three hours to finally get it, but it is working - thank god. I&amp;#039;d like to share with you the configuration changes that made LDAP authentication work in Nagios 3.2.3 on a CentOS 5.5 install.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Enabling LDAP authentication in Nagios has been one of those things that I&amp;#039;ve been putting off for a while. It took me three hours to finally get it, but it is working - thank god. I&amp;#039;d like to share with you the configuration changes that made LDAP authentication work in Nagios 3.2.3 on a CentOS 5.5 install.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Felipe</name></author>
	</entry>
	<entry>
		<id>https://wiki.slacam.com.br/index.php?title=Autentica_LDAP_Nagios&amp;diff=280&amp;oldid=prev</id>
		<title>Machado: Criou página com &#039;&#039;&#039;&#039;LDAP authentication in Nagios 3.2.3 on CentOS 5.5&#039;&#039;&#039; Enabling LDAP authentication in Nagios has been one of those things that I&#039;ve been putting off for a while. It took me thr…&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.slacam.com.br/index.php?title=Autentica_LDAP_Nagios&amp;diff=280&amp;oldid=prev"/>
		<updated>2011-07-22T00:48:17Z</updated>

		<summary type="html">&lt;p&gt;Criou página com &amp;#039;&amp;#039;&amp;#039;&amp;#039;LDAP authentication in Nagios 3.2.3 on CentOS 5.5&amp;#039;&amp;#039;&amp;#039; Enabling LDAP authentication in Nagios has been one of those things that I&amp;#039;ve been putting off for a while. It took me thr…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;LDAP authentication in Nagios 3.2.3 on CentOS 5.5&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Enabling LDAP authentication in Nagios has been one of those things that I&amp;#039;ve been putting off for a while. It took me three hours to finally get it, but it is working - thank god. I&amp;#039;d like to share with you the configuration changes that made LDAP authentication work in Nagios 3.2.3 on a CentOS 5.5 install.&lt;br /&gt;
&lt;br /&gt;
1. Make sure that Nagios and Apache are installed correctly.&lt;br /&gt;
&lt;br /&gt;
2. The following module should exist in your /etc/httpd/httpd.conf file:&lt;br /&gt;
&lt;br /&gt;
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so&lt;br /&gt;
&lt;br /&gt;
If not, install the package with the following command: yum install mod_authz_ldap.i386&lt;br /&gt;
&lt;br /&gt;
3. Next, change the /etc/openldap/ldap.conf file. Add the following line:&lt;br /&gt;
&lt;br /&gt;
REFERRALS       off&lt;br /&gt;
&lt;br /&gt;
4. Edit the /etc/httpd/conf.d/nagios.conf file and tailor it to your LDAP environment. Here&amp;#039;s a sanitized version of my configuration:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ScriptAlias /nagios/cgi-bin &amp;quot;/usr/lib/nagios/cgi&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Directory &amp;quot;/usr/lib/nagios/cgi&amp;quot;&amp;gt;&lt;br /&gt;
#  SSLRequireSSL&lt;br /&gt;
   Options ExecCGI&lt;br /&gt;
   AllowOverride None&lt;br /&gt;
   Order allow,deny&lt;br /&gt;
   Allow from all&lt;br /&gt;
   AuthBasicProvider ldap&lt;br /&gt;
   AuthType Basic&lt;br /&gt;
   AuthName &amp;quot;LDAP Authentication&amp;quot;&lt;br /&gt;
   AuthLDAPURL &amp;quot;ldap://test.domain.edu:389/OU=Specific,OU=Branch,OU=School,DC=test,DC=edu?sAMAccountName?one?(objectClass=user)&amp;quot; NONE&lt;br /&gt;
   AuthLDAPBindDN &amp;quot;CN=NagiosUser,OU=School,DC=test,DC=edu&amp;quot;&lt;br /&gt;
   AuthLDAPBindPassword &amp;quot;mypassword&amp;quot; &lt;br /&gt;
   require valid-user&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alias /nagios &amp;quot;/usr/share/nagios&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Directory &amp;quot;/usr/share/nagios&amp;quot;&amp;gt;&lt;br /&gt;
   Options None&lt;br /&gt;
   AllowOverride None&lt;br /&gt;
   Order allow,deny&lt;br /&gt;
   Allow from all&lt;br /&gt;
   AuthBasicProvider ldap&lt;br /&gt;
   AuthType Basic&lt;br /&gt;
   AuthName &amp;quot;LDAP Authentication&amp;quot;&lt;br /&gt;
   AuthLDAPURL &amp;quot;ldap://test.domain.edu:389/OU=Specific,OU=Branch,OU=School,DC=test,DC=edu?sAMAccountName?one?(objectClass=user)&amp;quot; NONE&lt;br /&gt;
   AuthLDAPBindDN &amp;quot;CN=NagiosUser,OU=School,DC=test,DC=edu&amp;quot;&lt;br /&gt;
   AuthLDAPBindPassword &amp;quot;mypassword&amp;quot;&lt;br /&gt;
   require ldap-attribute objectClass=user&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. The final piece is changing the cgi.cfg file. You&amp;#039;ll receive CGI authentication errors if you do not take this step. Here&amp;#039;s the changes that I made to fix that issue:&lt;br /&gt;
&lt;br /&gt;
These are the original directives that I commented out:&lt;br /&gt;
&lt;br /&gt;
grep &amp;quot;#&amp;quot; /etc/nagios/cgi.cfg | grep -i &amp;quot;nagiosadmin&amp;quot;&lt;br /&gt;
#authorized_for_system_information=nagiosadmin&lt;br /&gt;
#authorized_for_configuration_information=nagiosadmin&lt;br /&gt;
#authorized_for_system_commands=nagiosadmin&lt;br /&gt;
#authorized_for_all_services=nagiosadmin&lt;br /&gt;
#authorized_for_all_hosts=nagiosadmin&lt;br /&gt;
#authorized_for_all_service_commands=nagiosadmin&lt;br /&gt;
#authorized_for_all_host_commands=nagiosadmin&lt;br /&gt;
&lt;br /&gt;
Replace all of the &amp;quot;nagiosadmin&amp;quot; entries with &amp;quot;*&amp;quot;. This will give all LDAP authenticated users access to Nagios&amp;#039;s functionality.&lt;br /&gt;
&lt;br /&gt;
grep &amp;quot;*&amp;quot; /etc/nagios/cgi.cfg | grep -v &amp;quot;#&amp;quot;&lt;br /&gt;
authorized_for_system_information=*&lt;br /&gt;
authorized_for_configuration_information=*&lt;br /&gt;
authorized_for_system_commands=*&lt;br /&gt;
authorized_for_all_services=*&lt;br /&gt;
authorized_for_all_hosts=*&lt;br /&gt;
authorized_for_all_service_commands=*&lt;br /&gt;
authorized_for_all_host_commands=*&lt;br /&gt;
&lt;br /&gt;
Finally,&lt;br /&gt;
&lt;br /&gt;
/etc/init.d/httpd restart; /etc/init.d/nagios restart&lt;br /&gt;
&lt;br /&gt;
Log into Nagios via LDAP and enjoy!&lt;/div&gt;</summary>
		<author><name>Machado</name></author>
	</entry>
</feed>