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 /* Printer queries */
191 #define PRN_DUPLEXNAME 3
192 #define PRN_HOSTNAME 4
193 #define PRN_LOGHOST 5
200 #define PRN_LPC_ACL 12
201 #define PRN_LOCATION 13
202 #define PRN_CONTACT 14
203 #define PRN_MODTIME 15
205 #define PRN_MODWITH 17
208 /* PO box information queries */
221 #define Q_DIRECTORY 4
230 #define SVC_SERVICE 0
231 #define SVC_INTERVAL 1
235 #define SVC_DFCHECK 5
238 #define SVC_INPROGRESS 8
239 #define SVC_HARDERROR 9
240 #define SVC_ERRMSG 10
241 #define SVC_ACE_TYPE 11
242 #define SVC_ACE_NAME 12
243 #define SVC_MODTIME 13
245 #define SVC_MODWITH 15
248 /* Service add/update */
251 #define SC_INTERVAL 1
256 #define SC_ACE_TYPE 6
257 #define SC_ACE_NAME 7
260 /* Service/host tuples */
265 #define SH_OVERRIDE 3
267 #define SH_INPROGRESS 5
268 #define SH_HOSTERROR 6
271 #define SH_LASTSUCCESS 9
275 #define SH_MODTIME 13
277 #define SH_MODWITH 15
280 /* Service/host tuple add & updates */
282 #define SHI_SERVICE 0
283 #define SHI_MACHINE 1
299 #define SN_ACE_TYPE 7
300 #define SN_ACE_NAME 8
303 #define SN_MODWITH 11
306 /* User Information queries */
318 #define U_SIGNATURE 10
325 /* User states (the value of argv[U_STATE] from a user query) */
327 #define US_NO_LOGIN_YET 0
328 #define US_REGISTERED 1
329 #define US_NO_PASSWD 2
331 #define US_NOT_ALLOWED 4
332 #define US_ENROLLED 5
333 #define US_ENROLL_NOT_ALLOWED 6
334 #define US_HALF_ENROLLED 7
337 /* User shell queries */
343 /* MITdir pref bits */
345 #define DIRFLAGS_SUPPRESS 1
346 #define DIRFLAGS_NONLOCAL 2
348 /* Zehpyr ACL queries */
351 #define ZA_XMT_TYPE 1
353 #define ZA_SUB_TYPE 3
355 #define ZA_IWS_TYPE 5
357 #define ZA_IUI_TYPE 7
361 #define ZA_MODWITH 11
366 /* Directories & files used on the server machine: */
368 #define MOIRA_DIR "/moira" /* home directory of the system */
369 #define BIN_DIR "/moira/bin" /* where progs live */
370 #define DCM_DIR "/moira/dcm" /* where DCM output files end up */
371 #define LOCK_DIR "/moira/dcm/locks" /* where DCM puts lock files */
373 #define CRITERRLOG "/moira/critical.log"
374 #define JOURNAL "/moira/journal"
375 #define REGJOURNAL "/moira/journal.reg"
376 #define NODCMFILE "/etc/nodcm" /* flag to inhibit DCM running */
377 #define MOIRA_MOTD_FILE "/etc/smsdown" /* make the server go to sleep */
380 #endif /* _moira_site_ */ /* Do not add anything after this line. */