X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/875f50fb046183cea69ef8bc4bd35a9f5fe8a208..fc2f4a27ed42bcff7c3c5ce00573210110b45b21:/include/moira_site.h diff --git a/include/moira_site.h b/include/moira_site.h index 23cd7f95..2575cf2c 100644 --- a/include/moira_site.h +++ b/include/moira_site.h @@ -1,8 +1,9 @@ /* * This file contains all definitions that allow easy access to - * elements returned by most of the @i[SMS] queries. + * 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[SMS] queries change (again) + * 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 * and all should be well, (hopefully :-). * @@ -19,13 +20,14 @@ * see the file mit-copyright.h */ -#ifndef _sms_app_ -#define _sms_app_ +#ifndef _moira_site_ +#define _moira_site_ #include "mit-copyright.h" -/* Default SMS server to connect to */ -#define SMS_SERVER "SMS.MIT.EDU:sms_db" +/* Default Moira server to connect to */ +#define MOIRA_SERVER "MOIRA.MIT.EDU:sms_db" + #define NAME 0 @@ -66,7 +68,23 @@ #define DM_MEMBER 2 #define DM_END 3 -/* Filesys queries (attachmaint) */ +/* Finger queries */ + +#define F_NAME 0 +#define F_FULLNAME 1 +#define F_NICKNAME 2 +#define F_HOME_ADDR 3 +#define F_HOME_PHONE 4 +#define F_OFFICE_ADDR 5 +#define F_OFFICE_PHONE 6 +#define F_MIT_DEPT 7 +#define F_MIT_AFFIL 8 +#define F_MODTIME 9 +#define F_MODBY 10 +#define F_MODWITH 11 +#define F_END 12 + +/* Filesys queries */ #define FS_NAME 0 #define FS_TYPE 1 @@ -94,6 +112,12 @@ #define GLOM_GROUP 5 #define GLOM_END 6 +/* Kerberos/User Map */ + +#define KMAP_USER 0 +#define KMAP_PRINCIPAL 1 +#define KMAP_END 2 + /* General List information Queries. */ #define L_NAME 0 @@ -120,12 +144,29 @@ /* 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 */ @@ -146,6 +187,31 @@ #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 */ #define PO_NAME 0 @@ -156,40 +222,18 @@ /* Quota queries */ #define Q_FILESYS 0 -#define Q_LOGIN 1 -#define Q_QUOTA 2 -#define Q_DIRECTORY 3 -#define Q_MACHINE 4 -#define Q_MODTIME 5 -#define Q_MODBY 6 -#define Q_MODWITH 7 -#define Q_END 8 - -/* User Information queries */ - -#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 - -/* User states (the value of argv[U_STATE] from a user query) */ -#define US_NO_LOGIN_YET 0 -#define US_REGISTERED 1 -#define US_NO_PASSWD 2 -#define US_DELETED 3 -#define US_NOT_ALLOWED 4 -#define US_END 5 +#define Q_TYPE 1 +#define Q_NAME 2 +#define Q_QUOTA 3 +#define Q_DIRECTORY 4 +#define Q_MACHINE 5 +#define Q_MODTIME 6 +#define Q_MODBY 7 +#define Q_MODWITH 8 +#define Q_END 9 /* Service info */ + #define SVC_SERVICE 0 #define SVC_INTERVAL 1 #define SVC_TARGET 2 @@ -209,6 +253,7 @@ #define SVC_END 16 /* Service add/update */ + #define SC_SERVICE 0 #define SC_INTERVAL 1 #define SC_TARGET 2 @@ -220,6 +265,7 @@ #define SC_END 8 /* Service/host tuples */ + #define SH_SERVICE 0 #define SH_MACHINE 1 #define SH_ENABLE 2 @@ -239,6 +285,7 @@ #define SH_END 16 /* Service/host tuple add & updates */ + #define SHI_SERVICE 0 #define SHI_MACHINE 1 #define SHI_ENABLE 2 @@ -247,4 +294,89 @@ #define SHI_VALUE3 5 #define SHI_END 6 -#endif _sms_app_ /* Do not add anything after this line. */ +/* 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 */ + +#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_COMMENT 9 +#define U_SIGNATURE 10 +#define U_SECURE 11 +#define U_MODTIME 12 +#define U_MODBY 13 +#define U_MODWITH 14 +#define U_END 15 + +/* User states (the value of argv[U_STATE] from a user query) */ + +#define US_NO_LOGIN_YET 0 +#define US_REGISTERED 1 +#define US_NO_PASSWD 2 +#define US_DELETED 3 +#define US_NOT_ALLOWED 4 +#define US_ENROLLED 5 +#define US_ENROLL_NOT_ALLOWED 6 +#define US_HALF_ENROLLED 7 +#define US_END 8 + +/* User shell queries */ + +#define USH_NAME 0 +#define USH_SHELL 1 +#define USH_END 2 + +/* Zehpyr ACL queries */ + +#define ZA_CLASS 0 +#define ZA_XMT_TYPE 1 +#define ZA_XMT_ID 2 +#define ZA_SUB_TYPE 3 +#define ZA_SUB_ID 4 +#define ZA_IWS_TYPE 5 +#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 + + + +/* Directories & files used on the server machine: */ + +#define SMS_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 */ + +#define CRITERRLOG "/moira/critical.log" +#define JOURNAL "/moira/journal" +#define REGJOURNAL "/moira/journal.reg" +#define NODCMFILE "/etc/nodcm" /* flag to inhibit DCM running */ +#define MOIRA_MOTD_FILE "/etc/smsdown" /* make the server go to sleep */ + + +#endif /* _moira_site_ */ /* Do not add anything after this line. */