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