Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem using mod_proxy and AuthenNTLM together

Status
Not open for further replies.

CayceB

Technical User
Jan 29, 2003
10
I have been successful using Apache::AuthenNTLM with Apache 2.2 to capture the remote_user server variable from MSIE browsers on a windows network.

I have likewise been successful using mod_proxy to load-balance my web application (to ruby on rails, using mongrel).

Where it all falls down is trying to use both. I cannot figure out how to set the AuthentNTLM directives so that the remote_user server variable is passed through to the balancers.

My basic directives are:
<Proxy balancer://mongrel_cluster>
BalancerMember BalancerMember BalancerMember </Proxy>

ProxyRequests Off
ProxyPass /demo balancer://mongrel_cluster
ProxyPassReverse /demo balancer://mongrel_cluster

<Directory "/usr/local/apache2/htdocs/demo">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
PerlAuthenHandler Apache2::AuthenNTLM
AuthType ntlm,basic
AuthName Crowley
require valid-user
PerlAddVar ntdomain "CROWLEY crowleypdc jaxbdc01"
PerlSetVar defaultdomain CROWLEY
PerlSetVar splitdomainprefix 1
PerlSetVar ntlmdebug 0
PerlSetVar ntlmauthoritative off
</Directory>

I've also tried putting the AuthenNTLM directives in the following blocks:

<Proxy *>
<Directory proxy:*>
<Directory balancer:*>
<Directory balancer://mongrel_cluster>
<Directory proxy:balancer://mongrel_cluster>
<Directory proxy://mongrel_cluster>

etc. - I've basically trundled around all kinds of places but the remote_user variable is never in the request when it balances, like it is when it's not balanced.

Thanks a bunch.
c.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top