<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I don’t mind the users authenticating from one source, but the
submit commands don’t appear to work when authenticating against Windows AD
(see my mail below). The reason I am using the NTLM auth module is to get “single
sign-on” so that users are not prompted for their username/passwords once they
are already logged into  the Windows domain (which works).<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>If I go with the apache password text file, then I will have another
credential database to maintain (user account maintenance) and it means my
users will have to learn another set of passwords. I also don’t want to go the
way of setting up a full SAMBA installation just to proxy the authentication to
the domain controller.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>"This mail is from a Gimper"<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Alex Dehaini
[mailto:alexdehaini@gmail.com] <br>
<b>Sent:</b> Saturday, May 23, 2009 2:32 PM<br>
<b>To:</b> Ayotunde Itayemi<br>
<b>Cc:</b> nagios-users@lists.sourceforge.net<br>
<b>Subject:</b> Re: [Nagios-users] Using both NTLM and htpasswd file
authentication for NAGIOS web interface<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>You want to send this to the nagios
developer mailing list. Seems you are spoiling your users - why can't they all
authenticate from one source - apache?<br>
<br>
Regards,<br>
Alex<o:p></o:p></p>

<div>

<p class=MsoNormal>On Sat, May 23, 2009 at 1:11 PM, Ayotunde Itayemi <<a
href="mailto:Ayotunde.Itayemi@zain.com">Ayotunde.Itayemi@zain.com</a>>
wrote:<o:p></o:p></p>

<div>

<div>

<p><span style='font-size:11.0pt;color:#1F497D'>Hi,</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>Thanks for the response. Each
authentication method works OK alone, but I need to allow regular Windows AD
users “read-only” access to the Nagios web interface while allowing admin users
(from the htpasswd) access to the same interface. Actually, I wouldn’t need to
do this if I could get Nagios to allow designated Windows AD users submit
commands via the web interface.</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>Thanks.</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>"This mail is from a
Gimper"</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;
border-color:-moz-use-text-color -moz-use-text-color'>

<p><b><span style='font-size:10.0pt'>From:</span></b><span style='font-size:
10.0pt'> Alex Dehaini [mailto:<a href="mailto:alexdehaini@gmail.com"
target="_blank">alexdehaini@gmail.com</a>] <br>
<b>Sent:</b> Saturday, May 23, 2009 2:00 PM<br>
<b>To:</b> Ayotunde Itayemi<br>
<b>Cc:</b> <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br>
<b>Subject:</b> Re: [Nagios-users] Using both NTLM and htpasswd file
authentication for NAGIOS web interface</span><o:p></o:p></p>

</div>

<div>

<div>

<p> <o:p></o:p></p>

<p style='margin-bottom:12.0pt'>Hi Tunde,<br>
<br>
I have never tried this before but I will suggest you try your auth systems one
at a time to know they are working before implementing them.<br>
<br>
Nagios uses apache http authentication by default so you should not have any
issues with this. Or maybe I am missing something, please correct if I am.<br>
<br>
Never tried NTLM authentication with nagios so I can't help in that area but
you can look at this link<br>
<br>
<a href="http://www.itefix.no/i2/node/11683" target="_blank">http://www.itefix.no/i2/node/11683</a><br>
<br>
I am sure there are pam or kerberos modules that can talk to a dbase like ldap
or AD.<br>
<br>
Regards,<br>
Alex<br>
<br>
<br>
<o:p></o:p></p>

<div>

<p>On Sat, May 23, 2009 at 12:34 PM, Ayotunde Itayemi <<a
href="mailto:Ayotunde.Itayemi@zain.com" target="_blank">Ayotunde.Itayemi@zain.com</a>>
wrote:<o:p></o:p></p>

<div>

<div>

<p>Hi All,<o:p></o:p></p>

<p>I would like to use both NTLM authentication and htpasswd authentication to
grant access to the NAGIOS web interface. If possible, authenticate against
Windows AD first, and if not successful, authenticate against the apache
htpasswd file (possibly use the htpasswd file like a fall-back/default
authentication mechanism).<o:p></o:p></p>

<p> <o:p></o:p></p>

<p>My /etc/httpd/conf.d/nagios.conf file’s content is listed below.  I
suspect I need to incorporate “AuthType Basic” in there somehow, but I have
tried various option (specifying the htppasswd file too, but I usually end up
with the authentication not functioning at all)<o:p></o:p></p>

<p> <o:p></o:p></p>

<p>The first access dialog box has the text “Enter username and password for <a
href="http://mynagios" target="_blank">http://mynagios</a>” and if I enter a
valid Windows AD credential, I get logged in. If instead, I select cancel on
this dialog box, I get a second access dialog box with the text “A username and
password are being requested by <a href="http://znlnagios" target="_blank">http://znlnagios</a>.
The site says: "NAGIOS". If I supply a valid Windows AD credential, I
get logged in also.<o:p></o:p></p>

<p> <o:p></o:p></p>

<p>This also brings me to a related issue, I cannot use the “Downtime” module –
and any other module by which I can submit a command. I get the message that I
am not authorized to submit the command to Nagios. Yet, I have added the user
(MYDOMAIN\username and also username) to the relevant sections of the cgi.cgi
file.<o:p></o:p></p>

<p>Thanks.<o:p></o:p></p>

<p> <o:p></o:p></p>

<p>The content of /etc/httpd/conf.d/nagios.conf<o:p></o:p></p>

<p># cat /etc/httpd/conf.d/nagios.conf<o:p></o:p></p>

<p>  NTLMAuth on<o:p></o:p></p>

<p>  NTLMAuthoritative on<o:p></o:p></p>

<p>  NTLMBasicAuth on<o:p></o:p></p>

<p>  NTLMBasicRealm NAGIOS<o:p></o:p></p>

<p>  AuthUserFile /usr/local/nagios/etc/htpasswd.users<o:p></o:p></p>

<p>  NTLMDomain MY-WINDOWS-DOMAIN<o:p></o:p></p>

<p>  NTLMLockfile /tmp/_my.lck<o:p></o:p></p>

<p>  NTLMServer my-winaddc1<o:p></o:p></p>

<p>  NTLMBackup my-winaddc2<o:p></o:p></p>

<p>  Require valid-user<o:p></o:p></p>

<p>#  Satisfy all<o:p></o:p></p>

<p></Directory><o:p></o:p></p>

<p> <o:p></o:p></p>

<p>Alias /nagios "/usr/local/nagios/share"<o:p></o:p></p>

<p> <o:p></o:p></p>

<p><Directory "/usr/local/nagios/share"><o:p></o:p></p>

<p>  AuthName NTAuth<o:p></o:p></p>

<p>  AuthType NTLM<o:p></o:p></p>

<p>  NTLMAuth on<o:p></o:p></p>

<p>  NTLMAuthoritative on<o:p></o:p></p>

<p>  NTLMBasicAuth on<o:p></o:p></p>

<p>  NTLMBasicRealm NAGIOS<o:p></o:p></p>

<p>  AuthUserFile /usr/local/nagios/etc/htpasswd.users<o:p></o:p></p>

<p>  NTLMDomain MY-WINDOWS-DOMAIN<o:p></o:p></p>

<p>  NTLMLockfile /tmp/_my.lck<o:p></o:p></p>

<p>  NTLMServer my-winaddc1<o:p></o:p></p>

<p>  NTLMBackup my-winaddc2<o:p></o:p></p>

<p>  Require valid-user<o:p></o:p></p>

<p>  Satisfy all<o:p></o:p></p>

<p></Directory><o:p></o:p></p>

<p> <o:p></o:p></p>

</div>

</div>

<p><br>
------------------------------------------------------------------------------<br>
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT<br>
is a gathering of tech-side developers & brand creativity professionals.
Meet<br>
the minds behind Google Creative Lab, Visual Complexity, Processing, &<br>
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian<br>
Group, R/GA, & Big Spaceship. <a href="http://www.creativitycat.com"
target="_blank">http://www.creativitycat.com</a> <br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users"
target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<o:p></o:p></p>

</div>

<p><br>
<br clear=all>
<br>
-- <br>
Alex Dehaini<br>
Developer<br>
Site - <a href="http://www.alexdehaini.com" target="_blank">www.alexdehaini.com</a><br>
Email - <a href="mailto:alexdehaini@gmail.com" target="_blank">alexdehaini@gmail.com</a><o:p></o:p></p>

</div>

</div>

</div>

</div>

</div>

<p class=MsoNormal><br>
<br clear=all>
<br>
-- <br>
Alex Dehaini<br>
Developer<br>
Site - <a href="http://www.alexdehaini.com">www.alexdehaini.com</a><br>
Email - <a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a><o:p></o:p></p>

</div>

</body>

</html>