分享

ProFTPD module mod_quotatab_ldap

 秋风无情萤火虫 2015-03-17

ProFTPD module mod_quotatab_ldap



This mod_quotatab submodule is contained in the mod_quotatab_ldap.c, and is found in the contrib/ area of the ProFTPD source distribution. See the mod_quotatabinstallation instructions.

This submodule provides the LDAP-specific "driver" for retrieving quota limit table information from an LDAP server.

Author

Please contact John Morrissey <jwm at horde.net> with any questions, concerns, or suggestions regarding this module.


LDAP Limit Quota Tables

LDAP-based quota tables (source-type of "ldap") can only be used for limit tables, not for tally tables. The frequent updates needed for maintaining tally tables mean that LDAP is not well-suited to handle tally table storage.

The mod_quotatab_ldap module supports the "ldap" string for the source-type parameter of the QuotaLimitTable configuration directive.

To enable LDAP-provisioned limit tables, you need to configure mod_ldap to lookup the proper attribute using the LDAPDoQuotaLookups configuration directive.

The LDAP attribute to be looked up (named ftpQuota by default) should contain a comma-separated list of 8 values, in the following order:

  per_session, limit_type, bytes_in_avail, bytes_out_avail, bytes_xfer_avail,
    files_in_avail, files_out_avail, files_xfer_avail
For example:
  "false,hard,100,100,100,100,100,100"

An example proftpd.conf configuration might look like:

  <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>


Copyright 2003 TJ Saunders
All Rights Reserved


    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多