Re: authentication for proxy_balancer - SOLVED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



One major problem in my understanding of the apache configs was using
the wrong directive. Well, actually, someone told me to use a directive
that wasn't the appropriate directive to use. That is, the AuthUserFile
directive. AuthUserFile as you all know, and now I do too, is used as an
authentication file of username - password pairs, one per line; not a
place to include commands you'd find in an htaccess file.

Thus I changed "AuthUserFile" to "Include" and it works. Here is the
relevant sections of the config files:

/var/www/.htaccess
AuthType Basic
AuthName "LDAP Required"
Require user matt

/etc/apache2/conf.d/prox.conf
<Location /proxy/>
  ProxyPass http://localhost:12201/
  ProxyPassReverse http://localhost:12201/
  Order deny,allow
  AuthBasicProvider ldap
  AuthLDAPURL  <removed>
  AuthLDAPBindDN <removed>
  AuthLDAPBindPassword <removed>
  AuthzLDAPAuthoritative off
  Include /var/www/.htaccess
</Location>


> ProxyRequests Off
> <Location /proxy/>
>   ProxyPass http://localhost:12201/
>   ProxyPassReverse http://localhost:12201/
>   Order deny,allow
>   AuthBasicProvider ldap
>   AuthLDAPURL <removed>
>   AuthLDAPBindDN <removed>
>   AuthLDAPBindPassword <removed>
>   AuthzLDAPAuthoritative off
>   AuthUserFile /var/www/.htaccess
> </Location>

-- 
Matt Zagrabelny - mzagrabe@xxxxxxxxx - (218) 726 8844
University of Minnesota Duluth
Information Technology Systems & Services
PGP key 1024D/84E22DA2 2005-11-07
Fingerprint: 78F9 18B3 EF58 56F5 FC85  C5CA 53E7 887F 84E2 2DA2

He is not a fool who gives up what he cannot keep to gain what he cannot
lose.
-Jim Elliot

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux