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