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"
43 /* Cluster information queries */
53 /* Cluster Data information queries */
60 /* Delete Member from list queries. */
73 #define F_HOME_PHONE 4
74 #define F_OFFICE_ADDR 5
75 #define F_OFFICE_PHONE 6
101 /* Get List Of Member queries. */
104 #define GLOM_ACTIVE 1
105 #define GLOM_PUBLIC 2
106 #define GLOM_HIDDEN 3
107 #define GLOM_MAILLIST 4
111 /* Kerberos/User Map */
114 #define KMAP_PRINCIPAL 1
117 /* General List information Queries. */
134 /* List Member information queries. */
141 /* Machine information queries */
152 #define M_STAT_CHNG 8
155 #define M_OWNER_TYPE 11
156 #define M_OWNER_NAME 12
157 #define M_ACOMMENT 13
158 #define M_OCOMMENT 14
167 /* Machine to Cluster mapping */
169 #define MAP_MACHINE 0
170 #define MAP_CLUSTER 1
173 /* NFS phys. queries. */
181 #define NFS_MODTIME 6
183 #define NFS_MODWITH 8
186 /* Printcap queries */
189 #define PCAP_SPOOL_HOST 1
190 #define PCAP_SPOOL_DIR 2
191 #define PCAP_RPRINTER 3
192 #define PCAP_QSERVER 4
195 #define PCAP_COMMENTS 7
196 #define PCAP_MODTIME 8
198 #define PCAP_MODWITH 10
201 /* Palladium queries */
211 /* PO box infomarion queries */
224 #define Q_DIRECTORY 4
233 #define SVC_SERVICE 0
234 #define SVC_INTERVAL 1
238 #define SVC_DFCHECK 5
241 #define SVC_INPROGRESS 8
242 #define SVC_HARDERROR 9
243 #define SVC_ERRMSG 10
244 #define SVC_ACE_TYPE 11
245 #define SVC_ACE_NAME 12
246 #define SVC_MODTIME 13
248 #define SVC_MODWITH 15
251 /* Service add/update */
254 #define SC_INTERVAL 1
259 #define SC_ACE_TYPE 6
260 #define SC_ACE_NAME 7
263 /* Service/host tuples */
268 #define SH_OVERRIDE 3
270 #define SH_INPROGRESS 5
271 #define SH_HOSTERROR 6
274 #define SH_LASTSUCCESS 9
278 #define SH_MODTIME 13
280 #define SH_MODWITH 15
283 /* Service/host tuple add & updates */
285 #define SHI_SERVICE 0
286 #define SHI_MACHINE 1
302 #define SN_ACE_TYPE 7
303 #define SN_ACE_NAME 8
306 #define SN_MODWITH 11
309 /* User Information queries */
321 #define U_SIGNATURE 10
328 /* User states (the value of argv[U_STATE] from a user query) */
330 #define US_NO_LOGIN_YET 0
331 #define US_REGISTERED 1
332 #define US_NO_PASSWD 2
334 #define US_NOT_ALLOWED 4
335 #define US_ENROLLED 5
336 #define US_ENROLL_NOT_ALLOWED 6
337 #define US_HALF_ENROLLED 7
340 /* User shell queries */
346 /* MITdir pref bits */
348 #define DIRFLAGS_SUPPRESS 1
349 #define DIRFLAGS_NONLOCAL 2
351 /* Zehpyr ACL queries */
354 #define ZA_XMT_TYPE 1
356 #define ZA_SUB_TYPE 3
358 #define ZA_IWS_TYPE 5
360 #define ZA_IUI_TYPE 7
364 #define ZA_MODWITH 11
369 /* Directories & files used on the server machine: */
371 #define MOIRA_DIR "/moira" /* home directory of the system */
372 #define BIN_DIR "/moira/bin" /* where progs live */
373 #define DCM_DIR "/moira/dcm" /* where DCM output files end up */
374 #define LOCK_DIR "/moira/dcm/locks" /* where DCM puts lock files */
376 #define CRITERRLOG "/moira/critical.log"
377 #define JOURNAL "/moira/journal"
378 #define REGJOURNAL "/moira/journal.reg"
379 #define NODCMFILE "/etc/nodcm" /* flag to inhibit DCM running */
380 #define MOIRA_MOTD_FILE "/etc/smsdown" /* make the server go to sleep */
383 #endif /* _moira_site_ */ /* Do not add anything after this line. */