Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

vsftpd has an option local_enable that allows FTP users to be directly mapped to local users. It even works without any extra effort with our Likewise Active Directory configuration.

I've been looking all over, and I can't seem to find an equivalent for Apache .htaccess. The auth providers seem to be file, DBM, LDAP and DBD. None of these seem to allow for HTTP auth user mapping to local user accounts.

Is there any way to do this? If not, why not?

Thanks.

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Take a look at mod_auth_pam: http://pam.sourceforge.net/mod_auth_pam/ (Most distros should have a package for this if it's not included as standard with apache)

You still use apache basic auth, but the module allows you to use the local user accounts for authentication, as well as a bunch of other password databases. I'll repeat the warning on the above site: it should be used in conjunction with SSL/TLS.

share|improve this answer
    
This looks very promising! I'll try it out and tell you how it goes. –  Reinderien Jan 6 '11 at 15:35
    
Yes, this is exactly what I needed. Thanks. –  Reinderien Jan 6 '11 at 18:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.