One Unified Global Perspective
Communications with a Global Perspective
Home
Intro
Contact Us
Voice over IP
PBX Solutions
Services
Support
Glossary
Open Source
Blog
Forum

WebMail





2007 Mar 03 - Sat

Apache Web Page NTLM Authentication

In continuation of a previous article regarding NTLM authentication and authorization of web pages on an Apache Web Server, I've made some progress with integration.

The web server will now automatically accept MS IE users with passthrough authentication so they are automatically authenticated to view web server pages. Well... users who are hardcoded currently. All other users are rejected.

I used the perl module Apache2::AuthenNTLM from CPAN, and wrapped a module called OneUnified::AuthNTLM around it to obtain some hooks into the original module's operation.

Here is the code I inserted into /etc/apache2/sites-enabled/000-default in order to activate the module:

        
          PerlAuthenHandler OneUnified::AuthNTLM
          AuthType ntlm,basic
          AuthName ntdomainname
          require valid-user

          PerlAddVar ntdomain "ntdomainname globalcat1 globalcat2"

          PerlSetVar defaultdomain ntdomainname
          PerlSetVar splitdomainprefix 1
          PerlSetVar ntlmdebug 0
          PerlSetVar ntlmauthoritative 0
#          PerlSetVar fallbackdomain fallbackdomain
        

I originally used the fallbackdomain to invoke a secondary login prompt for non domain members, but it appears to lock the module up for some reason. It is commented out for the time being.

For now, OneUnified::AuthNTLM overrides the verify_user subroutine and manually accepts certain userid's. The next step will be to incorporate the group look up code.

Not all of them are used at the moment, but here are some Perl modules for use with session management. They go into the /usr/local/lib/site_perl/OneUnified directory.

  • AuthNTLM.pm: wrapper around Apache2::AuthenNTLM
  • Const.pm: used in the Mason autohandler file (to be introduced later).
  • Session.pm: will handle session management stuff
  • ValidateFields.pm: some web form validation checks
  • ou.sql: latest database schema for various things, including session management and the ciscowatcher.pl script

[/OpenSource/Debian/Monitoring] permanent link



Blog Content ©2008
Ray Burkholder
All Rights Reserved
ray@oneunified.net
(441) 505 7293
Available for Contract Work
Resume

RSS: Click to see the XML version of this web page.

View Ray 
Burkholder's profile on LinkedIn
technorati
Add to Technorati Favorites



March
Su Mo Tu We Th Fr Sa
        3


Main Links:
Monitoring Server
SSH Tools
QuantDeveloper Code

Special Links:
Frink

Blog Links:
Sergey Solyanik
Marc Andreessen
HotGigs
Micro Persuasion
... Reasonable ...
Chris Donnan
BeyondVC
lifehacker
Trader Mike
Ticker Sense
HeadRush
TraderFeed
Stock Bandit
The Daily WTF
Guy Kawaski
J. Brant Arseneau
Steve Pavlina
Matt Cutts
Kevin Scaldeferri
Joel On Software
Quant Recruiter
Blosxom User Group
Wesner Moise
Julian Dunn
Steve Yegge

2007
Months
Mar




Mason HQ

Disclaimer: This site may include market analysis. All ideas, opinions, and/or forecasts, expressed or implied herein, are for informational purposes only and should not be construed as a recommendation to invest, trade, and/or speculate in the markets. Any investments, trades, and/or speculations made in light of the ideas, opinions, and/or forecasts, expressed or implied herein, are committed at your own risk, financial or otherwise.