]> andersk Git - moira.git/blobdiff - include/moira_site.h
punt configuration now done via Imake
[moira.git] / include / moira_site.h
index ca695d4873e46b91787035c692d2131a7e80a502..5e7b49ef2cbff55ded995ca2385024e2f4693c25 100644 (file)
@@ -1,9 +1,9 @@
 /*
  * This file contains all definitions that allow easy access to 
- * elements returned by most of the @i[SMS] queries.  It also defines
+ * 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 :-).
  *
  *     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"
-
-/* 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
+/* Default Moira server to connect to */
+#define MOIRA_SERVER   "MOIRA.MIT.EDU:sms_db"
 
 
 #define NAME 0
 #define PCAP_SPOOL_HOST        1
 #define PCAP_SPOOL_DIR 2
 #define PCAP_RPRINTER  3
-#define PCAP_COMMENTS  4
-#define PCAP_MODTIME   5
-#define PCAP_MODBY     6
-#define PCAP_MODWITH   7
-#define PCAP_END       8
+#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 */
 
 /* 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
+#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 US_NOT_ALLOWED  4
 #define US_ENROLLED    5
 #define US_ENROLL_NOT_ALLOWED 6
-#define US_END          7
+#define US_HALF_ENROLLED 7
+#define US_END          8
 
 /* User shell queries */
 
 #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                "/u1/sms"       /* home directory of the system */
-#define BIN_DIR                "/u1/sms/bin"   /* where progs live */
-#define DCM_DIR                "/u1/sms/dcm"   /* where DCM output files end up */
-#define LOCK_DIR       "/u1/sms/dcm/locks" /* where DCM puts lock files */
+#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     "/u1/sms/critical.log"
-#define JOURNAL                "/u1/sms/journal"
-#define REGJOURNAL     "/u1/sms/journal.reg"
+#define CRITERRLOG     "/moira/critical.log"
+#define JOURNAL                "/moira/journal"
+#define REGJOURNAL     "/moira/journal.reg"
 #define NODCMFILE      "/etc/nodcm"    /* flag to inhibit DCM running */
-#define SMS_MOTD_FILE  "/etc/smsdown"  /* make the server go to sleep */
+#define MOIRA_MOTD_FILE        "/etc/smsdown"  /* make the server go to sleep */
 
 
-#endif _sms_app_               /* Do not add anything after this line. */
+#endif /* _moira_site_ */           /* Do not add anything after this line. */
This page took 0.330091 seconds and 4 git commands to generate.