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