Web Hosting Talk







View Full Version : Retrieve passwords from apache for use in site


12host
12-06-2000, 01:19 PM
Hi,

I'm building a password-protected site for our customers. I'd like to use the passwords they use for their e-mail and ftp. But since the server is a Cobalt RaQ3, they can change their password theirselves.

So, what I want is this : they can login to this part of the site with the password they use for email, even thought they might have changed it, they should be able to login with that pass automaticly.

THX!

Mike
12-06-2000, 02:40 PM
You should be able to accomplish this very easily. In your .htaccess file, don't use the "AuthPAM_Enabled" "AuthUserFile" or "AuthGroupFile" variables.

An example .htaccess file would resemble:

AuthType Basic
AuthName "Protected Site"
Require valid-user

This should work for you.

AtlantaWebhost.com
12-06-2000, 03:51 PM
Mike,

I assume that does not work with shadow passwords. I just tried your method under RH 6.2 with Apache 1.3.12 and it does not appear to work.

Best regards,
Frank Rietta

12host
12-06-2000, 03:55 PM
Thx,

it seems to work, I dont know if it does with SP, but so far it works.

Mike
12-06-2000, 08:25 PM
Frank,

We're using shadowed passwords, and are able to use the method I described previously. According to the Apache web site, this method will work with shadowed passwords.

Perhaps there is an option that needs to be set in the Apache configuration?