From ISPMan
Enable LDAP-foo:
# cat /etc/pure-ftpd/conf/LDAPConfigFile
/etc/pure-ftpd/db/ldap.conf
# cat /etc/pure-ftpd/db/ldap.conf
#############################################
# #
# 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=ispman
# Optional : who we should bind the server as.
# Default : binds anonymously
LDAPBindDN cn=admin,o=ispman
# Password if we don't bind anonymously
# This configuration file should be only readable by root
LDAPBindPW ********
# Optional : default UID, when there's no entry in an user object
# LDAPDefaultUID 500
# Optional : default GID, when there's no entry in an user object
# LDAPDefaultGID 100
# 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))
# Attribute to get the home directory
# Default is homeDirectory (the standard attribute from posixAccount)
# LDAPHomeDir homeDirectory
# LDAP protocol version to use
# Version 3 (default) is mandatory with recent releases of OpenLDAP.
LDAPVersion 3