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_BANNER 13
202 #define PRN_LOCATION 14
203 #define PRN_CONTACT 15
204 #define PRN_MODTIME 16
206 #define PRN_MODWITH 18
209 #define PRN_BANNER_NONE 0
210 #define PRN_BANNER_FIRST 1
211 #define PRN_BANNER_LAST 2
213 /* Print Server queries */
215 #define PRINTSERVER_HOST 0
216 #define PRINTSERVER_KIND 1
217 #define PRINTSERVER_TYPES 2
218 #define PRINTSERVER_OWNER_TYPE 3
219 #define PRINTSERVER_OWNER_NAME 4
220 #define PRINTSERVER_LPC_ACL 5
221 #define PRINTSERVER_MODTIME 6
222 #define PRINTSERVER_MODBY 7
223 #define PRINTSERVER_MODWITH 8
224 #define PRINTSERVER_END 9
226 /* PO box information queries */
240 #define Q_DIRECTORY 4
249 #define SVC_SERVICE 0
250 #define SVC_INTERVAL 1
254 #define SVC_DFCHECK 5
257 #define SVC_INPROGRESS 8
258 #define SVC_HARDERROR 9
259 #define SVC_ERRMSG 10
260 #define SVC_ACE_TYPE 11
261 #define SVC_ACE_NAME 12
262 #define SVC_MODTIME 13
264 #define SVC_MODWITH 15
267 /* Service add/update */
270 #define SC_INTERVAL 1
275 #define SC_ACE_TYPE 6
276 #define SC_ACE_NAME 7
279 /* Service/host tuples */
284 #define SH_OVERRIDE 3
286 #define SH_INPROGRESS 5
287 #define SH_HOSTERROR 6
290 #define SH_LASTSUCCESS 9
294 #define SH_MODTIME 13
296 #define SH_MODWITH 15
299 /* Service/host tuple add & updates */
301 #define SHI_SERVICE 0
302 #define SHI_MACHINE 1
318 #define SN_ACE_TYPE 7
319 #define SN_ACE_NAME 8
322 #define SN_MODWITH 11
325 /* User Information queries */
337 #define U_SIGNATURE 10
344 /* User states (the value of argv[U_STATE] from a user query) */
346 #define US_NO_LOGIN_YET 0
347 #define US_REGISTERED 1
348 #define US_NO_PASSWD 2
350 #define US_NOT_ALLOWED 4
351 #define US_ENROLLED 5
352 #define US_ENROLL_NOT_ALLOWED 6
353 #define US_HALF_ENROLLED 7
356 /* User shell queries */
362 /* MITdir pref bits */
364 #define DIRFLAGS_SUPPRESS 1
365 #define DIRFLAGS_NONLOCAL 2
367 /* Zehpyr ACL queries */
370 #define ZA_XMT_TYPE 1
372 #define ZA_SUB_TYPE 3
374 #define ZA_IWS_TYPE 5
376 #define ZA_IUI_TYPE 7
380 #define ZA_MODWITH 11
385 /* Directories & files used on the server machine: */
387 #define MOIRA_DIR "/moira" /* home directory of the system */
388 #define BIN_DIR "/moira/bin" /* where progs live */
389 #define DCM_DIR "/moira/dcm" /* where DCM output files end up */
390 #define LOCK_DIR "/moira/dcm/locks" /* where DCM puts lock files */
392 #define CRITERRLOG "/moira/critical.log"
393 #define JOURNAL "/moira/journal"
394 #define REGJOURNAL "/moira/journal.reg"
395 #define NODCMFILE "/etc/nodcm" /* flag to inhibit DCM running */
396 #define MOIRA_MOTD_FILE "/etc/smsdown" /* make the server go to sleep */
399 /* If you have a uid between 32000 and 32767, Ultrix will give you a
400 * root shell. Oops. This define ought to stay around as long as there
401 * are any Athenized Ultrix machines around.
403 #define ULTRIX_ID_HOLE
406 #endif /* _moira_site_ */ /* Do not add anything after this line. */