Debian Codegraph @

facts.html

raw
1 <html>
2 <body>
3
4 <h2><a href="cvm.html">CVM</a></h2>
5
6 <h1>CVM Fact Definitions</h1>
7
8 <h2>Types</h2>
9
10 <p>Facts may have one of two types:</p>
11
12 <ul>
13
14 <li>string: An arbitrary length series of ASCII characters (not
15 containing <tt>NUL</tt> in the version 1 protocol).</li>
16
17 <li>integer: A series of ASCII numerals interpreted as an unsigned
18 decimal value.</tt></li>
19
20 </ul>
21
22 <h2>Numbering</h2>
23
24 <p>All predefined fact numbers will have values between 1 and 127
25 inclusive. All other fact numbers (from 128 to 255) are reserved for
26 local or experimental use. Facts marked as "required" must be present
27 at least once in the result. Facts marked as "multiple" may be
28 present more than once; all other facts are optional and must be
29 present at most once. Facts may be reported in any order, and that
30 order carries no significance.</p>
31
32 <table border=1>
33
34 <tr>
35 <th>#</th>
36 <th>Name</th>
37 <th>Type</th>
38 <th>Required/<br>Optional/<br>Multiple</th>
39 <th>Description</th>
40 </tr>
41
42 <tr>
43 <td><tt>1</tt></td>
44 <td><tt>CVM_FACT_USERNAME</tt></td>
45 <td>string</td>
46 <td>Required</td>
47 <td>The login user name.</td>
48 </tr>
49
50 <tr>
51 <td><tt>2</tt></td>
52 <td><tt>CVM_FACT_USERID</tt></td>
53 <td>integer</td>
54 <td>Required</td>
55 <td>The user numerical ID.</td>
56 </tr>
57
58 <tr>
59 <td><tt>3</tt></td>
60 <td><tt>CVM_FACT_GROUPID</tt></td>
61 <td>integer</td>
62 <td>Required</td>
63 <td>The group numerical ID.</td>
64 </tr>
65
66 <tr>
67 <td><tt>4</tt></td>
68 <td><tt>CVM_FACT_REALNAME</tt></td>
69 <td>string</td>
70 <td>Optional</td>
71 <td>The user's real name.</td>
72 </tr>
73
74 <tr>
75 <td><tt>5</tt></td>
76 <td><tt>CVM_FACT_DIRECTORY</tt></td>
77 <td>string</td>
78 <td>Required</td>
79 <td>The "home" directory.</td>
80 </tr>
81
82 <tr>
83 <td><tt>6</tt></td>
84 <td><tt>CVM_FACT_SHELL</tt></td>
85 <td>string</td>
86 <td>Optional</td>
87 <td>The login shell.</td>
88 </tr>
89
90 <tr>
91 <td><tt>7</tt></td>
92 <td><tt>CVM_FACT_GROUPNAME</tt></td>
93 <td>string</td>
94 <td>Optional</td>
95 <td>The login group name, as reported by the system tables.</td>
96 </tr>
97
98 <tr>
99 <td><tt>8</tt></td>
100 <td><tt>CVM_FACT_SUPP_GROUPID</tt></td>
101 <td>integer</td>
102 <td>Optional<br>Multiple</td>
103 <td>Supplemental group ID list, must contain the primary group ID.</td>
104 </tr>
105
106 <tr>
107 <td><tt>9</tt></td>
108 <td><tt>CVM_FACT_SYS_USERNAME</tt></td>
109 <td>string</td>
110 <td>Optional</td>
111 <td>The system user name. For virtual login systems, this may differ
112 from fact #1. Where present, this should be the user name associated
113 with the user ID as reported by the system tables (ie
114 <tt>getpwuid</tt>).</td>
115 </tr>
116
117 <tr>
118 <td><tt>10</tt></td>
119 <td><tt>CVM_FACT_SYS_DIRECTORY</tt></td>
120 <td>string</td>
121 <td>Optional</td>
122 <td>The base "home" directory. For virtual login systems, this may
123 differ from fact #5. Where present, this should be the directory
124 associated with the user ID as reported by the system tables (ie
125 <tt>getpwuid</tt>).</td>
126 </tr>
127
128 <tr>
129 <td><tt>11</tt></td>
130 <td><tt>CVM_FACT_OFFICE_LOCATION</tt></td>
131 <td>string</td>
132 <td>Optional</td>
133 <td>The office location from the GECOS field.</td>
134 </tr>
135
136 <tr>
137 <td><tt>12</tt></td>
138 <td><tt>CVM_FACT_WORK_PHONE</tt></td>
139 <td>string</td>
140 <td>Optional</td>
141 <td>The work phone number from the GECOS field.</td>
142 </tr>
143
144 <tr>
145 <td><tt>13</tt></td>
146 <td><tt>CVM_FACT_HOME_PHONE</tt></td>
147 <td>string</td>
148 <td>Optional</td>
149 <td>The home phone number from the GECOS field.</td>
150 </tr>
151
152 <tr>
153 <td><tt>14</tt></td>
154 <td><tt>CVM_FACT_DOMAIN</tt></td>
155 <td>string</td>
156 <td>Optional</td>
157 <td>The domain name associated with the validated credentials.</td>
158 </tr>
159
160 <tr>
161 <td><tt>15</tt></td>
162 <td><tt>CVM_FACT_MAILBOX</tt></td>
163 <td>string</td>
164 <td>Optional</td>
165 <td>The path to the mailbox file or directory. If this path is not
166 prefixed with a slash ('/'), it must be interpreted as relative to the
167 home directory.</td>
168 </tr>
169
170 <tr>
171 <td><tt>16</tt></td>
172 <td><tt>CVM_FACT_OUTOFSCOPE</tt></td>
173 <td>integer</td>
174 <td>Optional</td>
175 <td>This fact is only relevant on permanent failures. If present, a
176 non-zero value indicates that validation failed because the given
177 credentials were outside of the scope for which the module is
178 authoritative.</td>
179 </tr>
180
181 </table>
182
183 </body>
184 </html>