/etc/proftpd/ldap.conf
AuthOrder mod_ldap.c
LDAPServer xxx.xxx.xxx.xxx # your server IP
LDAPAttr uid sAMAccountName
LDAPAttr uidNumber msSFU30UidNumber
LDAPAttr gidNumber msSFU30GidNumber
LDAPGenerateHomedir on
LDAPGenerateHomedirPrefix /
LDAPDefaultUID 1001
LDAPDefaultGID 1001
RequireValidShell off
LDAPDNInfo "cn=ldapreader,OU=,DC=" "" # a generic windows account
LDAPAuthBinds on
LDAPDoAuth on "OU=,DC=,DC=" "(&(sAMAccountName=%u)(memberOf=CN=,OU=,DC=,DC=))"
modify /etc/proftpd/proftpd.conf
DefaultRoot /home/myRoot
Include /etc/proftpd/ldap.conf
PersistentPasswd off