Login in FTP server with LDAP authentication & create home directory automatically.

Login in FTP server with LDAP authentication & create home directory automatically.

vi /etc/pam.d/vsftpd

#%PAM-1.0
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_ldap.so
auth required pam_shells.so
auth include password-auth
account sufficient pam_ldap.so
account include password-auth
session required pam_mkhomedir.so skel=/etc/skel/ umask=0077
session sufficient pam_ldap.so
session required pam_loginuid.so
session include password-auth
~

Add the below line vsftpd.conf file
session_support=YES

Comments

Popular posts from this blog

How to delete SEA in VIOS

Webmin configuration for LDAP

Sample questions and answers for AWS Associate Solutions Architect Certification ---> AWS exam dumps