2 * This file contains all definitions that allow easy access to
3 * elements returned by most of the @i[SMS] 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[SMS] 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 SMS 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 */
55 /* Cluster information queries */
65 /* Cluster Data information queries */
72 /* Delete Member from list queries. */
85 #define F_HOME_PHONE 4
86 #define F_OFFICE_ADDR 5
87 #define F_OFFICE_PHONE 6
103 #define FS_COMMENTS 6
108 #define FS_MODTIME 11
110 #define FS_MODWITH 13
113 /* Get List Of Member queries. */
116 #define GLOM_ACTIVE 1
117 #define GLOM_PUBLIC 2
118 #define GLOM_HIDDEN 3
119 #define GLOM_MAILLIST 4
123 /* Kerberos/User Map */
126 #define KMAP_PRINCIPAL 1
129 /* General List information Queries. */
146 /* List Member information queries. */
153 /* Machine information queries */
162 /* Machine to Cluster mapping */
164 #define MAP_MACHINE 0
165 #define MAP_CLUSTER 1
168 /* NFS phys. queries. */
176 #define NFS_MODTIME 6
178 #define NFS_MODWITH 8
181 /* Printcap queries */
184 #define PCAP_SPOOL_HOST 1
185 #define PCAP_SPOOL_DIR 2
186 #define PCAP_RPRINTER 3
187 #define PCAP_COMMENTS 4
188 #define PCAP_MODTIME 5
190 #define PCAP_MODWITH 7
193 /* Palladium queries */
203 /* PO box infomarion queries */
215 #define Q_DIRECTORY 3
224 #define SVC_SERVICE 0
225 #define SVC_INTERVAL 1
229 #define SVC_DFCHECK 5
232 #define SVC_INPROGRESS 8
233 #define SVC_HARDERROR 9
234 #define SVC_ERRMSG 10
235 #define SVC_ACE_TYPE 11
236 #define SVC_ACE_NAME 12
237 #define SVC_MODTIME 13
239 #define SVC_MODWITH 15
242 /* Service add/update */
245 #define SC_INTERVAL 1
250 #define SC_ACE_TYPE 6
251 #define SC_ACE_NAME 7
254 /* Service/host tuples */
259 #define SH_OVERRIDE 3
261 #define SH_INPROGRESS 5
262 #define SH_HOSTERROR 6
265 #define SH_LASTSUCCESS 9
269 #define SH_MODTIME 13
271 #define SH_MODWITH 15
274 /* Service/host tuple add & updates */
276 #define SHI_SERVICE 0
277 #define SHI_MACHINE 1
284 /* User Information queries */
300 /* User states (the value of argv[U_STATE] from a user query) */
302 #define US_NO_LOGIN_YET 0
303 #define US_REGISTERED 1
304 #define US_NO_PASSWD 2
306 #define US_NOT_ALLOWED 4
307 #define US_ENROLLED 5
308 #define US_ENROLL_NOT_ALLOWED 6
311 /* User shell queries */
318 /* Directories & files used on the server machine: */
320 #define SMS_DIR "/u1/sms" /* home directory of the system */
321 #define BIN_DIR "/u1/sms/bin" /* where progs live */
322 #define DCM_DIR "/u1/sms/dcm" /* where DCM output files end up */
323 #define LOCK_DIR "/u1/sms/dcm/locks" /* where DCM puts lock files */
325 #define CRITERRLOG "/u1/sms/critical.log"
326 #define JOURNAL "/u1/sms/journal"
327 #define REGJOURNAL "/u1/sms/journal.reg"
328 #define NODCMFILE "/etc/nodcm" /* flag to inhibit DCM running */
329 #define SMS_MOTD_FILE "/etc/smsdown" /* make the server go to sleep */
332 #endif _sms_app_ /* Do not add anything after this line. */