]> andersk Git - moira.git/blob - include/moira_site.h
ada3cfa78505f6308a266414da064448c9b91cfd
[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_END     3
232
233 /* Quota queries */
234
235 #define Q_FILESYS   0
236 #define Q_TYPE      1
237 #define Q_NAME      2
238 #define Q_QUOTA     3
239 #define Q_DIRECTORY 4
240 #define Q_MACHINE   5
241 #define Q_MODTIME   6
242 #define Q_MODBY     7
243 #define Q_MODWITH   8
244 #define Q_END       9
245
246 /* Service info */
247
248 #define SVC_SERVICE     0
249 #define SVC_INTERVAL    1
250 #define SVC_TARGET      2
251 #define SVC_SCRIPT      3
252 #define SVC_DFGEN       4
253 #define SVC_DFCHECK     5
254 #define SVC_TYPE        6
255 #define SVC_ENABLE      7
256 #define SVC_INPROGRESS  8
257 #define SVC_HARDERROR   9
258 #define SVC_ERRMSG      10
259 #define SVC_ACE_TYPE    11
260 #define SVC_ACE_NAME    12
261 #define SVC_MODTIME     13
262 #define SVC_MODBY       14
263 #define SVC_MODWITH     15
264 #define SVC_END         16
265
266 /* Service add/update */
267
268 #define SC_SERVICE      0
269 #define SC_INTERVAL     1
270 #define SC_TARGET       2
271 #define SC_SCRIPT       3
272 #define SC_TYPE         4
273 #define SC_ENABLE       5
274 #define SC_ACE_TYPE     6
275 #define SC_ACE_NAME     7
276 #define SC_END          8
277
278 /* Service/host tuples */
279
280 #define SH_SERVICE      0
281 #define SH_MACHINE      1
282 #define SH_ENABLE       2
283 #define SH_OVERRIDE     3
284 #define SH_SUCCESS      4
285 #define SH_INPROGRESS   5
286 #define SH_HOSTERROR    6
287 #define SH_ERRMSG       7
288 #define SH_LASTTRY      8
289 #define SH_LASTSUCCESS  9
290 #define SH_VALUE1       10
291 #define SH_VALUE2       11
292 #define SH_VALUE3       12
293 #define SH_MODTIME      13
294 #define SH_MODBY        14
295 #define SH_MODWITH      15
296 #define SH_END          16
297
298 /* Service/host tuple add & updates */
299
300 #define SHI_SERVICE     0
301 #define SHI_MACHINE     1
302 #define SHI_ENABLE      2
303 #define SHI_VALUE1      3
304 #define SHI_VALUE2      4
305 #define SHI_VALUE3      5
306 #define SHI_END         6
307
308 /* Subnet info */
309
310 #define SN_NAME         0
311 #define SN_DESC         1
312 #define SN_ADDRESS      2
313 #define SN_MASK         3
314 #define SN_LOW          4
315 #define SN_HIGH         5
316 #define SN_PREFIX       6
317 #define SN_ACE_TYPE     7
318 #define SN_ACE_NAME     8
319 #define SN_MODTIME      9
320 #define SN_MODBY        10
321 #define SN_MODWITH      11
322 #define SN_END          12
323
324 /* User Information queries */
325
326 #define U_NAME    0
327 #define U_UID     1
328 #define U_SHELL   2
329 #define U_LAST    3
330 #define U_FIRST   4
331 #define U_MIDDLE  5
332 #define U_STATE   6
333 #define U_MITID   7
334 #define U_CLASS   8
335 #define U_COMMENT 9
336 #define U_SIGNATURE 10
337 #define U_SECURE  11
338 #define U_MODTIME 12
339 #define U_MODBY   13
340 #define U_MODWITH 14
341 #define U_END     15
342
343 /* User states (the value of argv[U_STATE] from a user query) */
344
345 #define US_NO_LOGIN_YET 0
346 #define US_REGISTERED   1
347 #define US_NO_PASSWD    2
348 #define US_DELETED      3
349 #define US_NOT_ALLOWED  4
350 #define US_ENROLLED     5
351 #define US_ENROLL_NOT_ALLOWED 6
352 #define US_HALF_ENROLLED 7
353 #define US_END          8
354
355 /* User shell queries */
356
357 #define USH_NAME        0
358 #define USH_SHELL       1
359 #define USH_END         2
360
361 /* MITdir pref bits */
362
363 #define DIRFLAGS_SUPPRESS 1
364 #define DIRFLAGS_NONLOCAL 2
365
366 /* Zehpyr ACL queries */
367
368 #define ZA_CLASS        0
369 #define ZA_XMT_TYPE     1
370 #define ZA_XMT_ID       2
371 #define ZA_SUB_TYPE     3
372 #define ZA_SUB_ID       4
373 #define ZA_IWS_TYPE     5
374 #define ZA_IWS_ID       6
375 #define ZA_IUI_TYPE     7
376 #define ZA_IUI_ID       8
377 #define ZA_MODTIME      9
378 #define ZA_MODBY        10
379 #define ZA_MODWITH      11
380 #define ZA_END          12
381
382
383
384 /* Directories & files used on the server machine: */
385
386 #define MOIRA_DIR       "/moira"        /* home directory of the system */
387 #define BIN_DIR         "/moira/bin"    /* where progs live */
388 #define DCM_DIR         "/moira/dcm"    /* where DCM output files end up */
389 #define LOCK_DIR        "/moira/dcm/locks" /* where DCM puts lock files */
390
391 #define CRITERRLOG      "/moira/critical.log"
392 #define JOURNAL         "/moira/journal"
393 #define REGJOURNAL      "/moira/journal.reg"
394 #define NODCMFILE       "/etc/nodcm"    /* flag to inhibit DCM running */
395 #define MOIRA_MOTD_FILE "/etc/smsdown"  /* make the server go to sleep */
396
397
398 #endif /* _moira_site_ */            /* Do not add anything after this line. */
This page took 1.796686 seconds and 3 git commands to generate.