[Proftpd-user] Authentication with mod_sftp via PAM + SSSD not work with error "(Login failed): No such user found" if -DTLS enable

Dario Lesca <[email protected]> Tue, 04 Jul 2023 13:03:19 +0200
Newsgroups gmane.network.proftpd.user
Organization Solinos
Message-ID <[email protected]>
On my proftpd server with SSSD configured bind Active Directory I have
configured FTPS and SFTP.

If I connect to it with FTPS protocol both local users and AD users can
login, all work fine.

If I connect with SFTP (mod_sftp.c) protocol only local users can
access, the AD users who access with our password get this error: "USER
dario.lesca.e (Login failed): No such user found", while the AD users
who try log in via our public key it work.

If I run proftpd without -DTLS option SFTP work also for AD users who
access with our password.

This is like I have configure the sftp session:

<VirtualHost 10.39.17.248>

        SFTPEngine ON
        # TLSEngine OFF
        # TLSRequired OFF
        Port 39002
        SFTPHostKey /etc/proftpd/ssh_host_dsa_key
        SFTPHostKey /etc/proftpd/ssh_host_rsa_key

        SFTPAuthorizedUserKeys file:~/.sftp/authorized_keys
        SFTPLog /var/log/proftpd/sftp.log
        SFTPCompression delayed
        DefaultRoot ~

        #SFTPAuthMethods password
        SFTPAuthMethods publickey
        #SFTPAuthMethods publickey password

</VirtualHost>

I ave try also disable TLSEngine in Virtual host session when the -DTLS
option is enable but none is change.

Someone can help me to resolve this my issue?

Many thanks

-- 
Dario Lesca
(Inviato dal mio Linux Fedora 38 Workstation)








_______________________________________________
ProFTPD Users List   <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html