3 * This file contains all definitions that allow easy access to
4 * elements returned by most of the @i[Moira] queries. It also defines
5 * the default server location and the directories used on the server.
7 * If the order of the arguments in the @i[Moira] queries change (again)
8 * then all that needs to be changed are the values of these items
9 * and all should be well, (hopefully :-).
11 * Chris D. Peterson - kit@athena
14 * Copyright (C) 1988-1998 by the Massachusetts Institute of Technology.
15 * For further information on copyright and distribution
16 * see the file <mit-copyright.h>.
22 #include "mit-copyright.h"
24 /* Default Moira server to connect to */
25 #define MOIRA_SERVER "MOIRA.MIT.EDU:moira_db"
54 /* Cluster information queries */
64 /* Cluster Data information queries */
71 /* Delete Member from list queries. */
84 #define F_HOME_PHONE 4
85 #define F_OFFICE_ADDR 5
86 #define F_OFFICE_PHONE 6
102 #define FS_COMMENTS 6
107 #define FS_MODTIME 11
109 #define FS_MODWITH 13
112 /* Get List Of Member queries. */
115 #define GLOM_ACTIVE 1
116 #define GLOM_PUBLIC 2
117 #define GLOM_HIDDEN 3
118 #define GLOM_MAILLIST 4
122 /* Kerberos/User Map */
125 #define KMAP_PRINCIPAL 1
128 /* General List information Queries, v3. */
146 /* List Member information queries. */
156 /* Machine information queries */
167 #define M_STAT_CHNG 8
170 #define M_OWNER_TYPE 11
171 #define M_OWNER_NAME 12
172 #define M_ACOMMENT 13
173 #define M_OCOMMENT 14
182 /* Machine to Cluster mapping */
184 #define MAP_MACHINE 0
185 #define MAP_CLUSTER 1
188 /* NFS phys. queries. */
196 #define NFS_MODTIME 6
198 #define NFS_MODWITH 8
201 /* Printer queries */
206 #define PRN_DUPLEXNAME 3
207 #define PRN_HOSTNAME 4
208 #define PRN_LOGHOST 5
215 #define PRN_LPC_ACL 12
216 #define PRN_BANNER 13
217 #define PRN_LOCATION 14
218 #define PRN_CONTACT 15
219 #define PRN_MODTIME 16
221 #define PRN_MODWITH 18
224 #define PRN_BANNER_NONE 0
225 #define PRN_BANNER_FIRST 1
226 #define PRN_BANNER_LAST 2
228 /* Print Server queries */
230 #define PRINTSERVER_HOST 0
231 #define PRINTSERVER_KIND 1
232 #define PRINTSERVER_TYPES 2
233 #define PRINTSERVER_OWNER_TYPE 3
234 #define PRINTSERVER_OWNER_NAME 4
235 #define PRINTSERVER_LPC_ACL 5
236 #define PRINTSERVER_MODTIME 6
237 #define PRINTSERVER_MODBY 7
238 #define PRINTSERVER_MODWITH 8
239 #define PRINTSERVER_END 9
241 /* PO box information queries */
255 #define Q_DIRECTORY 4
264 #define SVC_SERVICE 0
265 #define SVC_INTERVAL 1
269 #define SVC_DFCHECK 5
272 #define SVC_INPROGRESS 8
273 #define SVC_HARDERROR 9
274 #define SVC_ERRMSG 10
275 #define SVC_ACE_TYPE 11
276 #define SVC_ACE_NAME 12
277 #define SVC_MODTIME 13
279 #define SVC_MODWITH 15
282 /* Service add/update */
285 #define SC_INTERVAL 1
290 #define SC_ACE_TYPE 6
291 #define SC_ACE_NAME 7
294 /* Service/host tuples */
299 #define SH_OVERRIDE 3
301 #define SH_INPROGRESS 5
302 #define SH_HOSTERROR 6
305 #define SH_LASTSUCCESS 9
309 #define SH_MODTIME 13
311 #define SH_MODWITH 15
314 /* Service/host tuple add & updates */
316 #define SHI_SERVICE 0
317 #define SHI_MACHINE 1
333 #define SN_ACE_TYPE 7
334 #define SN_ACE_NAME 8
337 #define SN_MODWITH 11
340 /* User Information queries, v3 */
345 #define U_WINCONSOLESHELL 3
353 #define U_SIGNATURE 11
360 /* User states (the value of argv[U_STATE] from a user query) */
362 #define US_NO_LOGIN_YET 0
363 #define US_REGISTERED 1
364 #define US_NO_PASSWD 2
366 #define US_NOT_ALLOWED 4
367 #define US_ENROLLED 5
368 #define US_ENROLL_NOT_ALLOWED 6
369 #define US_HALF_ENROLLED 7
372 /* User shell queries */
378 /* Zephyr ACL queries */
381 #define ZA_XMT_TYPE 1
383 #define ZA_SUB_TYPE 3
385 #define ZA_IWS_TYPE 5
387 #define ZA_IUI_TYPE 7
391 #define ZA_MODWITH 11
396 /* Directories & files used on the server machine: */
398 #define MOIRA_DIR "/moira" /* home directory of the system */
399 #define BIN_DIR "/moira/bin" /* where progs live */
400 #define DCM_DIR "/moira/dcm" /* where DCM output files end up */
401 #define LOCK_DIR "/moira/dcm/locks" /* where DCM puts lock files */
403 #define CRITERRLOG "/moira/critical.log"
404 #define JOURNAL "/moira/journal"
405 #define REGJOURNAL "/moira/journal.reg"
406 #define NODCMFILE "/etc/nodcm" /* flag to inhibit DCM running */
407 #define MOIRA_MOTD_FILE "/etc/smsdown" /* make the server go to sleep */
410 /* If you have a uid between 32000 and 32767, Ultrix will give you a
411 * root shell. Oops. This define ought to stay around as long as there
412 * are any Athenized Ultrix machines around.
414 #define ULTRIX_ID_HOLE
417 #endif /* _moira_site_ */ /* Do not add anything after this line. */