Debian Codegraph @

doc/contrib/mod_quotatab_ldap.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>ProFTPD module mod_quotatab_ldap</title>
5 </head>
6
7 <body bgcolor=white>
8
9 <hr>
10 <center>
11 <h2><b>ProFTPD module <code>mod_quotatab_ldap</code></b></h2>
12 </center>
13 <hr><br>
14
15 This <code>mod_quotatab</code> submodule is contained in the
16 <code>mod_quotatab_ldap.c</code>, and is found in the <code>contrib/</code>
17 area of the ProFTPD source distribution. See the <code>mod_quotatab</code>
18 <a href="mod_quotatab.html#Installation">installation</a> instructions.
19
20 <p>
21 This submodule provides the LDAP-specific &quot;driver&quot; for retrieving
22 quota limit table information from an LDAP server.
23
24 <h2>Author</h2>
25 <p>
26 Please contact John Morrissey &lt;jwm <i>at</i> horde.net&gt; with any
27 questions, concerns, or suggestions regarding this module.
28
29 <p>
30 <hr><h2><a name="LDAPTables">LDAP Limit Quota Tables</a></h2>
31 LDAP-based quota tables (<em>source-type</em> of &quot;ldap&quot;) can
32 only be used for limit tables, <b>not</b> for tally tables. The frequent
33 updates needed for maintaining tally tables mean that LDAP is not well-suited
34 to handle tally table storage.
35
36 <p>
37 The <code>mod_quotatab_ldap</code> module supports the &quot;ldap&quot; string
38 for the <em>source-type</em> parameter of the
39 <a href="mod_quotatab.html#QuotaLimitTable"><code>QuotaLimitTable</code></a>
40 configuration directive.
41
42 <p>
43 To enable LDAP-provisioned limit tables, you need to configure
44 <code>mod_ldap</code> to lookup the proper attribute using the
45 <a href="http://www.proftpd.org/docs/contrib/mod_ldap.html#LDAPAttr"><code>LDAPDoAttr</code></a> configuration directive.
46
47 <p>
48 The LDAP attribute to be looked up (named <code>ftpQuota</code> by default)
49 should contain a comma-separated list of 8 values, in the following order:
50 <pre>
51 <i>per_session, limit_type, bytes_in_avail, bytes_out_avail, bytes_xfer_avail,
52 files_in_avail, files_out_avail, files_xfer_avail</i>
53 </pre>
54 For example:
55 <pre>
56 &quot;false,hard,100,100,100,100,100,100&quot;
57 </pre>
58
59 <p>
60 An example <code>proftpd.conf</code> configuration might look like:
61 <pre>
62 &lt;IfModule mod_quotatab.c&gt;
63 &lt;IfModule mod_quotatab_ldap.c&gt;
64 # Enable LDAP quota lookups
65 LDAPDoQuotaLookups on
66
67 # Use an LDAP-based limit table. Note that there is no additional
68 # information supplied after the source-type: this is intentional.
69 # mod_ldap handles the rest.
70 QuotaLimitTable ldap:
71 &lt;/IfModule&gt;
72
73 # Use a file-based tally table
74 QuotaTallyTable file:/usr/local/proftpd/ftpquota.tallytab
75 &lt;/IfModule&gt;
76 </pre>
77
78 <p>
79 <hr>
80 <font size=2><b><i>
81 &copy; Copyright 2003-2022 TJ Saunders<br>
82 All Rights Reserved<br>
83 </i></b></font>
84 <hr>
85
86 </body>
87 </html>