[users@httpd] perl bypass apache basic authentication

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

 



Hi guys,

My httpd version is:

# rpm -qa| grep httpd
httpd-manual-2.0.54-10.2
httpd-2.0.54-10.2

Basic auth works great if the web client is IE,
Firefox, etc but when the pages, protected by basic
auth, can be printed by a simple perl script. I am not
sure if this is expected or not.

Basic auth is configured in httpd.conf as follows
(there is no .htaccess file)

#################### begin ####################
<VirtualHost *:80>
    ServerAdmin webmaster@xxxxxxxxxxxx
    DocumentRoot /usr/share/awstats/wwwroot
    ServerName awstats.mydomain.com
    ErrorLog logs/error_log
    CustomLog logs/access_log combined

<Directory "/usr/share/awstats/wwwroot">
 AuthType Basic
 AuthName "Operator Login"
 AuthUserFile /var/www/passwd/passwords
 Require valid-user
</Directory>

</VirtualHost>
#################### end #####################

With a perl script using LWP::UserAgent, the response
of get(url) function just prints the basic auth
protected web page without suppling username and
password.

Please advice.

Regards.


		
__________________________________________ 
Yahoo! DSL ? Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[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