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 SMS_SERVER "SMS.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 */
57 /* Cluster information queries */
67 /* Cluster Data information queries */
74 /* Delete Member from list queries. */
87 #define F_HOME_PHONE 4
88 #define F_OFFICE_ADDR 5
89 #define F_OFFICE_PHONE 6
105 #define FS_COMMENTS 6
110 #define FS_MODTIME 11
112 #define FS_MODWITH 13
115 /* Get List Of Member queries. */
118 #define GLOM_ACTIVE 1
119 #define GLOM_PUBLIC 2
120 #define GLOM_HIDDEN 3
121 #define GLOM_MAILLIST 4
125 /* Kerberos/User Map */
128 #define KMAP_PRINCIPAL 1
131 /* General List information Queries. */
148 /* List Member information queries. */
155 /* Machine information queries */
164 /* Machine to Cluster mapping */
166 #define MAP_MACHINE 0
167 #define MAP_CLUSTER 1
170 /* NFS phys. queries. */
178 #define NFS_MODTIME 6
180 #define NFS_MODWITH 8
183 /* Printcap queries */
186 #define PCAP_SPOOL_HOST 1
187 #define PCAP_SPOOL_DIR 2
188 #define PCAP_RPRINTER 3
189 #define PCAP_COMMENTS 4
190 #define PCAP_MODTIME 5
192 #define PCAP_MODWITH 7
195 /* Palladium queries */
205 /* PO box infomarion queries */
217 #define Q_DIRECTORY 3
226 #define SVC_SERVICE 0
227 #define SVC_INTERVAL 1
231 #define SVC_DFCHECK 5
234 #define SVC_INPROGRESS 8
235 #define SVC_HARDERROR 9
236 #define SVC_ERRMSG 10
237 #define SVC_ACE_TYPE 11
238 #define SVC_ACE_NAME 12
239 #define SVC_MODTIME 13
241 #define SVC_MODWITH 15
244 /* Service add/update */
247 #define SC_INTERVAL 1
252 #define SC_ACE_TYPE 6
253 #define SC_ACE_NAME 7
256 /* Service/host tuples */
261 #define SH_OVERRIDE 3
263 #define SH_INPROGRESS 5
264 #define SH_HOSTERROR 6
267 #define SH_LASTSUCCESS 9
271 #define SH_MODTIME 13
273 #define SH_MODWITH 15
276 /* Service/host tuple add & updates */
278 #define SHI_SERVICE 0
279 #define SHI_MACHINE 1
286 /* User Information queries */
302 /* User states (the value of argv[U_STATE] from a user query) */
304 #define US_NO_LOGIN_YET 0
305 #define US_REGISTERED 1
306 #define US_NO_PASSWD 2
308 #define US_NOT_ALLOWED 4
309 #define US_ENROLLED 5
310 #define US_ENROLL_NOT_ALLOWED 6
311 #define US_HALF_ENROLLED 7
314 /* User shell queries */
321 /* Directories & files used on the server machine: */
323 #define SMS_DIR "/u1/sms" /* home directory of the system */
324 #define BIN_DIR "/u1/sms/bin" /* where progs live */
325 #define DCM_DIR "/u1/sms/dcm" /* where DCM output files end up */
326 #define LOCK_DIR "/u1/sms/dcm/locks" /* where DCM puts lock files */
328 #define CRITERRLOG "/u1/sms/critical.log"
329 #define JOURNAL "/u1/sms/journal"
330 #define REGJOURNAL "/u1/sms/journal.reg"
331 #define NODCMFILE "/etc/nodcm" /* flag to inhibit DCM running */
332 #define SMS_MOTD_FILE "/etc/smsdown" /* make the server go to sleep */
335 #endif _sms_app_ /* Do not add anything after this line. */