]> andersk Git - moira.git/blame - include/moira_site.h
schema and indexes for new printers table
[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
461c03b6 36/* alias queries. */
08345b74 37
075fe5bb 38#define ALIAS_NAME 0
461c03b6 39#define ALIAS_TYPE 1
40#define ALIAS_TRANS 2
41#define ALIAS_END 3
08345b74 42
43/* Cluster information queries */
44
075fe5bb 45#define C_NAME 0
08345b74 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
075fe5bb 55#define CD_NAME 0
08345b74 56#define CD_LABEL 1
57#define CD_DATA 2
58#define CD_END 3
59
461c03b6 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
e24665a1 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 */
461c03b6 84
075fe5bb 85#define FS_NAME 0
461c03b6 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
075fe5bb 103#define GLOM_NAME 0
461c03b6 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
413c1dfd 111/* Kerberos/User Map */
112
113#define KMAP_USER 0
114#define KMAP_PRINCIPAL 1
115#define KMAP_END 2
116
08345b74 117/* General List information Queries. */
118
075fe5bb 119#define L_NAME 0
08345b74 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
075fe5bb 126#define L_ACE_TYPE 7
127#define L_ACE_NAME 8
08345b74 128#define L_DESC 9
129#define L_MODTIME 10
402461ad 130#define L_MODBY 11
08345b74 131#define L_MODWITH 12
132#define L_END 13
133
08345b74 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
461c03b6 140
141/* Machine information queries */
142
e8ac6837 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
461c03b6 166
167/* Machine to Cluster mapping */
168
169#define MAP_MACHINE 0
170#define MAP_CLUSTER 1
171#define MAP_END 2
08345b74 172
173/* NFS phys. queries. */
174
075fe5bb 175#define NFS_NAME 0
08345b74 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
413c1dfd 186/* Printcap queries */
187
188#define PCAP_NAME 0
189#define PCAP_SPOOL_HOST 1
190#define PCAP_SPOOL_DIR 2
191#define PCAP_RPRINTER 3
b3a64d3f 192#define PCAP_QSERVER 4
193#define PCAP_AUTH 5
194#define PCAP_PRICE 6
195#define PCAP_COMMENTS 7
196#define PCAP_MODTIME 8
197#define PCAP_MODBY 9
198#define PCAP_MODWITH 10
199#define PCAP_END 11
413c1dfd 200
201/* Palladium queries */
202
203#define PD_NAME 0
204#define PD_IDENT 1
205#define PD_HOST 2
206#define PD_MODTIME 3
207#define PD_MODBY 4
208#define PD_MODWITH 5
209#define PD_END 6
210
08345b74 211/* PO box infomarion queries */
212
075fe5bb 213#define PO_NAME 0
08345b74 214#define PO_TYPE 1
075fe5bb 215#define PO_BOX 2
216#define PO_END 3
08345b74 217
461c03b6 218/* Quota queries */
219
220#define Q_FILESYS 0
b3a64d3f 221#define Q_TYPE 1
222#define Q_NAME 2
5eaef520 223#define Q_QUOTA 3
b3a64d3f 224#define Q_DIRECTORY 4
225#define Q_MACHINE 5
226#define Q_MODTIME 6
227#define Q_MODBY 7
228#define Q_MODWITH 8
229#define Q_END 9
461c03b6 230
364fbc82 231/* Service info */
e24665a1 232
364fbc82 233#define SVC_SERVICE 0
234#define SVC_INTERVAL 1
235#define SVC_TARGET 2
236#define SVC_SCRIPT 3
237#define SVC_DFGEN 4
238#define SVC_DFCHECK 5
239#define SVC_TYPE 6
240#define SVC_ENABLE 7
241#define SVC_INPROGRESS 8
242#define SVC_HARDERROR 9
243#define SVC_ERRMSG 10
244#define SVC_ACE_TYPE 11
245#define SVC_ACE_NAME 12
246#define SVC_MODTIME 13
247#define SVC_MODBY 14
248#define SVC_MODWITH 15
249#define SVC_END 16
250
251/* Service add/update */
e24665a1 252
364fbc82 253#define SC_SERVICE 0
254#define SC_INTERVAL 1
255#define SC_TARGET 2
256#define SC_SCRIPT 3
257#define SC_TYPE 4
258#define SC_ENABLE 5
259#define SC_ACE_TYPE 6
260#define SC_ACE_NAME 7
261#define SC_END 8
262
263/* Service/host tuples */
e24665a1 264
364fbc82 265#define SH_SERVICE 0
266#define SH_MACHINE 1
267#define SH_ENABLE 2
268#define SH_OVERRIDE 3
269#define SH_SUCCESS 4
270#define SH_INPROGRESS 5
271#define SH_HOSTERROR 6
272#define SH_ERRMSG 7
273#define SH_LASTTRY 8
274#define SH_LASTSUCCESS 9
275#define SH_VALUE1 10
276#define SH_VALUE2 11
277#define SH_VALUE3 12
278#define SH_MODTIME 13
279#define SH_MODBY 14
280#define SH_MODWITH 15
281#define SH_END 16
282
283/* Service/host tuple add & updates */
e24665a1 284
364fbc82 285#define SHI_SERVICE 0
286#define SHI_MACHINE 1
287#define SHI_ENABLE 2
288#define SHI_VALUE1 3
289#define SHI_VALUE2 4
290#define SHI_VALUE3 5
291#define SHI_END 6
292
e8ac6837 293/* Subnet info */
294
295#define SN_NAME 0
296#define SN_DESC 1
297#define SN_ADDRESS 2
298#define SN_MASK 3
299#define SN_LOW 4
300#define SN_HIGH 5
301#define SN_PREFIX 6
302#define SN_ACE_TYPE 7
303#define SN_ACE_NAME 8
304#define SN_MODTIME 9
305#define SN_MODBY 10
306#define SN_MODWITH 11
307#define SN_END 12
308
e24665a1 309/* User Information queries */
310
311#define U_NAME 0
312#define U_UID 1
313#define U_SHELL 2
314#define U_LAST 3
315#define U_FIRST 4
316#define U_MIDDLE 5
5eaef520 317#define U_STATE 6
e24665a1 318#define U_MITID 7
319#define U_CLASS 8
ac964077 320#define U_COMMENT 9
321#define U_SIGNATURE 10
0902b015 322#define U_SECURE 11
323#define U_MODTIME 12
324#define U_MODBY 13
325#define U_MODWITH 14
326#define U_END 15
e24665a1 327
328/* User states (the value of argv[U_STATE] from a user query) */
329
330#define US_NO_LOGIN_YET 0
331#define US_REGISTERED 1
332#define US_NO_PASSWD 2
333#define US_DELETED 3
334#define US_NOT_ALLOWED 4
413c1dfd 335#define US_ENROLLED 5
336#define US_ENROLL_NOT_ALLOWED 6
b676ee92 337#define US_HALF_ENROLLED 7
338#define US_END 8
e24665a1 339
340/* User shell queries */
341
342#define USH_NAME 0
343#define USH_SHELL 1
344#define USH_END 2
345
f8d6f058 346/* MITdir pref bits */
347
348#define DIRFLAGS_SUPPRESS 1
349#define DIRFLAGS_NONLOCAL 2
350
ef073d27 351/* Zehpyr ACL queries */
352
353#define ZA_CLASS 0
354#define ZA_XMT_TYPE 1
355#define ZA_XMT_ID 2
356#define ZA_SUB_TYPE 3
357#define ZA_SUB_ID 4
358#define ZA_IWS_TYPE 5
359#define ZA_IWS_ID 6
360#define ZA_IUI_TYPE 7
361#define ZA_IUI_ID 8
362#define ZA_MODTIME 9
363#define ZA_MODBY 10
364#define ZA_MODWITH 11
365#define ZA_END 12
366
367
1f604009 368
369/* Directories & files used on the server machine: */
370
59ec8dae 371#define MOIRA_DIR "/moira" /* home directory of the system */
ef073d27 372#define BIN_DIR "/moira/bin" /* where progs live */
373#define DCM_DIR "/moira/dcm" /* where DCM output files end up */
374#define LOCK_DIR "/moira/dcm/locks" /* where DCM puts lock files */
1f604009 375
ef073d27 376#define CRITERRLOG "/moira/critical.log"
377#define JOURNAL "/moira/journal"
378#define REGJOURNAL "/moira/journal.reg"
1f604009 379#define NODCMFILE "/etc/nodcm" /* flag to inhibit DCM running */
8defc06b 380#define MOIRA_MOTD_FILE "/etc/smsdown" /* make the server go to sleep */
1f604009 381
382
c6f6ac98 383#endif /* _moira_site_ */ /* Do not add anything after this line. */
This page took 0.828631 seconds and 5 git commands to generate.