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, v4. */
139 #define L_MAILMAN_SERVER 9
140 #define L_ACE_TYPE 10
141 #define L_ACE_NAME 11
142 #define L_MEMACE_TYPE 12
143 #define L_MEMACE_NAME 13
150 /* List Member information queries. */
160 /* Machine information queries */
169 #define M_BILL_CONTACT 6
170 #define M_ACCT_NUMBER 7
173 #define M_STAT_CHNG 10
176 #define M_OWNER_TYPE 13
177 #define M_OWNER_NAME 14
178 #define M_ACOMMENT 15
179 #define M_OCOMMENT 16
188 /* Machine to Cluster mapping */
190 #define MAP_MACHINE 0
191 #define MAP_CLUSTER 1
194 /* NFS phys. queries. */
202 #define NFS_MODTIME 6
204 #define NFS_MODWITH 8
207 /* Printer queries */
212 #define PRN_DUPLEXNAME 3
213 #define PRN_HOSTNAME 4
214 #define PRN_LOGHOST 5
221 #define PRN_LPC_ACL 12
222 #define PRN_BANNER 13
223 #define PRN_LOCATION 14
224 #define PRN_CONTACT 15
225 #define PRN_MODTIME 16
227 #define PRN_MODWITH 18
230 #define PRN_BANNER_NONE 0
231 #define PRN_BANNER_FIRST 1
232 #define PRN_BANNER_LAST 2
234 /* Print Server queries */
236 #define PRINTSERVER_HOST 0
237 #define PRINTSERVER_KIND 1
238 #define PRINTSERVER_TYPES 2
239 #define PRINTSERVER_OWNER_TYPE 3
240 #define PRINTSERVER_OWNER_NAME 4
241 #define PRINTSERVER_LPC_ACL 5
242 #define PRINTSERVER_MODTIME 6
243 #define PRINTSERVER_MODBY 7
244 #define PRINTSERVER_MODWITH 8
245 #define PRINTSERVER_END 9
247 /* PO box information queries */
261 #define Q_DIRECTORY 4
270 #define SVC_SERVICE 0
271 #define SVC_INTERVAL 1
275 #define SVC_DFCHECK 5
278 #define SVC_INPROGRESS 8
279 #define SVC_HARDERROR 9
280 #define SVC_ERRMSG 10
281 #define SVC_ACE_TYPE 11
282 #define SVC_ACE_NAME 12
283 #define SVC_MODTIME 13
285 #define SVC_MODWITH 15
288 /* Service add/update */
291 #define SC_INTERVAL 1
296 #define SC_ACE_TYPE 6
297 #define SC_ACE_NAME 7
300 /* Service/host tuples */
305 #define SH_OVERRIDE 3
307 #define SH_INPROGRESS 5
308 #define SH_HOSTERROR 6
311 #define SH_LASTSUCCESS 9
315 #define SH_MODTIME 13
317 #define SH_MODWITH 15
320 /* Service/host tuple add & updates */
322 #define SHI_SERVICE 0
323 #define SHI_MACHINE 1
336 #define SN_ACCT_NUMBER 4
342 #define SN_ACE_TYPE 10
343 #define SN_ACE_NAME 11
344 #define SN_MODTIME 12
346 #define SN_MODWITH 14
349 /* Subnet statuses */
350 #define SNET_STATUS_RESERVED 0
351 #define SNET_STATUS_BILLABLE 1
352 #define SNET_STATUS_PRIVATE_10MBPS 2
353 #define SNET_STATUS_PRIVATE_100MBPS 3
354 #define SNET_STATUS_PRIVATE_OTHER 4
355 #define SNET_STATUS_RESNET_DORM 5
356 #define SNET_STATUS_INFRASTRUCTURE 6
357 #define SNET_STATUS_PRIVATE_1000MBPS 7
358 #define SNET_STATUS_RESNET_FSILG 8
360 /* User Information queries, v11 */
365 #define U_WINCONSOLESHELL 3
373 #define U_SIGNATURE 11
375 #define U_WINHOMEDIR 13
376 #define U_WINPROFILEDIR 14
377 #define U_SPONSOR_TYPE 15
378 #define U_SPONSOR_NAME 16
379 #define U_EXPIRATION 17
387 /* User states (the value of argv[U_STATE] from a user query) */
389 #define US_NO_LOGIN_YET 0
390 #define US_REGISTERED 1
391 #define US_NO_PASSWD 2
393 #define US_NOT_ALLOWED 4
394 #define US_ENROLLED 5
395 #define US_ENROLL_NOT_ALLOWED 6
396 #define US_HALF_ENROLLED 7
397 #define US_NO_LOGIN_YET_KERBEROS_ONLY 8
398 #define US_REGISTERED_KERBEROS_ONLY 9
401 /* User shell queries */
407 /* Zephyr ACL queries */
410 #define ZA_XMT_TYPE 1
412 #define ZA_SUB_TYPE 3
414 #define ZA_IWS_TYPE 5
416 #define ZA_IUI_TYPE 7
418 #define ZA_OWNER_TYPE 9
419 #define ZA_OWNER_ID 10
420 #define ZA_MODTIME 11
422 #define ZA_MODWITH 13
425 /* Container queries */
429 #define CON_DESCRIPT 2
430 #define CON_LOCATION 3
431 #define CON_CONTACT 4
432 #define CON_OWNER_TYPE 5
433 #define CON_OWNER_NAME 6
434 #define CON_MEMACE_TYPE 7
435 #define CON_MEMACE_NAME 8
436 #define CON_MODTIME 9
438 #define CON_MODWITH 11
441 /* Directories & files used on the server machine: */
443 #define MOIRA_DIR "/moira" /* home directory of the system */
444 #define BIN_DIR "/moira/bin" /* where progs live */
445 #define DCM_DIR "/moira/dcm" /* where DCM output files end up */
446 #define LOCK_DIR "/moira/dcm/locks" /* where DCM puts lock files */
448 #define CRITERRLOG "/moira/critical.log"
449 #define JOURNAL "/moira/journal"
450 #define REGJOURNAL "/moira/journal.reg"
451 #define NODCMFILE "/etc/nodcm" /* flag to inhibit DCM running */
452 #define MOIRA_MOTD_FILE "/etc/smsdown" /* make the server go to sleep */
454 #endif /* _moira_site_ */ /* Do not add anything after this line. */