1

Topic: PureFTPD authentication fails

Just install pure- ftpd with the OpenLDAP, created 2 users with the bash file, they can login to webmail fine but logging into ftp doesn't work.
It just get this message:

Status:    Verbinden met 192.168.1.14:21...
Status:    Verbinding aangemaakt, welkomstbericht afwachten...
Antwoord:    220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Antwoord:    220-You are user number 1 of 50 allowed.
Antwoord:    220-Local time is now 01:11. Server port: 21.
Antwoord:    220-IPv6 connections are also welcome on this server.
Antwoord:    220 You will be disconnected after 15 minutes of inactivity.
Commando:    USER test
Antwoord:    331 User test OK. Password required
Commando:    PASS ****
Antwoord:    530 Login authentication failed

openldap log:

Feb 15 01:10:51 srv1 slapd[360]: conn=1 op=6 SRCH base="o=domains,dc=huybrechts-server,dc=com" scope=2 deref=0 filter="(&(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=imapsecured)(|(mail=sjon@huybrechts-server.com)(&(enabledService=shadowaddress)(shadowAddress=sjon@huybrechts-server.com))))" 
Feb 15 01:10:51 srv1 slapd[360]: conn=1 op=6 SEARCH RESULT tag=101 err=0 nentries=1 text= 
Feb 15 01:10:51 srv1 slapd[360]: conn=1 op=7 BIND anonymous mech=implicit ssf=0 
Feb 15 01:10:51 srv1 slapd[360]: conn=1 op=7 BIND dn="mail=sjon@huybrechts-server.com,ou=Users,domainName=huybrechts-server.com,o=domains,dc=huybrechts-server,dc=com" method=128 
Feb 15 01:10:51 srv1 slapd[360]: conn=1 op=7 BIND dn="mail=sjon@huybrechts-server.com,ou=Users,domainName=huybrechts-server.com,o=domains,dc=huybrechts-server,dc=com" mech=SIMPLE ssf=0 
Feb 15 01:10:51 srv1 slapd[360]: conn=1 op=8 BIND anonymous mech=implicit ssf=0 
Feb 15 01:10:51 srv1 slapd[360]: conn=1 op=8 BIND dn="cn=vmail,dc=huybrechts-server,dc=com" method=128 
Feb 15 01:10:51 srv1 slapd[360]: conn=1 op=8 BIND dn="cn=vmail,dc=huybrechts-server,dc=com" mech=SIMPLE ssf=0 
Feb 15 01:10:51 srv1 slapd[360]: conn=1 op=8 RESULT tag=97 err=0 text= 
Feb 15 01:10:51 srv1 slapd[360]: conn=1 op=9 SRCH base="o=domains,dc=huybrechts-server,dc=com" scope=2 deref=0 filter="(&(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=imapsecured)(|(mail=sjon@huybrechts-server.com)(&(enabledService=shadowaddress)(shadowAddress=sjon@huybrechts-server.com))))" 
Feb 15 01:10:51 srv1 slapd[360]: conn=1 op=9 SRCH attr=storageBaseDirectory mailMessageStore mailQuota 
Feb 15 01:10:51 srv1 slapd[360]: conn=1 op=9 SEARCH RESULT tag=101 err=0 nentries=1 text= 
Feb 15 01:10:51 srv1 slapd[360]: conn=1 op=7 RESULT tag=97 err=0 text= 
Feb 15 01:10:56 srv1 slapd[360]: conn=3 fd=20 ACCEPT from IP=127.0.0.1:35678 (IP=0.0.0.0:389) 
Feb 15 01:10:56 srv1 slapd[360]: conn=3 op=0 BIND dn="cn=vmail,dc=huybrechts-server,dc=com" method=128 
Feb 15 01:10:56 srv1 slapd[360]: conn=3 op=0 BIND dn="cn=vmail,dc=huybrechts-server,dc=com" mech=SIMPLE ssf=0 
Feb 15 01:10:56 srv1 slapd[360]: conn=3 op=0 RESULT tag=97 err=0 text= 
Feb 15 01:10:56 srv1 slapd[360]: conn=3 op=1 SRCH base="o=domains,dc=huybrechts-server,dc=com" scope=2 deref=0 filter="(&(objectClass=posixAccount)(uid=test@huybrechts-server.com))" 
Feb 15 01:10:56 srv1 slapd[360]: conn=3 op=1 SRCH attr=FTPHomeDir uidNumber FTPuid gidNumber FTPgid userPassword loginShell FTPStatus FTPQuotaFiles FTPQuotaMBytes FTPDownloadRatio FTPUploadRatio FTPDownloadBandwidth FTPUploadBandwidth 
Feb 15 01:10:56 srv1 slapd[360]: conn=3 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text= 
Feb 15 01:10:56 srv1 slapd[360]: conn=3 op=2 UNBIND 
Feb 15 01:10:56 srv1 slapd[360]: conn=3 fd=20 closed 

I've followed the howto.

2 (edited by shake 2010-02-15 14:42:56)

Re: PureFTPD authentication fails

SRCH base="o=domains,dc=huybrechts-server,dc=com" scope=2 deref=0
 filter="(&(objectClass=posixAccount)(uid=test@huybrechts-server.com))" 

check your pure-ldap file filter setting, the below is my log

SRCH base="o=domains,dc=example,dc=com" scope=2 deref=0
 filter="(&(objectClass=PureFTPdUser)(mail=user1@example.com)(FTPStatus=enabled))"