Debian Codegraph @

cvm-mysql.html

raw
1 <html>
2 <body>
3
4 <h2><a href="cvm.html">CVM</a></h2>
5 <h2><a href="sql.html">CVM SQL Framework</a></h2>
6
7 <h1>The cvm-mysql Module</h1>
8
9 <h2>Synopsis:</h2> <p>MySQL module</p>
10
11 <h2>Credentials:</h2>
12
13 <ol>
14 <li>Pass phrase
15 </ol>
16
17 <h2>Description:</h2>
18
19 <p>This module queries a MySQL database for the account name, compares
20 the stored pass phrase with the given one using <tt>crypt</tt>.</p>
21
22 <h2>Configuration Variables:</h2>
23
24 <dl>
25
26 <dt><tt>$CVM_MYSQL_DEFAULT_FILE</tt></dt> <dd>The full path of the
27 defaults file to read if the following variable is set. If not set, the
28 file <tt>$HOME/.my.cnf</tt> will be read (the MySQL default).</dd>
29
30 <dt><tt>$CVM_MYSQL_DEFAULT_GROUP</tt></dt> <dd>If set, the module will
31 read connection default options from the named group in the defaults
32 file as above.</dd>
33
34 <dt><tt>$CVM_MYSQL_HOST</tt></dt> <dd>The hostname or IP of the MySQL
35 server. If not set, a connection to the local host is assumed.</dd>
36
37 <dt><tt>$CVM_MYSQL_USER</tt></dt> <dd>The MySQL login ID to connect as.
38 If not set, the invoking user is assumed.</dd>
39
40 <dt><tt>$CVM_MYSQL_PASS</tt></dt> <dd>The password for the above
41 user.</dd>
42
43 <dt><tt>$CVM_MYSQL_DB</tt></dt> <dd>The database name, must be set.</dd>
44
45 <dt><tt>$CVM_MYSQL_PORT</tt></dt> <dd>The port number for the TCP/IP
46 connection (only used if the server is not local).</dd>
47
48 <dt><tt>$CVM_MYSQL_POSTQ</tt> (optional)</dt> <dd>The <a
49 href="sql.html">SQL</a> query to execute after the credentials have been
50 validated.</dd>
51
52 <dt><tt>$CVM_MYSQL_PWCMP</tt> (optional)</dt> <dd>The <a
53 href="../pwcmp/pwcmp.html">password comparison module</a> to use.</dd>
54
55 <dt><tt>$CVM_MYSQL_SOCKET</tt></dt> <dd>The path to the socket that
56 should be used for connections to a local server.</dd>
57
58 <dt><tt>$CVM_MYSQL_QUERY</tt> (optional)</dt> <dd>The <a
59 href="sql.html">SQL</a> query to issue to retrieve the row containing
60 the account information from the database.</dd>
61
62 </dl>
63
64 </body>
65 </html>