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 /* General List information Queries. */
130 /* List Member information queries. */
137 /* Machine information queries */
146 /* Machine to Cluster mapping */
148 #define MAP_MACHINE 0
149 #define MAP_CLUSTER 1
152 /* NFS phys. queries. */
160 #define NFS_MODTIME 6
162 #define NFS_MODWITH 8
165 /* PO box infomarion queries */
177 #define Q_DIRECTORY 3
186 #define SVC_SERVICE 0
187 #define SVC_INTERVAL 1
191 #define SVC_DFCHECK 5
194 #define SVC_INPROGRESS 8
195 #define SVC_HARDERROR 9
196 #define SVC_ERRMSG 10
197 #define SVC_ACE_TYPE 11
198 #define SVC_ACE_NAME 12
199 #define SVC_MODTIME 13
201 #define SVC_MODWITH 15
204 /* Service add/update */
207 #define SC_INTERVAL 1
212 #define SC_ACE_TYPE 6
213 #define SC_ACE_NAME 7
216 /* Service/host tuples */
221 #define SH_OVERRIDE 3
223 #define SH_INPROGRESS 5
224 #define SH_HOSTERROR 6
227 #define SH_LASTSUCCESS 9
231 #define SH_MODTIME 13
233 #define SH_MODWITH 15
236 /* Service/host tuple add & updates */
238 #define SHI_SERVICE 0
239 #define SHI_MACHINE 1
246 /* User Information queries */
262 /* User states (the value of argv[U_STATE] from a user query) */
264 #define US_NO_LOGIN_YET 0
265 #define US_REGISTERED 1
266 #define US_NO_PASSWD 2
268 #define US_NOT_ALLOWED 4
271 /* User shell queries */
277 #endif _sms_app_ /* Do not add anything after this line. */