Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I have the LDAP configuration configured for ProFTPD and I have modified the modules.conf file to include the LDAP module. However, every time I login with FileZilla I get 530 Login Incorrect. It does this for all users except those whose passwords are defined locally as well as in LDAP. The exact same setup works fine on my CentOS server and I've already tried re-installing it after purging the configuration files.

share|improve this question
up vote 1 down vote accepted

Do you have the appropriate /etc/pam.d file for proftpd to tell it to use LDAP?

The directory /usr/share/doc/libpam-ldap/examples/pam.d/ has examples. Normally you can just copy them all over to /etc/pam.d/

However on squeeze you have to change all occurances of "pam_unix_*" to "pam_unix" because all /lib/security/pam_unix_* files are gone and it now is just /lib/security/ If you don't make these changes and log out you can't log back in, neither log in through the console or anything. You'll have to boot a rescue CD and change them that way.

So, for example in /usr/share/doc/libpam-ldap/examples/pam.d/ssh change:

auth       required     /lib/security/ try_first_pass
account    required     /lib/security/
session    required     /lib/security/


auth       required     /lib/security/ try_first_pass
account    required     /lib/security/
session    required     /lib/security/

The file for ftp (/usr/share/doc/libpam-ldap/examples/pam.d/ftp) looks like this:

auth       required /lib/security/ item=user sense=deny file=/etc/ftpusers onerr=succeed
auth       required /lib/security/
auth       sufficient   /lib/security/
auth       required /lib/security/ shadow nullok
account    sufficient   /lib/security/
account    required /lib/security/
#session   sufficient   /lib/security/
session    required /lib/security/
share|improve this answer

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.