]> andersk Git - moira.git/blob - include/moira_site.h
improved DEC version of message about delete key;
[moira.git] / include / moira_site.h
1 /*
2  * This file contains all definitions that allow easy access to 
3  * elements returned by most of the @i[SMS] queries.
4  *
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 :-).
8  *
9  *                                 Chris D. Peterson - kit@athena
10  *                                   7/27/88
11  *
12  *      $Source$
13  *      $Author$
14  *      $Header$
15  *      
16  *      Copyright 1988 by the Massachusetts Institute of Technology.
17  *
18  *      For further information on copyright and distribution 
19  *      see the file mit-copyright.h
20  */
21
22 #ifndef _sms_app_
23 #define _sms_app_
24
25 #include "mit-copyright.h"
26
27 /* Default SMS server to connect to */
28 #define SMS_SERVER      "SMS.MIT.EDU:sms_db"
29
30 #define NAME 0
31
32 /* get_ace_use */
33
34 #define ACE_TYPE 0
35 #define ACE_NAME 1
36 #define ACE_END  2
37
38 /* alias queries. */
39
40 #define ALIAS_NAME  0
41 #define ALIAS_TYPE  1
42 #define ALIAS_TRANS 2
43 #define ALIAS_END   3
44
45 /* Cluster information queries */
46
47 #define C_NAME       0
48 #define C_DESCRIPT   1
49 #define C_LOCATION   2
50 #define C_MODTIME    3
51 #define C_MODBY      4
52 #define C_MODWITH    5
53 #define C_END        6
54
55 /* Cluster Data information queries */
56
57 #define CD_NAME      0
58 #define CD_LABEL     1
59 #define CD_DATA      2
60 #define CD_END       3
61
62 /* Delete Member from list queries. */
63
64 #define DM_LIST      0
65 #define DM_TYPE      1
66 #define DM_MEMBER    2
67 #define DM_END       3
68
69 /* Finger queries */
70
71 #define F_NAME          0
72 #define F_FULLNAME      1
73 #define F_NICKNAME      2
74 #define F_HOME_ADDR     3
75 #define F_HOME_PHONE    4
76 #define F_OFFICE_ADDR   5
77 #define F_OFFICE_PHONE  6
78 #define F_MIT_DEPT      7
79 #define F_MIT_AFFIL     8
80 #define F_MODTIME       9
81 #define F_MODBY         10
82 #define F_MODWITH       11
83 #define F_END           12
84
85 /* Filesys queries */
86
87 #define FS_NAME         0
88 #define FS_TYPE         1
89 #define FS_MACHINE      2
90 #define FS_PACK         3
91 #define FS_M_POINT      4
92 #define FS_ACCESS       5
93 #define FS_COMMENTS     6
94 #define FS_OWNER        7
95 #define FS_OWNERS       8
96 #define FS_CREATE       9
97 #define FS_L_TYPE       10
98 #define FS_MODTIME      11
99 #define FS_MODBY        12
100 #define FS_MODWITH      13
101 #define FS_END          14
102
103 /* Get List Of Member queries. */
104
105 #define GLOM_NAME     0
106 #define GLOM_ACTIVE   1
107 #define GLOM_PUBLIC   2
108 #define GLOM_HIDDEN   3
109 #define GLOM_MAILLIST 4
110 #define GLOM_GROUP    5
111 #define GLOM_END      6
112
113 /* Kerberos/User Map */
114
115 #define KMAP_USER       0
116 #define KMAP_PRINCIPAL  1
117 #define KMAP_END        2
118
119 /* General List information Queries. */
120
121 #define L_NAME     0
122 #define L_ACTIVE   1
123 #define L_PUBLIC   2
124 #define L_HIDDEN   3
125 #define L_MAILLIST 4
126 #define L_GROUP    5
127 #define L_GID      6
128 #define L_ACE_TYPE 7
129 #define L_ACE_NAME 8
130 #define L_DESC     9
131 #define L_MODTIME  10
132 #define L_MODBY    11
133 #define L_MODWITH  12
134 #define L_END      13
135
136 /* List Member information queries. */
137
138 #define LM_LIST   0
139 #define LM_TYPE   1
140 #define LM_MEMBER 2
141 #define LM_END    3
142
143 /* Machine information queries */
144
145 #define M_NAME       0
146 #define M_TYPE       1
147 #define M_MODTIME    2
148 #define M_MODBY      3
149 #define M_MODWITH    4
150 #define M_END        5
151
152 /*  Machine to Cluster mapping */
153
154 #define MAP_MACHINE  0
155 #define MAP_CLUSTER  1
156 #define MAP_END      2
157
158 /*  NFS phys. queries. */
159
160 #define NFS_NAME    0
161 #define NFS_DIR     1
162 #define NFS_DEVICE  2
163 #define NFS_STATUS  3
164 #define NFS_ALLOC   4
165 #define NFS_SIZE    5
166 #define NFS_MODTIME 6
167 #define NFS_MODBY   7
168 #define NFS_MODWITH 8
169 #define NFS_END     9
170
171 /* Printcap queries */
172
173 #define PCAP_NAME       0
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
179 #define PCAP_MODBY      6
180 #define PCAP_MODWITH    7
181 #define PCAP_END        8
182
183 /* Palladium queries */
184
185 #define PD_NAME         0
186 #define PD_IDENT        1
187 #define PD_HOST         2
188 #define PD_MODTIME      3
189 #define PD_MODBY        4
190 #define PD_MODWITH      5
191 #define PD_END          6
192
193 /* PO box infomarion queries */
194
195 #define PO_NAME    0
196 #define PO_TYPE    1
197 #define PO_BOX     2
198 #define PO_END     3
199
200 /* Quota queries */
201
202 #define Q_FILESYS   0
203 #define Q_LOGIN     1
204 #define Q_QUOTA     2
205 #define Q_DIRECTORY 3  
206 #define Q_MACHINE   4
207 #define Q_MODTIME   5
208 #define Q_MODBY     6
209 #define Q_MODWITH   7
210 #define Q_END       8
211
212 /* Service info */
213
214 #define SVC_SERVICE     0
215 #define SVC_INTERVAL    1
216 #define SVC_TARGET      2
217 #define SVC_SCRIPT      3
218 #define SVC_DFGEN       4
219 #define SVC_DFCHECK     5
220 #define SVC_TYPE        6
221 #define SVC_ENABLE      7
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
228 #define SVC_MODBY       14
229 #define SVC_MODWITH     15
230 #define SVC_END         16
231
232 /* Service add/update */
233
234 #define SC_SERVICE      0
235 #define SC_INTERVAL     1
236 #define SC_TARGET       2
237 #define SC_SCRIPT       3
238 #define SC_TYPE         4
239 #define SC_ENABLE       5
240 #define SC_ACE_TYPE     6
241 #define SC_ACE_NAME     7
242 #define SC_END          8
243
244 /* Service/host tuples */
245
246 #define SH_SERVICE      0
247 #define SH_MACHINE      1
248 #define SH_ENABLE       2
249 #define SH_OVERRIDE     3
250 #define SH_SUCCESS      4
251 #define SH_INPROGRESS   5
252 #define SH_HOSTERROR    6
253 #define SH_ERRMSG       7
254 #define SH_LASTTRY      8
255 #define SH_LASTSUCCESS  9
256 #define SH_VALUE1       10
257 #define SH_VALUE2       11
258 #define SH_VALUE3       12
259 #define SH_MODTIME      13
260 #define SH_MODBY        14
261 #define SH_MODWITH      15
262 #define SH_END          16
263
264 /* Service/host tuple add & updates */
265
266 #define SHI_SERVICE     0
267 #define SHI_MACHINE     1
268 #define SHI_ENABLE      2
269 #define SHI_VALUE1      3
270 #define SHI_VALUE2      4
271 #define SHI_VALUE3      5
272 #define SHI_END         6
273
274 /* User Information queries */
275
276 #define U_NAME    0
277 #define U_UID     1
278 #define U_SHELL   2
279 #define U_LAST    3
280 #define U_FIRST   4
281 #define U_MIDDLE  5
282 #define U_STATE   6  
283 #define U_MITID   7
284 #define U_CLASS   8
285 #define U_MODTIME 9
286 #define U_MODBY   10
287 #define U_MODWITH 11
288 #define U_END     12
289
290 /* User states (the value of argv[U_STATE] from a user query) */
291
292 #define US_NO_LOGIN_YET 0
293 #define US_REGISTERED   1
294 #define US_NO_PASSWD    2
295 #define US_DELETED      3
296 #define US_NOT_ALLOWED  4
297 #define US_ENROLLED     5
298 #define US_ENROLL_NOT_ALLOWED 6
299 #define US_END          7
300
301 /* User shell queries */
302
303 #define USH_NAME        0
304 #define USH_SHELL       1
305 #define USH_END         2
306
307 #endif _sms_app_                /* Do not add anything after this line. */
This page took 0.061484 seconds and 5 git commands to generate.