2 * This file contains all definitions that allow easy access to
3 * elements returned by most of the @i[Moira] queries. It also defines
4 * the default server location and the directories used on the server.
6 * If the order of the arguments in the @i[Moira] queries change (again)
7 * then all that needs to be changed are the values of these items
8 * and all should be well, (hopefully :-).
10 * Chris D. Peterson - kit@athena
17 * Copyright 1988 by the Massachusetts Institute of Technology.
19 * For further information on copyright and distribution
20 * see the file mit-copyright.h
26 #include "mit-copyright.h"
28 /* Default Moira server to connect to */
29 #define MOIRA_SERVER "MOIRA.MIT.EDU:sms_db"
31 /* Compile-time options: */
32 /* used hesiod looking up Moira server name */
34 /* log errors via zephyr */
36 /* log errors via syslog */
38 /* Athena local hacks -- other sites probably don't want this */
40 /* Ingres version number */
59 /* Cluster information queries */
69 /* Cluster Data information queries */
76 /* Delete Member from list queries. */
89 #define F_HOME_PHONE 4
90 #define F_OFFICE_ADDR 5
91 #define F_OFFICE_PHONE 6
107 #define FS_COMMENTS 6
112 #define FS_MODTIME 11
114 #define FS_MODWITH 13
117 /* Get List Of Member queries. */
120 #define GLOM_ACTIVE 1
121 #define GLOM_PUBLIC 2
122 #define GLOM_HIDDEN 3
123 #define GLOM_MAILLIST 4
127 /* Kerberos/User Map */
130 #define KMAP_PRINCIPAL 1
133 /* General List information Queries. */
150 /* List Member information queries. */
157 /* Machine information queries */
166 /* Machine to Cluster mapping */
168 #define MAP_MACHINE 0
169 #define MAP_CLUSTER 1
172 /* NFS phys. queries. */
180 #define NFS_MODTIME 6
182 #define NFS_MODWITH 8
185 /* Printcap queries */
188 #define PCAP_SPOOL_HOST 1
189 #define PCAP_SPOOL_DIR 2
190 #define PCAP_RPRINTER 3
191 #define PCAP_QSERVER 4
194 #define PCAP_COMMENTS 7
195 #define PCAP_MODTIME 8
197 #define PCAP_MODWITH 10
200 /* Palladium queries */
210 /* PO box infomarion queries */
223 #define Q_DIRECTORY 4
232 #define SVC_SERVICE 0
233 #define SVC_INTERVAL 1
237 #define SVC_DFCHECK 5
240 #define SVC_INPROGRESS 8
241 #define SVC_HARDERROR 9
242 #define SVC_ERRMSG 10
243 #define SVC_ACE_TYPE 11
244 #define SVC_ACE_NAME 12
245 #define SVC_MODTIME 13
247 #define SVC_MODWITH 15
250 /* Service add/update */
253 #define SC_INTERVAL 1
258 #define SC_ACE_TYPE 6
259 #define SC_ACE_NAME 7
262 /* Service/host tuples */
267 #define SH_OVERRIDE 3
269 #define SH_INPROGRESS 5
270 #define SH_HOSTERROR 6
273 #define SH_LASTSUCCESS 9
277 #define SH_MODTIME 13
279 #define SH_MODWITH 15
282 /* Service/host tuple add & updates */
284 #define SHI_SERVICE 0
285 #define SHI_MACHINE 1
292 /* User Information queries */
308 /* User states (the value of argv[U_STATE] from a user query) */
310 #define US_NO_LOGIN_YET 0
311 #define US_REGISTERED 1
312 #define US_NO_PASSWD 2
314 #define US_NOT_ALLOWED 4
315 #define US_ENROLLED 5
316 #define US_ENROLL_NOT_ALLOWED 6
317 #define US_HALF_ENROLLED 7
320 /* User shell queries */
327 /* Directories & files used on the server machine: */
329 #define SMS_DIR "/u1/sms" /* home directory of the system */
330 #define BIN_DIR "/u1/sms/bin" /* where progs live */
331 #define DCM_DIR "/u1/sms/dcm" /* where DCM output files end up */
332 #define LOCK_DIR "/u1/sms/dcm/locks" /* where DCM puts lock files */
334 #define CRITERRLOG "/u1/sms/critical.log"
335 #define JOURNAL "/u1/sms/journal"
336 #define REGJOURNAL "/u1/sms/journal.reg"
337 #define NODCMFILE "/etc/nodcm" /* flag to inhibit DCM running */
338 #define MOIRA_MOTD_FILE "/etc/smsdown" /* make the server go to sleep */
341 #endif _moira_site_ /* Do not add anything after this line. */