]> andersk Git - moira.git/blame - include/moira_site.h
moved the #define of ZEPHYR to sms_app.h
[moira.git] / include / moira_site.h
CommitLineData
875f50fb 1/*
2 * This file contains all definitions that allow easy access to
1f604009 3 * elements returned by most of the @i[SMS] queries. It also defines
4 * the default server location and the directories used on the server.
875f50fb 5 *
6 * If the order of the arguments in the @i[SMS] 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
08345b74 12 *
13 * $Source$
14 * $Author$
15 * $Header$
16 *
0a2c64cb 17 * Copyright 1988 by the Massachusetts Institute of Technology.
08345b74 18 *
19 * For further information on copyright and distribution
20 * see the file mit-copyright.h
21 */
22
875f50fb 23#ifndef _sms_app_
24#define _sms_app_
08345b74 25
26#include "mit-copyright.h"
27
875f50fb 28/* Default SMS server to connect to */
29#define SMS_SERVER "SMS.MIT.EDU:sms_db"
30
402461ad 31#define NAME 0
32
075fe5bb 33/* get_ace_use */
402461ad 34
075fe5bb 35#define ACE_TYPE 0
36#define ACE_NAME 1
37#define ACE_END 2
402461ad 38
461c03b6 39/* alias queries. */
08345b74 40
075fe5bb 41#define ALIAS_NAME 0
461c03b6 42#define ALIAS_TYPE 1
43#define ALIAS_TRANS 2
44#define ALIAS_END 3
08345b74 45
46/* Cluster information queries */
47
075fe5bb 48#define C_NAME 0
08345b74 49#define C_DESCRIPT 1
50#define C_LOCATION 2
51#define C_MODTIME 3
52#define C_MODBY 4
53#define C_MODWITH 5
54#define C_END 6
55
56/* Cluster Data information queries */
57
075fe5bb 58#define CD_NAME 0
08345b74 59#define CD_LABEL 1
60#define CD_DATA 2
61#define CD_END 3
62
461c03b6 63/* Delete Member from list queries. */
64
65#define DM_LIST 0
66#define DM_TYPE 1
67#define DM_MEMBER 2
68#define DM_END 3
69
e24665a1 70/* Finger queries */
71
72#define F_NAME 0
73#define F_FULLNAME 1
74#define F_NICKNAME 2
75#define F_HOME_ADDR 3
76#define F_HOME_PHONE 4
77#define F_OFFICE_ADDR 5
78#define F_OFFICE_PHONE 6
79#define F_MIT_DEPT 7
80#define F_MIT_AFFIL 8
81#define F_MODTIME 9
82#define F_MODBY 10
83#define F_MODWITH 11
84#define F_END 12
85
86/* Filesys queries */
461c03b6 87
075fe5bb 88#define FS_NAME 0
461c03b6 89#define FS_TYPE 1
90#define FS_MACHINE 2
91#define FS_PACK 3
92#define FS_M_POINT 4
93#define FS_ACCESS 5
94#define FS_COMMENTS 6
95#define FS_OWNER 7
96#define FS_OWNERS 8
97#define FS_CREATE 9
98#define FS_L_TYPE 10
99#define FS_MODTIME 11
100#define FS_MODBY 12
101#define FS_MODWITH 13
102#define FS_END 14
103
104/* Get List Of Member queries. */
105
075fe5bb 106#define GLOM_NAME 0
461c03b6 107#define GLOM_ACTIVE 1
108#define GLOM_PUBLIC 2
109#define GLOM_HIDDEN 3
110#define GLOM_MAILLIST 4
111#define GLOM_GROUP 5
112#define GLOM_END 6
113
413c1dfd 114/* Kerberos/User Map */
115
116#define KMAP_USER 0
117#define KMAP_PRINCIPAL 1
118#define KMAP_END 2
119
08345b74 120/* General List information Queries. */
121
075fe5bb 122#define L_NAME 0
08345b74 123#define L_ACTIVE 1
124#define L_PUBLIC 2
125#define L_HIDDEN 3
126#define L_MAILLIST 4
127#define L_GROUP 5
128#define L_GID 6
075fe5bb 129#define L_ACE_TYPE 7
130#define L_ACE_NAME 8
08345b74 131#define L_DESC 9
132#define L_MODTIME 10
402461ad 133#define L_MODBY 11
08345b74 134#define L_MODWITH 12
135#define L_END 13
136
08345b74 137/* List Member information queries. */
138
139#define LM_LIST 0
140#define LM_TYPE 1
141#define LM_MEMBER 2
142#define LM_END 3
461c03b6 143
144/* Machine information queries */
145
075fe5bb 146#define M_NAME 0
461c03b6 147#define M_TYPE 1
148#define M_MODTIME 2
149#define M_MODBY 3
150#define M_MODWITH 4
151#define M_END 5
152
153/* Machine to Cluster mapping */
154
155#define MAP_MACHINE 0
156#define MAP_CLUSTER 1
157#define MAP_END 2
08345b74 158
159/* NFS phys. queries. */
160
075fe5bb 161#define NFS_NAME 0
08345b74 162#define NFS_DIR 1
163#define NFS_DEVICE 2
164#define NFS_STATUS 3
165#define NFS_ALLOC 4
166#define NFS_SIZE 5
167#define NFS_MODTIME 6
168#define NFS_MODBY 7
169#define NFS_MODWITH 8
170#define NFS_END 9
171
413c1dfd 172/* Printcap queries */
173
174#define PCAP_NAME 0
175#define PCAP_SPOOL_HOST 1
176#define PCAP_SPOOL_DIR 2
177#define PCAP_RPRINTER 3
178#define PCAP_COMMENTS 4
179#define PCAP_MODTIME 5
180#define PCAP_MODBY 6
181#define PCAP_MODWITH 7
182#define PCAP_END 8
183
184/* Palladium queries */
185
186#define PD_NAME 0
187#define PD_IDENT 1
188#define PD_HOST 2
189#define PD_MODTIME 3
190#define PD_MODBY 4
191#define PD_MODWITH 5
192#define PD_END 6
193
08345b74 194/* PO box infomarion queries */
195
075fe5bb 196#define PO_NAME 0
08345b74 197#define PO_TYPE 1
075fe5bb 198#define PO_BOX 2
199#define PO_END 3
08345b74 200
461c03b6 201/* Quota queries */
202
203#define Q_FILESYS 0
204#define Q_LOGIN 1
205#define Q_QUOTA 2
206#define Q_DIRECTORY 3
207#define Q_MACHINE 4
208#define Q_MODTIME 5
209#define Q_MODBY 6
210#define Q_MODWITH 7
211#define Q_END 8
212
364fbc82 213/* Service info */
e24665a1 214
364fbc82 215#define SVC_SERVICE 0
216#define SVC_INTERVAL 1
217#define SVC_TARGET 2
218#define SVC_SCRIPT 3
219#define SVC_DFGEN 4
220#define SVC_DFCHECK 5
221#define SVC_TYPE 6
222#define SVC_ENABLE 7
223#define SVC_INPROGRESS 8
224#define SVC_HARDERROR 9
225#define SVC_ERRMSG 10
226#define SVC_ACE_TYPE 11
227#define SVC_ACE_NAME 12
228#define SVC_MODTIME 13
229#define SVC_MODBY 14
230#define SVC_MODWITH 15
231#define SVC_END 16
232
233/* Service add/update */
e24665a1 234
364fbc82 235#define SC_SERVICE 0
236#define SC_INTERVAL 1
237#define SC_TARGET 2
238#define SC_SCRIPT 3
239#define SC_TYPE 4
240#define SC_ENABLE 5
241#define SC_ACE_TYPE 6
242#define SC_ACE_NAME 7
243#define SC_END 8
244
245/* Service/host tuples */
e24665a1 246
364fbc82 247#define SH_SERVICE 0
248#define SH_MACHINE 1
249#define SH_ENABLE 2
250#define SH_OVERRIDE 3
251#define SH_SUCCESS 4
252#define SH_INPROGRESS 5
253#define SH_HOSTERROR 6
254#define SH_ERRMSG 7
255#define SH_LASTTRY 8
256#define SH_LASTSUCCESS 9
257#define SH_VALUE1 10
258#define SH_VALUE2 11
259#define SH_VALUE3 12
260#define SH_MODTIME 13
261#define SH_MODBY 14
262#define SH_MODWITH 15
263#define SH_END 16
264
265/* Service/host tuple add & updates */
e24665a1 266
364fbc82 267#define SHI_SERVICE 0
268#define SHI_MACHINE 1
269#define SHI_ENABLE 2
270#define SHI_VALUE1 3
271#define SHI_VALUE2 4
272#define SHI_VALUE3 5
273#define SHI_END 6
274
e24665a1 275/* User Information queries */
276
277#define U_NAME 0
278#define U_UID 1
279#define U_SHELL 2
280#define U_LAST 3
281#define U_FIRST 4
282#define U_MIDDLE 5
283#define U_STATE 6
284#define U_MITID 7
285#define U_CLASS 8
286#define U_MODTIME 9
287#define U_MODBY 10
288#define U_MODWITH 11
289#define U_END 12
290
291/* User states (the value of argv[U_STATE] from a user query) */
292
293#define US_NO_LOGIN_YET 0
294#define US_REGISTERED 1
295#define US_NO_PASSWD 2
296#define US_DELETED 3
297#define US_NOT_ALLOWED 4
413c1dfd 298#define US_ENROLLED 5
299#define US_ENROLL_NOT_ALLOWED 6
300#define US_END 7
e24665a1 301
302/* User shell queries */
303
304#define USH_NAME 0
305#define USH_SHELL 1
306#define USH_END 2
307
1f604009 308
309/* Directories & files used on the server machine: */
310
311#define SMS_DIR "/u1/sms" /* home directory of the system */
312#define BIN_DIR "/u1/sms/bin" /* where progs live */
313#define DCM_DIR "/u1/sms/dcm" /* where DCM output files end up */
314#define LOCK_DIR "/u1/sms/dcm/locks" /* where DCM puts lock files */
315
316#define CRITERRLOG "/u1/sms/critical.log"
317#define JOURNAL "/u1/sms/journal"
318#define REGJOURNAL "/u1/sms/journal.reg"
319#define NODCMFILE "/etc/nodcm" /* flag to inhibit DCM running */
320#define SMS_MOTD_FILE "/etc/smsdown" /* make the server go to sleep */
321
322
875f50fb 323#endif _sms_app_ /* Do not add anything after this line. */
This page took 0.394762 seconds and 5 git commands to generate.