]> andersk Git - moira.git/blob - include/moira_site.h
added finger information and user shell information.
[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 /* General List information Queries. */
114
115 #define L_NAME     0
116 #define L_ACTIVE   1
117 #define L_PUBLIC   2
118 #define L_HIDDEN   3
119 #define L_MAILLIST 4
120 #define L_GROUP    5
121 #define L_GID      6
122 #define L_ACE_TYPE 7
123 #define L_ACE_NAME 8
124 #define L_DESC     9
125 #define L_MODTIME  10
126 #define L_MODBY    11
127 #define L_MODWITH  12
128 #define L_END      13
129
130 /* List Member information queries. */
131
132 #define LM_LIST   0
133 #define LM_TYPE   1
134 #define LM_MEMBER 2
135 #define LM_END    3
136
137 /* Machine information queries */
138
139 #define M_NAME       0
140 #define M_TYPE       1
141 #define M_MODTIME    2
142 #define M_MODBY      3
143 #define M_MODWITH    4
144 #define M_END        5
145
146 /*  Machine to Cluster mapping */
147
148 #define MAP_MACHINE  0
149 #define MAP_CLUSTER  1
150 #define MAP_END      2
151
152 /*  NFS phys. queries. */
153
154 #define NFS_NAME    0
155 #define NFS_DIR     1
156 #define NFS_DEVICE  2
157 #define NFS_STATUS  3
158 #define NFS_ALLOC   4
159 #define NFS_SIZE    5
160 #define NFS_MODTIME 6
161 #define NFS_MODBY   7
162 #define NFS_MODWITH 8
163 #define NFS_END     9
164
165 /* PO box infomarion queries */
166
167 #define PO_NAME    0
168 #define PO_TYPE    1
169 #define PO_BOX     2
170 #define PO_END     3
171
172 /* Quota queries */
173
174 #define Q_FILESYS   0
175 #define Q_LOGIN     1
176 #define Q_QUOTA     2
177 #define Q_DIRECTORY 3  
178 #define Q_MACHINE   4
179 #define Q_MODTIME   5
180 #define Q_MODBY     6
181 #define Q_MODWITH   7
182 #define Q_END       8
183
184 /* Service info */
185
186 #define SVC_SERVICE     0
187 #define SVC_INTERVAL    1
188 #define SVC_TARGET      2
189 #define SVC_SCRIPT      3
190 #define SVC_DFGEN       4
191 #define SVC_DFCHECK     5
192 #define SVC_TYPE        6
193 #define SVC_ENABLE      7
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
200 #define SVC_MODBY       14
201 #define SVC_MODWITH     15
202 #define SVC_END         16
203
204 /* Service add/update */
205
206 #define SC_SERVICE      0
207 #define SC_INTERVAL     1
208 #define SC_TARGET       2
209 #define SC_SCRIPT       3
210 #define SC_TYPE         4
211 #define SC_ENABLE       5
212 #define SC_ACE_TYPE     6
213 #define SC_ACE_NAME     7
214 #define SC_END          8
215
216 /* Service/host tuples */
217
218 #define SH_SERVICE      0
219 #define SH_MACHINE      1
220 #define SH_ENABLE       2
221 #define SH_OVERRIDE     3
222 #define SH_SUCCESS      4
223 #define SH_INPROGRESS   5
224 #define SH_HOSTERROR    6
225 #define SH_ERRMSG       7
226 #define SH_LASTTRY      8
227 #define SH_LASTSUCCESS  9
228 #define SH_VALUE1       10
229 #define SH_VALUE2       11
230 #define SH_VALUE3       12
231 #define SH_MODTIME      13
232 #define SH_MODBY        14
233 #define SH_MODWITH      15
234 #define SH_END          16
235
236 /* Service/host tuple add & updates */
237
238 #define SHI_SERVICE     0
239 #define SHI_MACHINE     1
240 #define SHI_ENABLE      2
241 #define SHI_VALUE1      3
242 #define SHI_VALUE2      4
243 #define SHI_VALUE3      5
244 #define SHI_END         6
245
246 /* User Information queries */
247
248 #define U_NAME    0
249 #define U_UID     1
250 #define U_SHELL   2
251 #define U_LAST    3
252 #define U_FIRST   4
253 #define U_MIDDLE  5
254 #define U_STATE   6  
255 #define U_MITID   7
256 #define U_CLASS   8
257 #define U_MODTIME 9
258 #define U_MODBY   10
259 #define U_MODWITH 11
260 #define U_END     12
261
262 /* User states (the value of argv[U_STATE] from a user query) */
263
264 #define US_NO_LOGIN_YET 0
265 #define US_REGISTERED   1
266 #define US_NO_PASSWD    2
267 #define US_DELETED      3
268 #define US_NOT_ALLOWED  4
269 #define US_END          5
270
271 /* User shell queries */
272
273 #define USH_NAME        0
274 #define USH_SHELL       1
275 #define USH_END         2
276
277 #endif _sms_app_                /* Do not add anything after this line. */
This page took 0.11267 seconds and 5 git commands to generate.