pure-ftpd 530 Login authentication failed

Discussion in 'Installation/Configuration' started by IceVilli, Jan 3, 2011.

  1. IceVilli

    IceVilli New Member

    I just installed ISPConfig "Version: 3.0.3.1" on a physical server following the guide "The Perfect Server - Fedora 14 x86_64 [ISPConfig 3]"

    I can login to pure-ftp as a shell user without a problem but when trying to login as a virtual user I get:

    Status: Connecting to 192.168.1.42:21...
    Status: Connection established, waiting for welcome message...
    Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
    Response: 220-You are user number 1 of 55 allowed.
    Response: 220-Local time is now 21:17. Server port: 21.
    Response: 220-This is a private system - No anonymous login
    Response: 220-IPv6 connections are also welcome on this server.
    Response: 220 You will be disconnected after 15 minutes of inactivity.
    Command: AUTH TLS
    Response: 234 AUTH TLS OK.
    Status: Initializing TLS...
    Status: Verifying certificate...
    Command: USER iceheliiceheli
    Status: TLS/SSL connection established.
    Response: 331 User iceheliiceheli OK. Password required
    Command: PASS *******
    Response: 530 Login authentication failed
    Error: Critical error
    Error: Could not connect to server

    netstat -tap

    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:imap *:* LISTEN 1776/dovecot
    tcp 0 0 *:sunrpc *:* LISTEN 1382/rpcbind
    tcp 0 0 *:49107 *:* LISTEN 1402/rpc.statd
    tcp 0 0 *:ftp *:* LISTEN 1868/pure-ftpd (SER
    tcp 0 0 *:ssh *:* LISTEN 1610/sshd
    tcp 0 0 *:imaps *:* LISTEN 1776/dovecot
    tcp 0 0 *:pop3s *:* LISTEN 1776/dovecot
    tcp 0 0 *:mysql *:* LISTEN 1749/mysqld
    tcp 0 0 *:pop3 *:* LISTEN 1776/dovecot
    tcp 0 0 192.168.1.42:ssh 192.168.1.2:51336 ESTABLISHED 2218/0
    tcp 0 0 *:imap *:* LISTEN 1776/dovecot
    tcp 0 0 *:sunrpc *:* LISTEN 1382/rpcbind
    tcp 0 0 *:webcache *:* LISTEN 1854/httpd
    tcp 0 0 *:http *:* LISTEN 1854/httpd
    tcp 0 0 *:tproxy *:* LISTEN 1854/httpd
    tcp 0 0 *:ftp *:* LISTEN 1868/pure-ftpd (SER
    tcp 0 0 *:ssh *:* LISTEN 1610/sshd
    tcp 0 0 *:https *:* LISTEN 1854/httpd
    tcp 0 0 *:imaps *:* LISTEN 1776/dovecot
    tcp 0 0 *:pop3s *:* LISTEN 1776/dovecot
    tcp 0 0 *:37227 *:* LISTEN 1402/rpc.statd
    tcp 0 0 *:pop3 *:* LISTEN 1776/dovecot

    iptables -L
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    fail2ban-SSH tcp -- anywhere anywhere tcp dpt:ssh

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Chain fail2ban-SSH (1 references)
    target prot opt source destination
    RETURN all -- anywhere anywhere

    This is a record from the table ftp_user in the databse
    ftp_user_id 1
    sys_userid 1
    sys_groupid 5
    sys_perm_user riud
    sys_perm_group riud
    sys_perm_other
    server_id 0
    parent_domain_id 1
    username iceheliiceheli
    password $1$31iKPRuW$GON5nAOboTZ0wCe2BHPr3/
    quota_size -1
    active y
    uid web1
    gid client4
    dir /var/www/
    quota_files -1
    ul_ratio -1
    dl_ratio -1
    ul_bandwidth -1
    dl_bandwidth -1


    /var/log/messages
    Jan 3 21:03:59 Voyager pure-ftpd: (?@192.168.1.2) [INFO] Logout.
    Jan 3 21:04:44 Voyager pure-ftpd: (?@192.168.1.2) [INFO] New connection from 192.168.1.2
    Jan 3 21:04:44 Voyager pure-ftpd: (?@192.168.1.2) [INFO] SSL/TLS: Enabled TLSv1/SSLv3 with DHE-RSA-AES256-SHA, 256 secret bits cipher
    Jan 3 21:04:48 Voyager pure-ftpd: (?@192.168.1.2) [WARNING] Authentication failed for user [iceheliiceheli]
    Jan 3 21:04:48 Voyager pure-ftpd: (?@192.168.1.2) [INFO] Logout.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please enable debugging in pure-ftpd, to get a more detailed log output in the messages log. Then you should try to authenticate without ls to see if it is a problem of the tls encryption or not.

    That you can connect with a shell user but not with a ftp user might be a indication that the pure-ftpd binary that you installed has no mysql support included.
     
  3. IceVilli

    IceVilli New Member

    How do I enable debugging in pure-ftpd on Fedora14?
     
  4. IceVilli

    IceVilli New Member

    It's ok now!
    I reinstalled the whole thing and it's working now.
    Thanks!
     
  5. MrPK

    MrPK New Member

    What did you reinstall exactly ?

    I have same problem. On my server I have also SSL cert installed. And I'm not experienced user. Thanks
     

Share This Page