]> andersk Git - moira.git/blame - include/moira_site.h
kill GDSS
[moira.git] / include / moira_site.h
CommitLineData
7ac48069 1/* $Id$
2 *
5eaef520 3 * This file contains all definitions that allow easy access to
b676ee92 4 * elements returned by most of the @i[Moira] queries. It also defines
1f604009 5 * the default server location and the directories used on the server.
875f50fb 6 *
b676ee92 7 * If the order of the arguments in the @i[Moira] queries change (again)
5eaef520 8 * then all that needs to be changed are the values of these items
875f50fb 9 * and all should be well, (hopefully :-).
10 *
11 * Chris D. Peterson - kit@athena
12 * 7/27/88
08345b74 13 *
7ac48069 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>.
08345b74 17 */
18
8defc06b 19#ifndef _moira_site_
20#define _moira_site_
08345b74 21
22#include "mit-copyright.h"
23
b676ee92 24/* Default Moira server to connect to */
59ec8dae 25#define MOIRA_SERVER "MOIRA.MIT.EDU:moira_db"
875f50fb 26
64be6dd4 27
402461ad 28#define NAME 0
29
075fe5bb 30/* get_ace_use */
402461ad 31
075fe5bb 32#define ACE_TYPE 0
33#define ACE_NAME 1
34#define ACE_END 2
402461ad 35
0aa25e4c 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 */
08345b74 48
075fe5bb 49#define ALIAS_NAME 0
461c03b6 50#define ALIAS_TYPE 1
51#define ALIAS_TRANS 2
52#define ALIAS_END 3
08345b74 53
54/* Cluster information queries */
55
075fe5bb 56#define C_NAME 0
08345b74 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
075fe5bb 66#define CD_NAME 0
08345b74 67#define CD_LABEL 1
68#define CD_DATA 2
69#define CD_END 3
70
461c03b6 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
e24665a1 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 */
461c03b6 95
075fe5bb 96#define FS_NAME 0
461c03b6 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
075fe5bb 114#define GLOM_NAME 0
461c03b6 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
413c1dfd 122/* Kerberos/User Map */
123
124#define KMAP_USER 0
125#define KMAP_PRINCIPAL 1
126#define KMAP_END 2
127
08345b74 128/* General List information Queries. */
129
075fe5bb 130#define L_NAME 0
08345b74 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
075fe5bb 137#define L_ACE_TYPE 7
138#define L_ACE_NAME 8
08345b74 139#define L_DESC 9
140#define L_MODTIME 10
402461ad 141#define L_MODBY 11
08345b74 142#define L_MODWITH 12
143#define L_END 13
144
08345b74 145/* List Member information queries. */
146
147#define LM_LIST 0
148#define LM_TYPE 1
149#define LM_MEMBER 2
150#define LM_END 3
461c03b6 151
0aa25e4c 152#define LM_TAG 3
153#define LM_TAG_END 4
154
461c03b6 155/* Machine information queries */
156
e8ac6837 157#define M_NAME 0
158#define M_VENDOR 1
159#define M_TYPE 1
160#define M_MODEL 2
161#define M_OS 3
162#define M_LOC 4
163#define M_CONTACT 5
164#define M_USE 6
165#define M_STAT 7
166#define M_STAT_CHNG 8
167#define M_SUBNET 9
168#define M_ADDR 10
169#define M_OWNER_TYPE 11
170#define M_OWNER_NAME 12
171#define M_ACOMMENT 13
172#define M_OCOMMENT 14
173#define M_CREATED 15
174#define M_CREATOR 16
175#define M_INUSE 17
176#define M_MODTIME 18
177#define M_MODBY 19
178#define M_MODWITH 20
179#define M_END 21
461c03b6 180
181/* Machine to Cluster mapping */
182
183#define MAP_MACHINE 0
184#define MAP_CLUSTER 1
185#define MAP_END 2
08345b74 186
187/* NFS phys. queries. */
188
075fe5bb 189#define NFS_NAME 0
08345b74 190#define NFS_DIR 1
191#define NFS_DEVICE 2
192#define NFS_STATUS 3
193#define NFS_ALLOC 4
194#define NFS_SIZE 5
195#define NFS_MODTIME 6
196#define NFS_MODBY 7
197#define NFS_MODWITH 8
198#define NFS_END 9
199
2e6c5883 200/* Printer queries */
201
202#define PRN_NAME 0
203#define PRN_TYPE 1
204#define PRN_HWTYPE 2
205#define PRN_DUPLEXNAME 3
206#define PRN_HOSTNAME 4
207#define PRN_LOGHOST 5
208#define PRN_RM 6
209#define PRN_RP 7
210#define PRN_RQ 8
211#define PRN_KA 9
212#define PRN_PC 10
213#define PRN_AC 11
214#define PRN_LPC_ACL 12
fe1243fa 215#define PRN_BANNER 13
216#define PRN_LOCATION 14
217#define PRN_CONTACT 15
218#define PRN_MODTIME 16
219#define PRN_MODBY 17
220#define PRN_MODWITH 18
221#define PRN_END 19
222
1f96a400 223#define PRN_BANNER_NONE 0
fe1243fa 224#define PRN_BANNER_FIRST 1
225#define PRN_BANNER_LAST 2
2e6c5883 226
1f96a400 227/* Print Server queries */
228
229#define PRINTSERVER_HOST 0
230#define PRINTSERVER_KIND 1
231#define PRINTSERVER_TYPES 2
232#define PRINTSERVER_OWNER_TYPE 3
233#define PRINTSERVER_OWNER_NAME 4
234#define PRINTSERVER_LPC_ACL 5
235#define PRINTSERVER_MODTIME 6
236#define PRINTSERVER_MODBY 7
237#define PRINTSERVER_MODWITH 8
238#define PRINTSERVER_END 9
239
2e6c5883 240/* PO box information queries */
08345b74 241
075fe5bb 242#define PO_NAME 0
08345b74 243#define PO_TYPE 1
075fe5bb 244#define PO_BOX 2
a7042c30 245#define PO_ADDR 3
246#define PO_END 4
08345b74 247
461c03b6 248/* Quota queries */
249
250#define Q_FILESYS 0
b3a64d3f 251#define Q_TYPE 1
252#define Q_NAME 2
5eaef520 253#define Q_QUOTA 3
b3a64d3f 254#define Q_DIRECTORY 4
255#define Q_MACHINE 5
256#define Q_MODTIME 6
257#define Q_MODBY 7
258#define Q_MODWITH 8
259#define Q_END 9
461c03b6 260
364fbc82 261/* Service info */
e24665a1 262
364fbc82 263#define SVC_SERVICE 0
264#define SVC_INTERVAL 1
265#define SVC_TARGET 2
266#define SVC_SCRIPT 3
267#define SVC_DFGEN 4
268#define SVC_DFCHECK 5
269#define SVC_TYPE 6
270#define SVC_ENABLE 7
271#define SVC_INPROGRESS 8
272#define SVC_HARDERROR 9
273#define SVC_ERRMSG 10
274#define SVC_ACE_TYPE 11
275#define SVC_ACE_NAME 12
276#define SVC_MODTIME 13
277#define SVC_MODBY 14
278#define SVC_MODWITH 15
279#define SVC_END 16
280
281/* Service add/update */
e24665a1 282
364fbc82 283#define SC_SERVICE 0
284#define SC_INTERVAL 1
285#define SC_TARGET 2
286#define SC_SCRIPT 3
287#define SC_TYPE 4
288#define SC_ENABLE 5
289#define SC_ACE_TYPE 6
290#define SC_ACE_NAME 7
291#define SC_END 8
292
293/* Service/host tuples */
e24665a1 294
364fbc82 295#define SH_SERVICE 0
296#define SH_MACHINE 1
297#define SH_ENABLE 2
298#define SH_OVERRIDE 3
299#define SH_SUCCESS 4
300#define SH_INPROGRESS 5
301#define SH_HOSTERROR 6
302#define SH_ERRMSG 7
303#define SH_LASTTRY 8
304#define SH_LASTSUCCESS 9
305#define SH_VALUE1 10
306#define SH_VALUE2 11
307#define SH_VALUE3 12
308#define SH_MODTIME 13
309#define SH_MODBY 14
310#define SH_MODWITH 15
311#define SH_END 16
312
313/* Service/host tuple add & updates */
e24665a1 314
364fbc82 315#define SHI_SERVICE 0
316#define SHI_MACHINE 1
317#define SHI_ENABLE 2
318#define SHI_VALUE1 3
319#define SHI_VALUE2 4
320#define SHI_VALUE3 5
321#define SHI_END 6
322
e8ac6837 323/* Subnet info */
324
325#define SN_NAME 0
326#define SN_DESC 1
327#define SN_ADDRESS 2
328#define SN_MASK 3
329#define SN_LOW 4
330#define SN_HIGH 5
331#define SN_PREFIX 6
332#define SN_ACE_TYPE 7
333#define SN_ACE_NAME 8
334#define SN_MODTIME 9
335#define SN_MODBY 10
336#define SN_MODWITH 11
337#define SN_END 12
338
e24665a1 339/* User Information queries */
340
341#define U_NAME 0
342#define U_UID 1
343#define U_SHELL 2
344#define U_LAST 3
345#define U_FIRST 4
346#define U_MIDDLE 5
5eaef520 347#define U_STATE 6
e24665a1 348#define U_MITID 7
349#define U_CLASS 8
ac964077 350#define U_COMMENT 9
351#define U_SIGNATURE 10
0902b015 352#define U_SECURE 11
353#define U_MODTIME 12
354#define U_MODBY 13
355#define U_MODWITH 14
356#define U_END 15
e24665a1 357
358/* User states (the value of argv[U_STATE] from a user query) */
359
360#define US_NO_LOGIN_YET 0
361#define US_REGISTERED 1
362#define US_NO_PASSWD 2
363#define US_DELETED 3
364#define US_NOT_ALLOWED 4
413c1dfd 365#define US_ENROLLED 5
366#define US_ENROLL_NOT_ALLOWED 6
b676ee92 367#define US_HALF_ENROLLED 7
368#define US_END 8
e24665a1 369
370/* User shell queries */
371
372#define USH_NAME 0
373#define USH_SHELL 1
374#define USH_END 2
375
0aa25e4c 376/* Zephyr ACL queries */
ef073d27 377
378#define ZA_CLASS 0
379#define ZA_XMT_TYPE 1
380#define ZA_XMT_ID 2
381#define ZA_SUB_TYPE 3
382#define ZA_SUB_ID 4
383#define ZA_IWS_TYPE 5
384#define ZA_IWS_ID 6
385#define ZA_IUI_TYPE 7
386#define ZA_IUI_ID 8
387#define ZA_MODTIME 9
388#define ZA_MODBY 10
389#define ZA_MODWITH 11
390#define ZA_END 12
391
392
1f604009 393
394/* Directories & files used on the server machine: */
395
59ec8dae 396#define MOIRA_DIR "/moira" /* home directory of the system */
ef073d27 397#define BIN_DIR "/moira/bin" /* where progs live */
398#define DCM_DIR "/moira/dcm" /* where DCM output files end up */
399#define LOCK_DIR "/moira/dcm/locks" /* where DCM puts lock files */
1f604009 400
ef073d27 401#define CRITERRLOG "/moira/critical.log"
402#define JOURNAL "/moira/journal"
403#define REGJOURNAL "/moira/journal.reg"
1f604009 404#define NODCMFILE "/etc/nodcm" /* flag to inhibit DCM running */
8defc06b 405#define MOIRA_MOTD_FILE "/etc/smsdown" /* make the server go to sleep */
1f604009 406
407
3cf0c9da 408/* If you have a uid between 32000 and 32767, Ultrix will give you a
409 * root shell. Oops. This define ought to stay around as long as there
410 * are any Athenized Ultrix machines around.
411 */
412#define ULTRIX_ID_HOLE
413
414
c6f6ac98 415#endif /* _moira_site_ */ /* Do not add anything after this line. */
This page took 0.149268 seconds and 5 git commands to generate.