Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question
up vote 1 down vote accepted

Take a look at 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

Your Answer


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.