1

Topic: PureFTPD simple question

Hi I have managed to follow this guide and install PureFTPD but I can't seem to connect through FPT.

http://howtoforge.com/virtual-mail-and- … n-lenny-p2

Error from FTP Client
Status:    Resolving address of example.co.uk
Status:    Connecting to 80.68.94.173:21...
Status:    Connection established, waiting for welcome message...
Response:    220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response:    220-You are user number 10 of 50 allowed.
Response:    220-Local time is now 14:23. Server port: 21.
Response:    220-IPv6 connections are also welcome on this server.
Response:    220 You will be disconnected after 15 minutes of inactivity.
Command:    USER ben@example.co.uk
Response:    331 User ben@example.co.uk OK. Password required
Command:    PASS ********
Response:    530 Login authentication failed
Error:    Critical error
Error:    Could not connect to server

What do I use to login with? How do I create the FTP users?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: PureFTPD simple question

Any other log in ftp log file?
Can you post your pureftpd settings here?

3

Re: PureFTPD simple question

The file /var/log/pure-ftp contains an empty log file


This is /etc/pure-ftp/db/ldap.conf
LDAPServer localhost
LDAPPort 389
LDAPBaseDN o=domains,dc=web2works,dc=co,dc=uk
LDAPBindDN cn=vmail,dc=web2works,dc=co,dc=uk
LDAPBindPW MWX7uwrFYfgTVNT70PU5YvH2dtStLO
LDAPDefaultUID 1000      # <- UID of 'vmail' user.
LDAPDefaultGID 1000      # <- GID of 'vmail' user.
LDAPFilter (&(objectClass=PureFTPdUser)(mail=\L)(FTPStatus=enabled))
LDAPHomeDir FTPHomeDir  # <- This is new attribute, we will add it
LDAPVersion 3

4

Re: PureFTPD simple question

Could you please set "loglevel 256" in openldap config file (/etc/ldap/slapd.conf), restart slapd service, log into ftp again, and post log in /var/log/openldap.log? Let's see what pureftpd queried.

5

Re: PureFTPD simple question

I tried this in the 13 Troubleshooting section of the guide

I get this following error at the end:
web2works:~# /etc/init.d/rsyslog restart
-bash: /etc/init.d/rsyslog: No such file or directory

6

Re: PureFTPD simple question

Does this mean there is something wrong with my rsyslog? Is it possible to reinstall this?

7

Re: PureFTPD simple question

web2works wrote:

Does this mean there is something wrong with my rsyslog? Is it possible to reinstall this?

For rsyslog with empty logs problems maybe my previous post can help you. It was related to mail and mysql logs, but it is very probable thet you have the same problem on pure-ftpd logs too.

http://www.iredmail.org/forum/topic1217 … olved.html

8

Re: PureFTPD simple question

Albux wrote:
web2works wrote:

Does this mean there is something wrong with my rsyslog? Is it possible to reinstall this?

For rsyslog with empty logs problems maybe my previous post can help you. It was related to mail and mysql logs, but it is very probable thet you have the same problem on pure-ftpd logs too.

http://www.iredmail.org/forum/topic1217 … olved.html

Thanks for your advice but sadly no this didn't alter the problem I am having.

9

Re: PureFTPD simple question

I have given up, but thanks anyway.

10

Re: PureFTPD simple question

If you ever think of doing this again, you can put the Pure-FTPd users in MySQL in 5 minutes.
Here is a one page tutorial about connecting Pure-FTPd with MySQL:
http://thecoolserver.blogspot.com/2011/ … anage.html

11

Re: PureFTPD simple question

web2works wrote:

The file /var/log/pure-ftp contains an empty log file


This is /etc/pure-ftp/db/ldap.conf
LDAPServer localhost
LDAPPort 389
LDAPBaseDN o=domains,dc=web2works,dc=co,dc=uk
LDAPBindDN cn=vmail,dc=web2works,dc=co,dc=uk
LDAPBindPW MWX7uwrFYfgTVNT70PU5YvH2dtStLO
LDAPDefaultUID 1000      # <- UID of 'vmail' user.
LDAPDefaultGID 1000      # <- GID of 'vmail' user.
LDAPFilter (&(objectClass=PureFTPdUser)(mail=\L)(FTPStatus=enabled))
LDAPHomeDir FTPHomeDir  # <- This is new attribute, we will add it
LDAPVersion 3

Have you checked in your pureftpd what are the settings for minUID and minGID ?
Are you sure that not any other authentication mechanism is active as PAM or MySQL ?

12

Re: PureFTPD simple question

web2works wrote:

Hi I have managed to follow this guide and install PureFTPD but I can't seem to connect through FPT.

http://howtoforge.com/virtual-mail-and- … n-lenny-p2

Error from FTP Client
Status:    Resolving address of example.co.uk
Status:    Connecting to 80.68.94.173:21...
Status:    Connection established, waiting for welcome message...
Response:    220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response:    220-You are user number 10 of 50 allowed.
Response:    220-Local time is now 14:23. Server port: 21.
Response:    220-IPv6 connections are also welcome on this server.
Response:    220 You will be disconnected after 15 minutes of inactivity.
Command:    USER ben@example.co.uk
Response:    331 User ben@example.co.uk OK. Password required
Command:    PASS ********
Response:    530 Login authentication failed
Error:    Critical error
Error:    Could not connect to server

What do I use to login with? How do I create the FTP users?

I have same problem =.="