Author Topic: Setup vsftpd with ebox (tested on vervion 1.4-1 working)  (Read 2933 times)

nocolour

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Setup vsftpd with ebox (tested on vervion 1.4-1 working)
« on: April 03, 2010, 04:07:05 pm »
FTP setup sharing, for who are looking for FTP setup with ebox LDAP support

Integrating VSFTPD is very simple and is one of the best "basic" setup for configuring non LDAP aware programs to work with ldap.

CONCEPT: To achieve this goal and to make it simple we want to utilise the full capability of two authentication components which are:
1.) PAM (Pluggable Authentication Module)
2.) nsswitch.conf
so we could perform the LDAP authentication.

1. Login as root (local login)
2. apt-get install apache2 php4 php4-ldap libapache2-mod-php4 php4-mhash libpam-ldap libnss-ldap slapd ldap-utils db4.2-util php-fpdf

**for ebox 1.4 should php5 (change php4 to php5)
By default all software above should already installed!!

3. nano /etc/php4/apache2/php.ini

    * ADD: extension=ldap.so

4. nano /etc/nsswitch.conf

    * LF: passwd: compat
    * LF: group: compat
    * CT: passwd: compat ldap
    * CT: group: compat ldap

5. nano /etc/pam.d/common-account

    * LF: account required pam_unix.so
    * ADD before the above line: account sufficient pam_ldap.so

6. nano /etc/pam.d/common-auth

    * LF: auth required pam_unix.so nullok_secure
    * EDIT: auth required pam_unix.so nullok_secure try_first_pass
    * ADD before the above line: auth sufficient pam_ldap.so nullok_secure

7. nano /etc/pam.d/common-password

    * LF: password required pam_unix.so nullok obscure min=4 max=8 md5
    * ADD before the above line: password sufficient pam_ldap.so nullok obscure min=4 max=8 md5

8. nano /etc/pam.d/common-session

    * LF: session required pam_unix.so
    * ADD before the above line: session sufficient pam_ldap.so

end!!   ;D

For vsftpd web-base config you can install webmin and vsftpd module (optional)
Done! Test your ftp login with ebox ldap account
Don't forget set your firewall allow ftp traffic and port 10000 if install webmin..

Thanks

refer to : http://devzero.wikidot.com/Debian/Ldap/Vsftpd

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: Setup vsftpd with ebox (tested on vervion 1.4-1 working)
« Reply #1 on: April 03, 2010, 04:52:26 pm »
Thanks for your contribution!
Zentyal Server Lead Developer