Possible Duplicate:
VsFTPd - LDAP - PAM
I am trying to configure a VsFTPd server to authenticate agains an LDAP server. It may be easy, but since it is the first time that I am using both LDAP and PAM, I have some difficulties. VsFTPd runs on an Ubuntu Server 11.04 and the LDAP is OpenLDAP on an 10.10 Ubuntu Server. VsFTPd cannot connect to the LDAP server, in my syslog I have:
vsftpd: pam_ldap: ldap_simple_bind Can't contact LDAP server
The LDAP server is OK since I can do an ldapsearch.
Here is my /etc/pam.d/vsftpd file:
auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
@include common-account
@include common-session
@include common-auth
auth required pam_ldap.so
account required pam_ldap.so
session required pam_ldap.so
password required pam_ldap.so
And here is my /etc/ldap.conf file:
base dc=example,dc=com
uri ldapi:///ldap.example.com
ldap_version 3
rootbinddn cn=admin,dc=example,dc=com
pam_password md5
nss_initgroups_ignoreusers a_bunch_of_system_users
Can anyone help me please ? Thank you.
EDIT: precision about Ubuntu Server. Typo on pam_listfile.so
vsftpdconfined with a tool such as AppArmor, SELinux, TOMOYO, or SMACK? Using mandatory access control tools can prevent applications from getting access to all the resources they need to function correctly. – sarnold Oct 4 '11 at 22:15pam_lisfile.so? Is that a typo in your content here, or a typo in your/etc/pam.d/vsftpd? – sarnold Oct 5 '11 at 8:03