+ Post New Thread
Results 1 to 3 of 3
*nix Thread, ntlm_auth and bad apache behavior (raw html displayed) in Technical; Many, many hours of work has paid off in a CentOS 5 machine with apache 2.2 serving up secured folders ...
  1. #1

    Join Date
    Mar 2009
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Unhappy ntlm_auth and bad apache behavior (raw html displayed)

    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:

    Code:
    <Directory "/var/www/html/pvt/">
      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 
    </Directory>
    Any help much appreciated!

  2. #2

    Join Date
    Mar 2009
    Location
    Walsall, UK
    Posts
    13
    Thank Post
    4
    Thanked 1 Time in 1 Post
    Rep Power
    0
    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?

  3. #3

    Join Date
    Mar 2009
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Actually...

    The problem was in apache 2.2 I redid everything on CentOS4 with apache 2.0, it all worked fine.

SHARE:
+ Post New Thread

Similar Threads

  1. Raw Thought: Non-Hierarchical Management
    By somabc in forum Other Stuff
    Replies: 0
    Last Post: 17th February 2009, 05:55 PM
  2. Photography - RAW image handling software?
    By speckytecky in forum Educational Software
    Replies: 10
    Last Post: 26th January 2009, 09:07 AM
  3. [MS Office - 2007] Strange behavior opening excel 2007
    By imiddleton25 in forum Office Software
    Replies: 3
    Last Post: 22nd September 2008, 10:59 PM
  4. ntlm_auth | Dansguardian | Squid
    By ahuxham in forum *nix
    Replies: 11
    Last Post: 24th July 2008, 07:24 PM
  5. ntlm_auth
    By ahuxham in forum *nix
    Replies: 8
    Last Post: 30th June 2008, 05:51 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •