configuration files under /etc/pure-ftpd/conf/
there are 4 files in this directory they are
1.ChrootEveryone
-> yes
2.CreateHomeDir -> -> yes
3.DontResolve
-> yes
4.LDAPConfigFile
-> /etc/pure-ftpd/db/ldap.conf
/etc/pure-ftpd/db/ldap.conf file consists of.
#############################################
# #
# Sample Pure-FTPd LDAP configuration file. #
# See README.LDAP for explanations. #
# #
#############################################
# Optional : name of the LDAP server. Default : localhost
LDAPServer localhost
# Optional : server port. Default : 389
LDAPPort 389
# Mandatory : the base DN to search accounts from. No default.
LDAPBaseDN o=domains,dc=xyz,dc=com
# Optional : who we should bind the server as.
# Default : binds anonymously or binds as FTP users
LDAPBindDN cn=vmail,dc=xyz,dc=com
# Password if we don't bind anonymously
# This configuration file should be only readable by root
LDAPBindPW cARIzefmBEjIsFqFO1LvTo5HCNXrCT
# Optional : default UID, when there's no entry in an user object
LDAPDefaultUID 1000
# Optional : default GID, when there's no entry in an user object
LDAPDefaultGID 1000
# Filter to use to find the object that contains user info
# \L is replaced by the login the user is trying to log in as
# The default filter is (&(objectClass=posixAccount)(uid=\L))
# LDAPFilter (&(objectClass=posixAccount)(uid=\L))
LDAPFilter (&(objectClass=PureFTPdUser)(mail=\L)(FTPStatus=enabled))
# Attribute to get the home directory
# Default is homeDirectory (the standard attribute from posixAccount)
# LDAPHomeDir homeDirectory
LDAPHomeDir FTPHomeDir # <- This is new attribute, we will add it
# LDAP protocol version to use
# Version 3 (default) is mandatory with recent releases of OpenLDAP.
LDAPVersion 3
# Optional: use TLS to connect to the LDAP server
# LDAPUseTLS True
# Can be PASSWORD or BIND.
# PASSWORD retrieves objects and checks against the userPassword attribute
# BIND tries to bind
LDAPAuthMethod PASSWORD
Regards
siddartha.g