mod_quotatab_ldap
mod_quotatab
mod_quotatab_ldap.c
contrib/
This submodule provides the LDAP-specific "driver" for retrieving quota limit table information from an LDAP server.
Please contact John Morrissey <jwm at horde.net> with any questions, concerns, or suggestions regarding this module.
The mod_quotatab_ldap module supports the "ldap" string for the source-type parameter of the QuotaLimitTable configuration directive.
QuotaLimitTable
To enable LDAP-provisioned limit tables, you need to configure mod_ldap to lookup the proper attribute using the LDAPDoAttr configuration directive.
mod_ldap
LDAPDoAttr
The LDAP attribute to be looked up (named ftpQuota by default) should contain a comma-separated list of 8 values, in the following order:
ftpQuota
per_session, limit_type, bytes_in_avail, bytes_out_avail, bytes_xfer_avail, files_in_avail, files_out_avail, files_xfer_avail
"false,hard,100,100,100,100,100,100"
An example proftpd.conf configuration might look like:
proftpd.conf
<IfModule mod_quotatab.c> <IfModule mod_quotatab_ldap.c> # Enable LDAP quota lookups LDAPDoQuotaLookups on # Use an LDAP-based limit table. Note that there is no additional # information supplied after the source-type: this is intentional. # mod_ldap handles the rest. QuotaLimitTable ldap: </IfModule> # Use a file-based tally table QuotaTallyTable file:/usr/local/proftpd/ftpquota.tallytab </IfModule>