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 */
239 #define Q_DIRECTORY 4
248 #define SVC_SERVICE 0
249 #define SVC_INTERVAL 1
253 #define SVC_DFCHECK 5
256 #define SVC_INPROGRESS 8
257 #define SVC_HARDERROR 9
258 #define SVC_ERRMSG 10
259 #define SVC_ACE_TYPE 11
260 #define SVC_ACE_NAME 12
261 #define SVC_MODTIME 13
263 #define SVC_MODWITH 15
266 /* Service add/update */
269 #define SC_INTERVAL 1
274 #define SC_ACE_TYPE 6
275 #define SC_ACE_NAME 7
278 /* Service/host tuples */
283 #define SH_OVERRIDE 3
285 #define SH_INPROGRESS 5
286 #define SH_HOSTERROR 6
289 #define SH_LASTSUCCESS 9
293 #define SH_MODTIME 13
295 #define SH_MODWITH 15
298 /* Service/host tuple add & updates */
300 #define SHI_SERVICE 0
301 #define SHI_MACHINE 1
317 #define SN_ACE_TYPE 7
318 #define SN_ACE_NAME 8
321 #define SN_MODWITH 11
324 /* User Information queries */
336 #define U_SIGNATURE 10
343 /* User states (the value of argv[U_STATE] from a user query) */
345 #define US_NO_LOGIN_YET 0
346 #define US_REGISTERED 1
347 #define US_NO_PASSWD 2
349 #define US_NOT_ALLOWED 4
350 #define US_ENROLLED 5
351 #define US_ENROLL_NOT_ALLOWED 6
352 #define US_HALF_ENROLLED 7
355 /* User shell queries */
361 /* MITdir pref bits */
363 #define DIRFLAGS_SUPPRESS 1
364 #define DIRFLAGS_NONLOCAL 2
366 /* Zehpyr ACL queries */
369 #define ZA_XMT_TYPE 1
371 #define ZA_SUB_TYPE 3
373 #define ZA_IWS_TYPE 5
375 #define ZA_IUI_TYPE 7
379 #define ZA_MODWITH 11
384 /* Directories & files used on the server machine: */
386 #define MOIRA_DIR "/moira" /* home directory of the system */
387 #define BIN_DIR "/moira/bin" /* where progs live */
388 #define DCM_DIR "/moira/dcm" /* where DCM output files end up */
389 #define LOCK_DIR "/moira/dcm/locks" /* where DCM puts lock files */
391 #define CRITERRLOG "/moira/critical.log"
392 #define JOURNAL "/moira/journal"
393 #define REGJOURNAL "/moira/journal.reg"
394 #define NODCMFILE "/etc/nodcm" /* flag to inhibit DCM running */
395 #define MOIRA_MOTD_FILE "/etc/smsdown" /* make the server go to sleep */
398 #endif /* _moira_site_ */ /* Do not add anything after this line. */