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"
46 /* Cluster information queries */
56 /* Cluster Data information queries */
63 /* Delete Member from list queries. */
76 #define F_HOME_PHONE 4
77 #define F_OFFICE_ADDR 5
78 #define F_OFFICE_PHONE 6
101 #define FS_MODWITH 13
104 /* Get List Of Member queries. */
107 #define GLOM_ACTIVE 1
108 #define GLOM_PUBLIC 2
109 #define GLOM_HIDDEN 3
110 #define GLOM_MAILLIST 4
114 /* Kerberos/User Map */
117 #define KMAP_PRINCIPAL 1
120 /* General List information Queries. */
137 /* List Member information queries. */
144 /* Machine information queries */
153 /* Machine to Cluster mapping */
155 #define MAP_MACHINE 0
156 #define MAP_CLUSTER 1
159 /* NFS phys. queries. */
167 #define NFS_MODTIME 6
169 #define NFS_MODWITH 8
172 /* Printcap queries */
175 #define PCAP_SPOOL_HOST 1
176 #define PCAP_SPOOL_DIR 2
177 #define PCAP_RPRINTER 3
178 #define PCAP_COMMENTS 4
179 #define PCAP_MODTIME 5
181 #define PCAP_MODWITH 7
184 /* Palladium queries */
194 /* PO box infomarion queries */
206 #define Q_DIRECTORY 3
215 #define SVC_SERVICE 0
216 #define SVC_INTERVAL 1
220 #define SVC_DFCHECK 5
223 #define SVC_INPROGRESS 8
224 #define SVC_HARDERROR 9
225 #define SVC_ERRMSG 10
226 #define SVC_ACE_TYPE 11
227 #define SVC_ACE_NAME 12
228 #define SVC_MODTIME 13
230 #define SVC_MODWITH 15
233 /* Service add/update */
236 #define SC_INTERVAL 1
241 #define SC_ACE_TYPE 6
242 #define SC_ACE_NAME 7
245 /* Service/host tuples */
250 #define SH_OVERRIDE 3
252 #define SH_INPROGRESS 5
253 #define SH_HOSTERROR 6
256 #define SH_LASTSUCCESS 9
260 #define SH_MODTIME 13
262 #define SH_MODWITH 15
265 /* Service/host tuple add & updates */
267 #define SHI_SERVICE 0
268 #define SHI_MACHINE 1
275 /* User Information queries */
291 /* User states (the value of argv[U_STATE] from a user query) */
293 #define US_NO_LOGIN_YET 0
294 #define US_REGISTERED 1
295 #define US_NO_PASSWD 2
297 #define US_NOT_ALLOWED 4
298 #define US_ENROLLED 5
299 #define US_ENROLL_NOT_ALLOWED 6
302 /* User shell queries */
309 /* Directories & files used on the server machine: */
311 #define SMS_DIR "/u1/sms" /* home directory of the system */
312 #define BIN_DIR "/u1/sms/bin" /* where progs live */
313 #define DCM_DIR "/u1/sms/dcm" /* where DCM output files end up */
314 #define LOCK_DIR "/u1/sms/dcm/locks" /* where DCM puts lock files */
316 #define CRITERRLOG "/u1/sms/critical.log"
317 #define JOURNAL "/u1/sms/journal"
318 #define REGJOURNAL "/u1/sms/journal.reg"
319 #define NODCMFILE "/etc/nodcm" /* flag to inhibit DCM running */
320 #define SMS_MOTD_FILE "/etc/smsdown" /* make the server go to sleep */
323 #endif _sms_app_ /* Do not add anything after this line. */