]> andersk Git - moira.git/blob - include/moira_site.h
Added user state constants.
[moira.git] / include / moira_site.h
1 /*      This is the file infodefs.h for the SMS Client, which allows a nieve
2  *      user to quickly and easily maintain most parts of the SMS database.
3  *      It Contains: useful typdefs.
4  *      
5  *      Created:        6/8/88
6  *      By:             Chris D. Peterson
7  *
8  *      $Source$
9  *      $Author$
10  *      $Header$
11  *      
12  *      Copyright 1988 by the Massachusetts Institute of Technology.
13  *
14  *      For further information on copyright and distribution 
15  *      see the file mit-copyright.h
16  */
17
18 /*
19  *     This file contains all definitions that allow easy access to 
20  * elements returned by most of the @i[SMS] queries.
21  *
22  *     If the order of the arguments in the @i[SMS] queries change (again)
23  *  then all that needs to be changed are the values of these items 
24  * and all should be well, (hopefully :-).
25  *
26  *                                 Chris D. Peterson - kit@athena
27  *                                   7/27/88
28  */
29
30 #ifndef _infodefs_
31 #define _infodefs_
32
33 #include "mit-copyright.h"
34
35 #define NAME 0
36
37 /* get_ace_use */
38
39 #define ACE_TYPE 0
40 #define ACE_NAME 1
41 #define ACE_END  2
42
43 /* alias queries. */
44
45 #define ALIAS_NAME  0
46 #define ALIAS_TYPE  1
47 #define ALIAS_TRANS 2
48 #define ALIAS_END   3
49
50 /* Cluster information queries */
51
52 #define C_NAME       0
53 #define C_DESCRIPT   1
54 #define C_LOCATION   2
55 #define C_MODTIME    3
56 #define C_MODBY      4
57 #define C_MODWITH    5
58 #define C_END        6
59
60 /* Cluster Data information queries */
61
62 #define CD_NAME      0
63 #define CD_LABEL     1
64 #define CD_DATA      2
65 #define CD_END       3
66
67 /* Delete Member from list queries. */
68
69 #define DM_LIST      0
70 #define DM_TYPE      1
71 #define DM_MEMBER    2
72 #define DM_END       3
73
74 /* Filesys queries (attachmaint) */
75
76 #define FS_NAME         0
77 #define FS_TYPE         1
78 #define FS_MACHINE      2
79 #define FS_PACK         3
80 #define FS_M_POINT      4
81 #define FS_ACCESS       5
82 #define FS_COMMENTS     6
83 #define FS_OWNER        7
84 #define FS_OWNERS       8
85 #define FS_CREATE       9
86 #define FS_L_TYPE       10
87 #define FS_MODTIME      11
88 #define FS_MODBY        12
89 #define FS_MODWITH      13
90 #define FS_END          14
91
92 /* Get List Of Member queries. */
93
94 #define GLOM_NAME     0
95 #define GLOM_ACTIVE   1
96 #define GLOM_PUBLIC   2
97 #define GLOM_HIDDEN   3
98 #define GLOM_MAILLIST 4
99 #define GLOM_GROUP    5
100 #define GLOM_END      6
101
102 /* General List information Queries. */
103
104 #define L_NAME     0
105 #define L_ACTIVE   1
106 #define L_PUBLIC   2
107 #define L_HIDDEN   3
108 #define L_MAILLIST 4
109 #define L_GROUP    5
110 #define L_GID      6
111 #define L_ACE_TYPE 7
112 #define L_ACE_NAME 8
113 #define L_DESC     9
114 #define L_MODTIME  10
115 #define L_MODBY    11
116 #define L_MODWITH  12
117 #define L_END      13
118
119 /* List Member information queries. */
120
121 #define LM_LIST   0
122 #define LM_TYPE   1
123 #define LM_MEMBER 2
124 #define LM_END    3
125
126 /* Machine information queries */
127
128 #define M_NAME       0
129 #define M_TYPE       1
130 #define M_MODTIME    2
131 #define M_MODBY      3
132 #define M_MODWITH    4
133 #define M_END        5
134
135 /*  Machine to Cluster mapping */
136
137 #define MAP_MACHINE  0
138 #define MAP_CLUSTER  1
139 #define MAP_END      2
140
141 /*  NFS phys. queries. */
142
143 #define NFS_NAME    0
144 #define NFS_DIR     1
145 #define NFS_DEVICE  2
146 #define NFS_STATUS  3
147 #define NFS_ALLOC   4
148 #define NFS_SIZE    5
149 #define NFS_MODTIME 6
150 #define NFS_MODBY   7
151 #define NFS_MODWITH 8
152 #define NFS_END     9
153
154 /* PO box infomarion queries */
155
156 #define PO_NAME    0
157 #define PO_TYPE    1
158 #define PO_BOX     2
159 #define PO_END     3
160
161 /* Quota queries */
162
163 #define Q_FILESYS   0
164 #define Q_LOGIN     1
165 #define Q_QUOTA     2
166 #define Q_DIRECTORY 3  
167 #define Q_MACHINE   4
168 #define Q_MODTIME   5
169 #define Q_MODBY     6
170 #define Q_MODWITH   7
171 #define Q_END       8
172
173 /* User Information queries */
174
175 #define U_NAME    0
176 #define U_UID     1
177 #define U_SHELL   2
178 #define U_LAST    3
179 #define U_FIRST   4
180 #define U_MIDDLE  5
181 #define U_STATE   6  
182 #define U_MITID   7
183 #define U_CLASS   8
184 #define U_MODTIME 9
185 #define U_MODBY   10
186 #define U_MODWITH 11
187 #define U_END     12
188
189 /* User states (the value of argv[U_STATE] from a user query) */
190 #define US_NO_LOGIN_YET 0
191 #define US_REGISTERED   1
192 #define US_NO_PASSWD    2
193 #define US_DELETED      3
194 #define US_NOT_ALLOWED  4
195 #define US_END          5
196
197 #endif _infodefs_               /* Do not add anything after this line. */
This page took 0.050764 seconds and 5 git commands to generate.