| 1 |
<html> |
| 2 |
<body> |
| 3 |
|
| 4 |
<h2><a href="cvm.html">CVM</a></h2> |
| 5 |
|
| 6 |
<h1>CVM SQL Framework</h1> |
| 7 |
|
| 8 |
<p><b>Query Substitution:</b> <tt>$VAR</tt> and <tt>${VAR}</tt> are |
| 9 |
replaced with the <i>quoted</i> value of the environment variable |
| 10 |
named <tt>VAR</tt>. Use the second form when <tt>VAR</tt> contains |
| 11 |
anything other than alpha-numeric or underscore (<tt>_</tt>) |
| 12 |
characters. Do not include quotes in the query. The variables |
| 13 |
<tt>account</tt> and <tt>domain</tt> contain the account and domain |
| 14 |
names given by the CVM client. <tt>$$</tt> is replaced with a single |
| 15 |
dollar sign.</p> |
| 16 |
|
| 17 |
<p><b>Query Results:</b> The query must produce the following fields |
| 18 |
exactly in order. All required fields must not be null or empty.</p> |
| 19 |
|
| 20 |
<ol> |
| 21 |
<li>Password, encrypted with <tt>crypt</tt> (required) |
| 22 |
<li>Actual account name (required) |
| 23 |
<li>User ID (integer) (required) |
| 24 |
<li>Group ID (integer) (required) |
| 25 |
<li>Directory (required) |
| 26 |
<li>Real name (optional) |
| 27 |
<li>Login shell (optional) |
| 28 |
<li>Group name (optional) |
| 29 |
<li>Domain name (optional) |
| 30 |
<li>System account name (optional) |
| 31 |
<li>System account directory (optional) |
| 32 |
<li>Mailbox path (optional) |
| 33 |
</ol> |
| 34 |
|
| 35 |
<p><b>Default Query:</b> <tt>SELECT password, username, userid, |
| 36 |
groupid, directory, realname, shell, groupname, domain, sys_username, |
| 37 |
sys_directory FROM accounts WHERE username=$account AND |
| 38 |
domain=$domain</tt></p> |
| 39 |
|
| 40 |
</body> |
| 41 |
</html> |