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.
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.