Debian Codegraph @

doc/contrib/mod_unique_id.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>ProFTPD module mod_unique_id</title>
5 </head>
6
7 <body bgcolor=white>
8
9 <hr>
10 <center>
11 <h2><b>ProFTPD module <code>mod_unique_id</code></b></h2>
12 </center>
13 <hr><br>
14
15 <p>
16 The <code>mod_unique_id</code> module attempts to generate a unique ID for
17 every FTP session. To make the ID unique across multiple servers, the
18 following bits of information are used:
19 <ul>
20 <li>host IP address
21 <li>client IP address
22 <li>process ID
23 <li>time of day (including microseconds)
24 </ul>
25 The generated ID is stored in the <code>UNIQUE_ID</code> environment variable
26 in a printable form; other modules can retrieve the unique session ID from the
27 environment. (Note that you will want <code>mod_unique_id</code> listed toward
28 the <i>end</i> of your <code>--with-modules</code> configure list, so that the
29 ID generation runs early in the session establishment process.) The contents
30 of the <code>UNIQUE_ID</code> should be considered opaque, and are subject
31 to change in the future.
32
33 <p>
34 This module is contained in the <code>mod_unique_id</code> file for
35 ProFTPD 1.3.<i>x</i>, and is not compiled by default. Installation
36 instructions are discussed <a href="#Installation">here</a>.
37
38 <p>
39 The most current version of <code>mod_unique_id</code> is distributed with
40 the <code>proftpd</code> source code.
41
42 <h2>Author</h2>
43 <p>
44 Please contact TJ Saunders &lt;tj <i>at</i> castaglia.org&gt; with any
45 questions, concerns, or suggestions regarding this module.
46
47 <h2>Directives</h2>
48 <ul>
49 <li><a href="#UniqueIDEngine">UniqueIDEngine</a>
50 </ul>
51
52 <hr>
53 <h3><a name="UniqueIDEngine">UniqueIDEngine</a></h3>
54 <strong>Syntax:</strong> UniqueIDEngine <em>on|off</em><br>
55 <strong>Default:</strong> <em>on</em><br>
56 <strong>Context:</strong> server config<br>
57 <strong>Module:</strong> mod_unique_id<br>
58 <strong>Compatibility:</strong> 1.3.1rc1 and later
59
60 <p>
61 The <code>UniqueIDEngine</code> directive enables or disables the module's
62 generation of a unique ID for each FTP session.
63
64 <p>
65 By default, <code>UniqueIDEngine</code> is <em>on</em>.
66
67 <p>
68 <hr>
69 <h2><a name="Installation">Installation</a></h2>
70 The <code>mod_unique_id</code> module is distributed with ProFTPD. For
71 including <code>mod_unique_id</code> as a statically linked module, use:
72 <pre>
73 $ ./configure --with-modules=mod_unique_id
74 </pre>
75 Alternatively, <code>mod_unique_id</code> could be built as a DSO module:
76 <pre>
77 $ ./configure --with-shared=mod_unique_id
78 </pre>
79 Then follow the usual steps:
80 <pre>
81 $ make
82 $ make install
83 </pre>
84
85 <p>
86 Alternatively, if your <code>proftpd</code> was compiled with DSO support, you
87 can use the <code>prxs</code> tool to build <code>mod_unique_id</code> as a
88 shared module:
89 <pre>
90 $ prxs -c -i -d mod_unique_id.c
91 </pre>
92
93 <p>
94 <hr>
95 <h2><a name="Usage">Usage</a></h2>
96 <p>
97 Since <code>mod_unique_id</code> generates a new unique ID for each session
98 by default, there is no special configuration needed for enabling the
99 module. Taking advantage of <code>mod_unique_id</code>, however, requires
100 some adjustments in other parts of your <code>proftpd.conf</code>.
101
102 <p>
103 Example configuration:
104 <pre>
105 &lt;IfModule mod_unique_id.c&gt;
106 # Include the unique session ID in an ExtendedLog
107 LogFormat session "%{UNIQUE_ID}e %h %l %u %t \"%r\" %s %b"
108 ExtendedLog /path/to/extended.log ALL session
109
110 # Store the unique ID in a SQL table named 'ftpsessions'
111 SQLLog PASS login
112 SQLNamedQuery login INSERT "'%{note:UNIQUE_ID}', '%u', now()" ftpsessions
113 &lt;/IfModule&gt;
114 </pre>
115
116 <p>
117 <hr>
118 <font size=2><b><i>
119 &copy; Copyright 2006-2020 TJ Saunders<br>
120 All Rights Reserved<br>
121 </i></b></font>
122 <hr>
123
124 </body>
125 </html>