X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/ef073d27a9803a3c5b5a5efb6272196c0e058354..04479b85a0622e6007aa1f5ba54ce567e3e28f43:/include/moira_site.h diff --git a/include/moira_site.h b/include/moira_site.h index 9912cfe5..7fe74a59 100644 --- a/include/moira_site.h +++ b/include/moira_site.h @@ -1,23 +1,19 @@ -/* - * This file contains all definitions that allow easy access to +/* $Id$ + * + * This file contains all definitions that allow easy access to * elements returned by most of the @i[Moira] queries. It also defines * the default server location and the directories used on the server. * * If the order of the arguments in the @i[Moira] queries change (again) - * then all that needs to be changed are the values of these items + * then all that needs to be changed are the values of these items * and all should be well, (hopefully :-). * * Chris D. Peterson - kit@athena * 7/27/88 * - * $Source$ - * $Author$ - * $Header$ - * - * Copyright 1988 by the Massachusetts Institute of Technology. - * - * For further information on copyright and distribution - * see the file mit-copyright.h + * Copyright (C) 1988-1998 by the Massachusetts Institute of Technology. + * For further information on copyright and distribution + * see the file . */ #ifndef _moira_site_ @@ -26,19 +22,7 @@ #include "mit-copyright.h" /* Default Moira server to connect to */ -#define MOIRA_SERVER "MOIRA.MIT.EDU:sms_db" - -/* Compile-time options: */ -/* used hesiod looking up Moira server name */ -#define HESIOD -/* log errors via zephyr */ -#define ZEPHYR -/* log errors via syslog */ -/* #define SYSLOG */ -/* Athena local hacks -- other sites probably don't want this */ -#define ATHENA -/* Ingres version number */ -#define INGRESVER 5 +#define MOIRA_SERVER "MOIRA.MIT.EDU:moira_db" #define NAME 0 @@ -49,7 +33,18 @@ #define ACE_NAME 1 #define ACE_END 2 -/* alias queries. */ +/* acl queries */ + +#define ACL_HOST 0 +#define ACL_TARGET 1 +#define ACL_KIND 2 +#define ACL_LIST 3 +#define ACL_MODTIME 4 +#define ACL_MODBY 5 +#define ACL_MODWITH 6 +#define ACL_END 7 + +/* alias queries */ #define ALIAS_NAME 0 #define ALIAS_TYPE 1 @@ -130,7 +125,7 @@ #define KMAP_PRINCIPAL 1 #define KMAP_END 2 -/* General List information Queries. */ +/* General List information Queries, v4. */ #define L_NAME 0 #define L_ACTIVE 1 @@ -139,13 +134,16 @@ #define L_MAILLIST 4 #define L_GROUP 5 #define L_GID 6 -#define L_ACE_TYPE 7 -#define L_ACE_NAME 8 -#define L_DESC 9 -#define L_MODTIME 10 -#define L_MODBY 11 -#define L_MODWITH 12 -#define L_END 13 +#define L_NFSGROUP 7 +#define L_ACE_TYPE 8 +#define L_ACE_NAME 9 +#define L_MEMACE_TYPE 10 +#define L_MEMACE_NAME 11 +#define L_DESC 12 +#define L_MODTIME 13 +#define L_MODBY 14 +#define L_MODWITH 15 +#define L_END 16 /* List Member information queries. */ @@ -154,14 +152,34 @@ #define LM_MEMBER 2 #define LM_END 3 +#define LM_TAG 3 +#define LM_TAG_END 4 + /* Machine information queries */ -#define M_NAME 0 -#define M_TYPE 1 -#define M_MODTIME 2 -#define M_MODBY 3 -#define M_MODWITH 4 -#define M_END 5 +#define M_NAME 0 +#define M_VENDOR 1 +#define M_TYPE 1 +#define M_MODEL 2 +#define M_OS 3 +#define M_LOC 4 +#define M_CONTACT 5 +#define M_USE 6 +#define M_STAT 7 +#define M_STAT_CHNG 8 +#define M_SUBNET 9 +#define M_ADDR 10 +#define M_OWNER_TYPE 11 +#define M_OWNER_NAME 12 +#define M_ACOMMENT 13 +#define M_OCOMMENT 14 +#define M_CREATED 15 +#define M_CREATOR 16 +#define M_INUSE 17 +#define M_MODTIME 18 +#define M_MODBY 19 +#define M_MODWITH 20 +#define M_END 21 /* Machine to Cluster mapping */ @@ -182,44 +200,60 @@ #define NFS_MODWITH 8 #define NFS_END 9 -/* Printcap queries */ - -#define PCAP_NAME 0 -#define PCAP_SPOOL_HOST 1 -#define PCAP_SPOOL_DIR 2 -#define PCAP_RPRINTER 3 -#define PCAP_QSERVER 4 -#define PCAP_AUTH 5 -#define PCAP_PRICE 6 -#define PCAP_COMMENTS 7 -#define PCAP_MODTIME 8 -#define PCAP_MODBY 9 -#define PCAP_MODWITH 10 -#define PCAP_END 11 - -/* Palladium queries */ - -#define PD_NAME 0 -#define PD_IDENT 1 -#define PD_HOST 2 -#define PD_MODTIME 3 -#define PD_MODBY 4 -#define PD_MODWITH 5 -#define PD_END 6 - -/* PO box infomarion queries */ +/* Printer queries */ + +#define PRN_NAME 0 +#define PRN_TYPE 1 +#define PRN_HWTYPE 2 +#define PRN_DUPLEXNAME 3 +#define PRN_HOSTNAME 4 +#define PRN_LOGHOST 5 +#define PRN_RM 6 +#define PRN_RP 7 +#define PRN_RQ 8 +#define PRN_KA 9 +#define PRN_PC 10 +#define PRN_AC 11 +#define PRN_LPC_ACL 12 +#define PRN_BANNER 13 +#define PRN_LOCATION 14 +#define PRN_CONTACT 15 +#define PRN_MODTIME 16 +#define PRN_MODBY 17 +#define PRN_MODWITH 18 +#define PRN_END 19 + +#define PRN_BANNER_NONE 0 +#define PRN_BANNER_FIRST 1 +#define PRN_BANNER_LAST 2 + +/* Print Server queries */ + +#define PRINTSERVER_HOST 0 +#define PRINTSERVER_KIND 1 +#define PRINTSERVER_TYPES 2 +#define PRINTSERVER_OWNER_TYPE 3 +#define PRINTSERVER_OWNER_NAME 4 +#define PRINTSERVER_LPC_ACL 5 +#define PRINTSERVER_MODTIME 6 +#define PRINTSERVER_MODBY 7 +#define PRINTSERVER_MODWITH 8 +#define PRINTSERVER_END 9 + +/* PO box information queries */ #define PO_NAME 0 #define PO_TYPE 1 #define PO_BOX 2 -#define PO_END 3 +#define PO_ADDR 3 +#define PO_END 4 /* Quota queries */ #define Q_FILESYS 0 #define Q_TYPE 1 #define Q_NAME 2 -#define Q_QUOTA 3 +#define Q_QUOTA 3 #define Q_DIRECTORY 4 #define Q_MACHINE 5 #define Q_MODTIME 6 @@ -289,21 +323,41 @@ #define SHI_VALUE3 5 #define SHI_END 6 -/* User Information queries */ +/* Subnet info */ + +#define SN_NAME 0 +#define SN_DESC 1 +#define SN_ADDRESS 2 +#define SN_MASK 3 +#define SN_LOW 4 +#define SN_HIGH 5 +#define SN_PREFIX 6 +#define SN_ACE_TYPE 7 +#define SN_ACE_NAME 8 +#define SN_MODTIME 9 +#define SN_MODBY 10 +#define SN_MODWITH 11 +#define SN_END 12 + +/* User Information queries, v3 */ #define U_NAME 0 #define U_UID 1 #define U_SHELL 2 -#define U_LAST 3 -#define U_FIRST 4 -#define U_MIDDLE 5 -#define U_STATE 6 -#define U_MITID 7 -#define U_CLASS 8 -#define U_MODTIME 9 -#define U_MODBY 10 -#define U_MODWITH 11 -#define U_END 12 +#define U_WINCONSOLESHELL 3 +#define U_LAST 4 +#define U_FIRST 5 +#define U_MIDDLE 6 +#define U_STATE 7 +#define U_MITID 8 +#define U_CLASS 9 +#define U_COMMENT 10 +#define U_SIGNATURE 11 +#define U_SECURE 12 +#define U_MODTIME 13 +#define U_MODBY 14 +#define U_MODWITH 15 +#define U_END 16 /* User states (the value of argv[U_STATE] from a user query) */ @@ -323,7 +377,7 @@ #define USH_SHELL 1 #define USH_END 2 -/* Zehpyr ACL queries */ +/* Zephyr ACL queries */ #define ZA_CLASS 0 #define ZA_XMT_TYPE 1 @@ -334,16 +388,18 @@ #define ZA_IWS_ID 6 #define ZA_IUI_TYPE 7 #define ZA_IUI_ID 8 -#define ZA_MODTIME 9 -#define ZA_MODBY 10 -#define ZA_MODWITH 11 -#define ZA_END 12 +#define ZA_OWNER_TYPE 9 +#define ZA_OWNER_ID 10 +#define ZA_MODTIME 11 +#define ZA_MODBY 12 +#define ZA_MODWITH 13 +#define ZA_END 14 /* Directories & files used on the server machine: */ -#define SMS_DIR "/moira" /* home directory of the system */ +#define MOIRA_DIR "/moira" /* home directory of the system */ #define BIN_DIR "/moira/bin" /* where progs live */ #define DCM_DIR "/moira/dcm" /* where DCM output files end up */ #define LOCK_DIR "/moira/dcm/locks" /* where DCM puts lock files */ @@ -355,4 +411,11 @@ #define MOIRA_MOTD_FILE "/etc/smsdown" /* make the server go to sleep */ -#endif _moira_site_ /* Do not add anything after this line. */ +/* If you have a uid between 32000 and 32767, Ultrix will give you a + * root shell. Oops. This define ought to stay around as long as there + * are any Athenized Ultrix machines around. + */ +#define ULTRIX_ID_HOLE + + +#endif /* _moira_site_ */ /* Do not add anything after this line. */