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