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?



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.

  • This looks very promising! I'll try it out and tell you how it goes. – Reinderien Jan 6 '11 at 15:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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