ProFTPd LDAP configuration

Configuring ProFTPd to work with Foxpass's LDAP server

Create an LDAP binder in Foxpass called 'proftpd'. Record the password it generates.

Edit /etc/proftpd/modules.conf

Uncomment:
LoadModule mod_ldap.c

Edit /etc/proftpd/proftpd.conf like so, replacing 'dc=example,dc=com' with your base DN from the Foxpass dashboard.

<IfModule mod_ldap.c>
        LDAPLog /var/log/proftpd/ldap.log

        LDAPAuthBinds on

        LDAPServer ldaps://ldap.foxpass.com
        LDAPBindDN "cn=proftpd,dc=example,dc=com" "bindpw"
        LDAPUsers  "dc=example,dc=com" "(uid=%u)"

        LDAPSearchScope subtree

        LDAPGenerateHomedir on
        LDAPGenerateHomedirPrefix /home
</IfModule>