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