Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17763

Setting up SSSD and vsFTPd

$
0
0

I'm currently trying to setup vsFTPd with Active Directory authentication through SSSD. My SSSD config seems to be working as 'id <username>' and 'getent passwd <username> works. However vsFTP seems to not be using SSSD correctly:

[root@StudentOrgFTP log]# ftp localhost Trying ::1... ftp: connect to address ::1Connection refused Trying 127.0.0.1... Connected to localhost (127.0.0.1). 220 (vsFTPd 3.0.2) Name (localhost:root): <username> 331 Please specify the password. Password: 530 Login incorrect. Login failed. ftp> 221 Goodbye. [root@StudentOrgFTP log]# cat secure 

/var/log/secure

Feb 23 04:26:18 StudentOrgFTP vsftpd: pam_sss(vsftpd:auth): authentication success; logname= uid=0 euid=0 tty=ftp ruser=<username> rhost=localhost user=<username> Feb 23 04:26:18 StudentOrgFTP vsftpd: pam_sss(vsftpd:account): Access denied for user <username>: 6 (Permission denied) Feb 23 04:26:18 StudentOrgFTP vsftpd: pam_sss(vsftpd:account): Access denied for user <username>: 6 (Permission denied) 

/etc/vsftpd/vsftpd.conf

anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES xferlog_std_format=YES listen=YES pam_service_name=vsftpd userlist_enable=YES userlist_deny=YES userlist_log=YES tcp_wrappers=NO chroot_local_user=YES session_support=YES 

/etc/pam.d/vsftpd

auth required pam_env.so auth sufficient pam_sss.so account sufficient pam_sss.so session required pam_loginuid.so session optional pam_keyinit.so force revoke auth required pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed #auth required pam_shells.so auth include password-auth account include password-auth session required pam_loginuid.so session include password-auth 

I would really appreciate any input on what could be wrong.

submitted by JeremyTiki
[link][11 comments]

Viewing all articles
Browse latest Browse all 17763

Trending Articles