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