]> andersk Git - moira.git/blob - include/moira_site.h
changed name from infodefs.h, added location of default server
[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 /* Filesys queries (attachmaint) */
70
71 #define FS_NAME         0
72 #define FS_TYPE         1
73 #define FS_MACHINE      2
74 #define FS_PACK         3
75 #define FS_M_POINT      4
76 #define FS_ACCESS       5
77 #define FS_COMMENTS     6
78 #define FS_OWNER        7
79 #define FS_OWNERS       8
80 #define FS_CREATE       9
81 #define FS_L_TYPE       10
82 #define FS_MODTIME      11
83 #define FS_MODBY        12
84 #define FS_MODWITH      13
85 #define FS_END          14
86
87 /* Get List Of Member queries. */
88
89 #define GLOM_NAME     0
90 #define GLOM_ACTIVE   1
91 #define GLOM_PUBLIC   2
92 #define GLOM_HIDDEN   3
93 #define GLOM_MAILLIST 4
94 #define GLOM_GROUP    5
95 #define GLOM_END      6
96
97 /* General List information Queries. */
98
99 #define L_NAME     0
100 #define L_ACTIVE   1
101 #define L_PUBLIC   2
102 #define L_HIDDEN   3
103 #define L_MAILLIST 4
104 #define L_GROUP    5
105 #define L_GID      6
106 #define L_ACE_TYPE 7
107 #define L_ACE_NAME 8
108 #define L_DESC     9
109 #define L_MODTIME  10
110 #define L_MODBY    11
111 #define L_MODWITH  12
112 #define L_END      13
113
114 /* List Member information queries. */
115
116 #define LM_LIST   0
117 #define LM_TYPE   1
118 #define LM_MEMBER 2
119 #define LM_END    3
120
121 /* Machine information queries */
122
123 #define M_NAME       0
124 #define M_TYPE       1
125 #define M_MODTIME    2
126 #define M_MODBY      3
127 #define M_MODWITH    4
128 #define M_END        5
129
130 /*  Machine to Cluster mapping */
131
132 #define MAP_MACHINE  0
133 #define MAP_CLUSTER  1
134 #define MAP_END      2
135
136 /*  NFS phys. queries. */
137
138 #define NFS_NAME    0
139 #define NFS_DIR     1
140 #define NFS_DEVICE  2
141 #define NFS_STATUS  3
142 #define NFS_ALLOC   4
143 #define NFS_SIZE    5
144 #define NFS_MODTIME 6
145 #define NFS_MODBY   7
146 #define NFS_MODWITH 8
147 #define NFS_END     9
148
149 /* PO box infomarion queries */
150
151 #define PO_NAME    0
152 #define PO_TYPE    1
153 #define PO_BOX     2
154 #define PO_END     3
155
156 /* Quota queries */
157
158 #define Q_FILESYS   0
159 #define Q_LOGIN     1
160 #define Q_QUOTA     2
161 #define Q_DIRECTORY 3  
162 #define Q_MACHINE   4
163 #define Q_MODTIME   5
164 #define Q_MODBY     6
165 #define Q_MODWITH   7
166 #define Q_END       8
167
168 /* User Information queries */
169
170 #define U_NAME    0
171 #define U_UID     1
172 #define U_SHELL   2
173 #define U_LAST    3
174 #define U_FIRST   4
175 #define U_MIDDLE  5
176 #define U_STATE   6  
177 #define U_MITID   7
178 #define U_CLASS   8
179 #define U_MODTIME 9
180 #define U_MODBY   10
181 #define U_MODWITH 11
182 #define U_END     12
183
184 /* User states (the value of argv[U_STATE] from a user query) */
185 #define US_NO_LOGIN_YET 0
186 #define US_REGISTERED   1
187 #define US_NO_PASSWD    2
188 #define US_DELETED      3
189 #define US_NOT_ALLOWED  4
190 #define US_END          5
191
192 /* Service info */
193 #define SVC_SERVICE     0
194 #define SVC_INTERVAL    1
195 #define SVC_TARGET      2
196 #define SVC_SCRIPT      3
197 #define SVC_DFGEN       4
198 #define SVC_DFCHECK     5
199 #define SVC_TYPE        6
200 #define SVC_ENABLE      7
201 #define SVC_INPROGRESS  8
202 #define SVC_HARDERROR   9
203 #define SVC_ERRMSG      10
204 #define SVC_ACE_TYPE    11
205 #define SVC_ACE_NAME    12
206 #define SVC_MODTIME     13
207 #define SVC_MODBY       14
208 #define SVC_MODWITH     15
209 #define SVC_END         16
210
211 /* Service add/update */
212 #define SC_SERVICE      0
213 #define SC_INTERVAL     1
214 #define SC_TARGET       2
215 #define SC_SCRIPT       3
216 #define SC_TYPE         4
217 #define SC_ENABLE       5
218 #define SC_ACE_TYPE     6
219 #define SC_ACE_NAME     7
220 #define SC_END          8
221
222 /* Service/host tuples */
223 #define SH_SERVICE      0
224 #define SH_MACHINE      1
225 #define SH_ENABLE       2
226 #define SH_OVERRIDE     3
227 #define SH_SUCCESS      4
228 #define SH_INPROGRESS   5
229 #define SH_HOSTERROR    6
230 #define SH_ERRMSG       7
231 #define SH_LASTTRY      8
232 #define SH_LASTSUCCESS  9
233 #define SH_VALUE1       10
234 #define SH_VALUE2       11
235 #define SH_VALUE3       12
236 #define SH_MODTIME      13
237 #define SH_MODBY        14
238 #define SH_MODWITH      15
239 #define SH_END          16
240
241 /* Service/host tuple add & updates */
242 #define SHI_SERVICE     0
243 #define SHI_MACHINE     1
244 #define SHI_ENABLE      2
245 #define SHI_VALUE1      3
246 #define SHI_VALUE2      4
247 #define SHI_VALUE3      5
248 #define SHI_END         6
249
250 #endif _sms_app_                /* Do not add anything after this line. */
This page took 0.21202 seconds and 5 git commands to generate.