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