Jump to content

Recommended Posts

Posted

:confused: Many, many hours of work has paid off in a CentOS 5 machine with apache 2.2 serving up secured folders that require logged-in Active Directory users to access.

 

This is for a corporate intranet, which I am VERY much looking forward to getting off of Windows 2003 Server!

 

I've run into a wall, however, one which appears pretty rare, if my Google searches are any indication.

 

The secured folder (/pvt) is very puzzling to apache. For instance, it doesn't serve up a default index page, giving a 404 error when the folder is accessed directly (http://arweb5/pvt). The access log shows the AD user's id, as it should.

 

If I specify a (html) web page, it renders as raw html in Firefox. It renders okay in IE7, due (I know) to IE's mangling of www code standards. If I specify a php web page in either browser, I get the raw php code.

 

These behaviors are all absent if I turn ntlm_auth off on the folder. The default index page suddenly gets served up, the php is translated at the server level, providing a nice finished product in the browser (Firefox or IE).

 

Here's the appropriate httpd.conf code:

 

 AuthName "NTLM Authentication thingy"
 NTLMAuth on
 NTLMBasicAuthoritative on
 NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
 NTLMBasicRealm MFC  
 require valid-user
 RewriteEngine On 

 

Any help much appreciated!

  • 2 weeks later...
Posted

Apache is acting like it's forgotten it's MIME types and isn't telling the browser how to render the page. I suppose IE would display something as it tries to 'assume' the MIME type if not included?

 

There should be some Addtype lines in your httpd.conf file that associate both HTML and PHP files to their reletive MIME types. Have you had this working without ntlmauth?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...