]> andersk Git - moira.git/blob - include/moira_site.h
b286134bec131f32df8168d98b85c7e2358193dc
[moira.git] / include / moira_site.h
1 /* $Id$
2  *
3  * This file contains all definitions that allow easy access to
4  * elements returned by most of the @i[Moira] queries.  It also defines
5  * the default server location and the directories used on the server.
6  *
7  * If the order of the arguments in the @i[Moira] queries change (again)
8  * then all that needs to be changed are the values of these items
9  * and all should be well, (hopefully :-).
10  *
11  *                                 Chris D. Peterson - kit@athena
12  *                                   7/27/88
13  *
14  * Copyright (C) 1988-1998 by the Massachusetts Institute of Technology.
15  * For further information on copyright and distribution
16  * see the file <mit-copyright.h>.
17  */
18
19 #ifndef _moira_site_
20 #define _moira_site_
21
22 #include "mit-copyright.h"
23
24 /* Default Moira server to connect to */
25 #define MOIRA_SERVER    "MOIRA.MIT.EDU:moira_db"
26
27
28 #define NAME 0
29
30 /* get_ace_use */
31
32 #define ACE_TYPE 0
33 #define ACE_NAME 1
34 #define ACE_END  2
35
36 /* alias queries. */
37
38 #define ALIAS_NAME  0
39 #define ALIAS_TYPE  1
40 #define ALIAS_TRANS 2
41 #define ALIAS_END   3
42
43 /* Cluster information queries */
44
45 #define C_NAME       0
46 #define C_DESCRIPT   1
47 #define C_LOCATION   2
48 #define C_MODTIME    3
49 #define C_MODBY      4
50 #define C_MODWITH    5
51 #define C_END        6
52
53 /* Cluster Data information queries */
54
55 #define CD_NAME      0
56 #define CD_LABEL     1
57 #define CD_DATA      2
58 #define CD_END       3
59
60 /* Delete Member from list queries. */
61
62 #define DM_LIST      0
63 #define DM_TYPE      1
64 #define DM_MEMBER    2
65 #define DM_END       3
66
67 /* Finger queries */
68
69 #define F_NAME          0
70 #define F_FULLNAME      1
71 #define F_NICKNAME      2
72 #define F_HOME_ADDR     3
73 #define F_HOME_PHONE    4
74 #define F_OFFICE_ADDR   5
75 #define F_OFFICE_PHONE  6
76 #define F_MIT_DEPT      7
77 #define F_MIT_AFFIL     8
78 #define F_MODTIME       9
79 #define F_MODBY         10
80 #define F_MODWITH       11
81 #define F_END           12
82
83 /* Filesys queries */
84
85 #define FS_NAME         0
86 #define FS_TYPE         1
87 #define FS_MACHINE      2
88 #define FS_PACK         3
89 #define FS_M_POINT      4
90 #define FS_ACCESS       5
91 #define FS_COMMENTS     6
92 #define FS_OWNER        7
93 #define FS_OWNERS       8
94 #define FS_CREATE       9
95 #define FS_L_TYPE       10
96 #define FS_MODTIME      11
97 #define FS_MODBY        12
98 #define FS_MODWITH      13
99 #define FS_END          14
100
101 /* Get List Of Member queries. */
102
103 #define GLOM_NAME     0
104 #define GLOM_ACTIVE   1
105 #define GLOM_PUBLIC   2
106 #define GLOM_HIDDEN   3
107 #define GLOM_MAILLIST 4
108 #define GLOM_GROUP    5
109 #define GLOM_END      6
110
111 /* Kerberos/User Map */
112
113 #define KMAP_USER       0
114 #define KMAP_PRINCIPAL  1
115 #define KMAP_END        2
116
117 /* General List information Queries. */
118
119 #define L_NAME     0
120 #define L_ACTIVE   1
121 #define L_PUBLIC   2
122 #define L_HIDDEN   3
123 #define L_MAILLIST 4
124 #define L_GROUP    5
125 #define L_GID      6
126 #define L_ACE_TYPE 7
127 #define L_ACE_NAME 8
128 #define L_DESC     9
129 #define L_MODTIME  10
130 #define L_MODBY    11
131 #define L_MODWITH  12
132 #define L_END      13
133
134 /* List Member information queries. */
135
136 #define LM_LIST   0
137 #define LM_TYPE   1
138 #define LM_MEMBER 2
139 #define LM_END    3
140
141 /* Machine information queries */
142
143 #define M_NAME          0
144 #define M_VENDOR        1
145 #define M_TYPE          1
146 #define M_MODEL         2
147 #define M_OS            3
148 #define M_LOC           4
149 #define M_CONTACT       5
150 #define M_USE           6
151 #define M_STAT          7
152 #define M_STAT_CHNG     8
153 #define M_SUBNET        9
154 #define M_ADDR          10
155 #define M_OWNER_TYPE    11
156 #define M_OWNER_NAME    12
157 #define M_ACOMMENT      13
158 #define M_OCOMMENT      14
159 #define M_CREATED       15
160 #define M_CREATOR       16
161 #define M_INUSE         17
162 #define M_MODTIME       18
163 #define M_MODBY         19
164 #define M_MODWITH       20
165 #define M_END           21
166
167 /*  Machine to Cluster mapping */
168
169 #define MAP_MACHINE  0
170 #define MAP_CLUSTER  1
171 #define MAP_END      2
172
173 /*  NFS phys. queries. */
174
175 #define NFS_NAME    0
176 #define NFS_DIR     1
177 #define NFS_DEVICE  2
178 #define NFS_STATUS  3
179 #define NFS_ALLOC   4
180 #define NFS_SIZE    5
181 #define NFS_MODTIME 6
182 #define NFS_MODBY   7
183 #define NFS_MODWITH 8
184 #define NFS_END     9
185
186 /* Printer queries */
187
188 #define PRN_NAME        0
189 #define PRN_TYPE        1
190 #define PRN_HWTYPE      2
191 #define PRN_DUPLEXNAME  3
192 #define PRN_HOSTNAME    4
193 #define PRN_LOGHOST     5
194 #define PRN_RM          6
195 #define PRN_RP          7
196 #define PRN_RQ          8
197 #define PRN_KA          9
198 #define PRN_PC          10
199 #define PRN_AC          11
200 #define PRN_LPC_ACL     12
201 #define PRN_BANNER      13
202 #define PRN_LOCATION    14
203 #define PRN_CONTACT     15
204 #define PRN_MODTIME     16
205 #define PRN_MODBY       17
206 #define PRN_MODWITH     18
207 #define PRN_END         19
208
209 #define PRN_BANNER_NONE  0
210 #define PRN_BANNER_FIRST 1
211 #define PRN_BANNER_LAST  2
212
213 /* Print Server queries */
214
215 #define PRINTSERVER_HOST        0
216 #define PRINTSERVER_KIND        1
217 #define PRINTSERVER_TYPES       2
218 #define PRINTSERVER_OWNER_TYPE  3
219 #define PRINTSERVER_OWNER_NAME  4
220 #define PRINTSERVER_LPC_ACL     5
221 #define PRINTSERVER_MODTIME     6
222 #define PRINTSERVER_MODBY       7
223 #define PRINTSERVER_MODWITH     8
224 #define PRINTSERVER_END         9
225
226 /* PO box information queries */
227
228 #define PO_NAME    0
229 #define PO_TYPE    1
230 #define PO_BOX     2
231 #define PO_ADDR    3
232 #define PO_END     4
233
234 /* Quota queries */
235
236 #define Q_FILESYS   0
237 #define Q_TYPE      1
238 #define Q_NAME      2
239 #define Q_QUOTA     3
240 #define Q_DIRECTORY 4
241 #define Q_MACHINE   5
242 #define Q_MODTIME   6
243 #define Q_MODBY     7
244 #define Q_MODWITH   8
245 #define Q_END       9
246
247 /* Service info */
248
249 #define SVC_SERVICE     0
250 #define SVC_INTERVAL    1
251 #define SVC_TARGET      2
252 #define SVC_SCRIPT      3
253 #define SVC_DFGEN       4
254 #define SVC_DFCHECK     5
255 #define SVC_TYPE        6
256 #define SVC_ENABLE      7
257 #define SVC_INPROGRESS  8
258 #define SVC_HARDERROR   9
259 #define SVC_ERRMSG      10
260 #define SVC_ACE_TYPE    11
261 #define SVC_ACE_NAME    12
262 #define SVC_MODTIME     13
263 #define SVC_MODBY       14
264 #define SVC_MODWITH     15
265 #define SVC_END         16
266
267 /* Service add/update */
268
269 #define SC_SERVICE      0
270 #define SC_INTERVAL     1
271 #define SC_TARGET       2
272 #define SC_SCRIPT       3
273 #define SC_TYPE         4
274 #define SC_ENABLE       5
275 #define SC_ACE_TYPE     6
276 #define SC_ACE_NAME     7
277 #define SC_END          8
278
279 /* Service/host tuples */
280
281 #define SH_SERVICE      0
282 #define SH_MACHINE      1
283 #define SH_ENABLE       2
284 #define SH_OVERRIDE     3
285 #define SH_SUCCESS      4
286 #define SH_INPROGRESS   5
287 #define SH_HOSTERROR    6
288 #define SH_ERRMSG       7
289 #define SH_LASTTRY      8
290 #define SH_LASTSUCCESS  9
291 #define SH_VALUE1       10
292 #define SH_VALUE2       11
293 #define SH_VALUE3       12
294 #define SH_MODTIME      13
295 #define SH_MODBY        14
296 #define SH_MODWITH      15
297 #define SH_END          16
298
299 /* Service/host tuple add & updates */
300
301 #define SHI_SERVICE     0
302 #define SHI_MACHINE     1
303 #define SHI_ENABLE      2
304 #define SHI_VALUE1      3
305 #define SHI_VALUE2      4
306 #define SHI_VALUE3      5
307 #define SHI_END         6
308
309 /* Subnet info */
310
311 #define SN_NAME         0
312 #define SN_DESC         1
313 #define SN_ADDRESS      2
314 #define SN_MASK         3
315 #define SN_LOW          4
316 #define SN_HIGH         5
317 #define SN_PREFIX       6
318 #define SN_ACE_TYPE     7
319 #define SN_ACE_NAME     8
320 #define SN_MODTIME      9
321 #define SN_MODBY        10
322 #define SN_MODWITH      11
323 #define SN_END          12
324
325 /* User Information queries */
326
327 #define U_NAME    0
328 #define U_UID     1
329 #define U_SHELL   2
330 #define U_LAST    3
331 #define U_FIRST   4
332 #define U_MIDDLE  5
333 #define U_STATE   6
334 #define U_MITID   7
335 #define U_CLASS   8
336 #define U_COMMENT 9
337 #define U_SIGNATURE 10
338 #define U_SECURE  11
339 #define U_MODTIME 12
340 #define U_MODBY   13
341 #define U_MODWITH 14
342 #define U_END     15
343
344 /* User states (the value of argv[U_STATE] from a user query) */
345
346 #define US_NO_LOGIN_YET 0
347 #define US_REGISTERED   1
348 #define US_NO_PASSWD    2
349 #define US_DELETED      3
350 #define US_NOT_ALLOWED  4
351 #define US_ENROLLED     5
352 #define US_ENROLL_NOT_ALLOWED 6
353 #define US_HALF_ENROLLED 7
354 #define US_END          8
355
356 /* User shell queries */
357
358 #define USH_NAME        0
359 #define USH_SHELL       1
360 #define USH_END         2
361
362 /* MITdir pref bits */
363
364 #define DIRFLAGS_SUPPRESS 1
365 #define DIRFLAGS_NONLOCAL 2
366
367 /* Zehpyr ACL queries */
368
369 #define ZA_CLASS        0
370 #define ZA_XMT_TYPE     1
371 #define ZA_XMT_ID       2
372 #define ZA_SUB_TYPE     3
373 #define ZA_SUB_ID       4
374 #define ZA_IWS_TYPE     5
375 #define ZA_IWS_ID       6
376 #define ZA_IUI_TYPE     7
377 #define ZA_IUI_ID       8
378 #define ZA_MODTIME      9
379 #define ZA_MODBY        10
380 #define ZA_MODWITH      11
381 #define ZA_END          12
382
383
384
385 /* Directories & files used on the server machine: */
386
387 #define MOIRA_DIR       "/moira"        /* home directory of the system */
388 #define BIN_DIR         "/moira/bin"    /* where progs live */
389 #define DCM_DIR         "/moira/dcm"    /* where DCM output files end up */
390 #define LOCK_DIR        "/moira/dcm/locks" /* where DCM puts lock files */
391
392 #define CRITERRLOG      "/moira/critical.log"
393 #define JOURNAL         "/moira/journal"
394 #define REGJOURNAL      "/moira/journal.reg"
395 #define NODCMFILE       "/etc/nodcm"    /* flag to inhibit DCM running */
396 #define MOIRA_MOTD_FILE "/etc/smsdown"  /* make the server go to sleep */
397
398
399 /* If you have a uid between 32000 and 32767, Ultrix will give you a
400  * root shell. Oops. This define ought to stay around as long as there
401  * are any Athenized Ultrix machines around.
402  */
403 #define ULTRIX_ID_HOLE
404
405
406 #endif /* _moira_site_ */            /* Do not add anything after this line. */
This page took 0.768216 seconds and 3 git commands to generate.