2 * This file contains all definitions that allow easy access to
3 * elements returned by most of the @i[SMS] queries.
5 * If the order of the arguments in the @i[SMS] queries change (again)
6 * then all that needs to be changed are the values of these items
7 * and all should be well, (hopefully :-).
9 * Chris D. Peterson - kit@athena
16 * Copyright 1988 by the Massachusetts Institute of Technology.
18 * For further information on copyright and distribution
19 * see the file mit-copyright.h
25 #include "mit-copyright.h"
27 /* Default SMS server to connect to */
28 #define SMS_SERVER "SMS.MIT.EDU:sms_db"
45 /* Cluster information queries */
55 /* Cluster Data information queries */
62 /* Delete Member from list queries. */
75 #define F_HOME_PHONE 4
76 #define F_OFFICE_ADDR 5
77 #define F_OFFICE_PHONE 6
100 #define FS_MODWITH 13
103 /* Get List Of Member queries. */
106 #define GLOM_ACTIVE 1
107 #define GLOM_PUBLIC 2
108 #define GLOM_HIDDEN 3
109 #define GLOM_MAILLIST 4
113 /* Kerberos/User Map */
116 #define KMAP_PRINCIPAL 1
119 /* General List information Queries. */
136 /* List Member information queries. */
143 /* Machine information queries */
152 /* Machine to Cluster mapping */
154 #define MAP_MACHINE 0
155 #define MAP_CLUSTER 1
158 /* NFS phys. queries. */
166 #define NFS_MODTIME 6
168 #define NFS_MODWITH 8
171 /* Printcap queries */
174 #define PCAP_SPOOL_HOST 1
175 #define PCAP_SPOOL_DIR 2
176 #define PCAP_RPRINTER 3
177 #define PCAP_COMMENTS 4
178 #define PCAP_MODTIME 5
180 #define PCAP_MODWITH 7
183 /* Palladium queries */
193 /* PO box infomarion queries */
205 #define Q_DIRECTORY 3
214 #define SVC_SERVICE 0
215 #define SVC_INTERVAL 1
219 #define SVC_DFCHECK 5
222 #define SVC_INPROGRESS 8
223 #define SVC_HARDERROR 9
224 #define SVC_ERRMSG 10
225 #define SVC_ACE_TYPE 11
226 #define SVC_ACE_NAME 12
227 #define SVC_MODTIME 13
229 #define SVC_MODWITH 15
232 /* Service add/update */
235 #define SC_INTERVAL 1
240 #define SC_ACE_TYPE 6
241 #define SC_ACE_NAME 7
244 /* Service/host tuples */
249 #define SH_OVERRIDE 3
251 #define SH_INPROGRESS 5
252 #define SH_HOSTERROR 6
255 #define SH_LASTSUCCESS 9
259 #define SH_MODTIME 13
261 #define SH_MODWITH 15
264 /* Service/host tuple add & updates */
266 #define SHI_SERVICE 0
267 #define SHI_MACHINE 1
274 /* User Information queries */
290 /* User states (the value of argv[U_STATE] from a user query) */
292 #define US_NO_LOGIN_YET 0
293 #define US_REGISTERED 1
294 #define US_NO_PASSWD 2
296 #define US_NOT_ALLOWED 4
297 #define US_ENROLLED 5
298 #define US_ENROLL_NOT_ALLOWED 6
301 /* User shell queries */
307 #endif _sms_app_ /* Do not add anything after this line. */