1 | # $Id: pykota.schema 1938 2006-01-26 15:25:44Z jerome $ |
---|
2 | # |
---|
3 | # pykota-schema-sunds.ldif |
---|
4 | # |
---|
5 | # LDAP Schema for Pykota Quota System |
---|
6 | # |
---|
7 | # Written 2003-05-28 by Wayne Godoy and John Flynn <wgodoy =AT= ub -DOT- edu -DOT- bz> |
---|
8 | # |
---|
9 | # Modified by Jerome Alet 2003-06-01 |
---|
10 | # |
---|
11 | # Adapted for Sun Directory Server by Darin Perusich <darin _AT_ darins _DOT_ net> |
---|
12 | # |
---|
13 | # Implementaion Details: |
---|
14 | # |
---|
15 | # % ldapmodify -h sunds.domain.com -D "cn=Directory Manager" -f pykota-schema-sunds.ldif |
---|
16 | # |
---|
17 | # 16868.x => Conseil Internet & Logiciels Libres |
---|
18 | # 16868.1.x => Pykota |
---|
19 | # 16868.1.1.x => attributes |
---|
20 | # 16868.1.2.x => classes |
---|
21 | # |
---|
22 | # Contributors : Leif Johansson - Stockholm University |
---|
23 | # |
---|
24 | dn: cn=schema |
---|
25 | changetype: modify |
---|
26 | add: attributeTypes |
---|
27 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.1 NAME 'pykotaLimitBy' |
---|
28 | DESC 'How to limit the user/group : quota or balance' |
---|
29 | EQUALITY caseIgnoreIA5Match |
---|
30 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
31 | - |
---|
32 | add: attributeTypes |
---|
33 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.2 NAME 'pykotaBalance' |
---|
34 | DESC 'Current account balance for the user, float' |
---|
35 | EQUALITY caseIgnoreIA5Match |
---|
36 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
37 | - |
---|
38 | add: attributeTypes |
---|
39 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.3 NAME 'pykotaLifeTimePaid' |
---|
40 | DESC 'Total money paid by the user to fill his account balance, float' |
---|
41 | EQUALITY caseIgnoreIA5Match |
---|
42 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
43 | - |
---|
44 | add: attributeTypes |
---|
45 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.4 NAME 'pykotaPricePerPage' |
---|
46 | DESC 'Price per page for a printer, float' |
---|
47 | EQUALITY caseIgnoreIA5Match |
---|
48 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
49 | - |
---|
50 | add: attributeTypes |
---|
51 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.5 NAME 'pykotaPricePerJob' |
---|
52 | DESC 'Price per job for a printer, float' |
---|
53 | EQUALITY caseIgnoreIA5Match |
---|
54 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
55 | - |
---|
56 | add: attributeTypes |
---|
57 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.6 NAME 'pykotaSoftLimit' |
---|
58 | DESC 'Soft limit in maximal number of pages' |
---|
59 | EQUALITY caseIgnoreIA5Match |
---|
60 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
61 | - |
---|
62 | add: attributeTypes |
---|
63 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.7 NAME 'pykotaHardLimit' |
---|
64 | DESC 'Hard limit in maximal number of pages' |
---|
65 | EQUALITY caseIgnoreIA5Match |
---|
66 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
67 | - |
---|
68 | add: attributeTypes |
---|
69 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.8 NAME 'pykotaDateLimit' |
---|
70 | DESC 'Date at which the soft limit becomes a hard one' |
---|
71 | EQUALITY caseIgnoreIA5Match |
---|
72 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
73 | - |
---|
74 | add: attributeTypes |
---|
75 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.9 NAME 'pykotaPageCounter' |
---|
76 | DESC 'Current page counter for the user on a particular printer' |
---|
77 | EQUALITY integerMatch |
---|
78 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) |
---|
79 | - |
---|
80 | add: attributeTypes |
---|
81 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.10 NAME 'pykotaLifePageCounter' |
---|
82 | DESC 'Total page counter for the user on a particular printer' |
---|
83 | EQUALITY integerMatch |
---|
84 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) |
---|
85 | - |
---|
86 | add: attributeTypes |
---|
87 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.11 NAME 'pykotaJobId' |
---|
88 | DESC 'Id of a job in a printer history of jobs' |
---|
89 | EQUALITY caseExactIA5Match |
---|
90 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
91 | - |
---|
92 | add: attributeTypes |
---|
93 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.12 NAME 'pykotaPrinterPageCounter' |
---|
94 | DESC 'Life time page counter of a printer when the job began' |
---|
95 | EQUALITY integerMatch |
---|
96 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) |
---|
97 | - |
---|
98 | add: attributeTypes |
---|
99 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.13 NAME 'pykotaJobSize' |
---|
100 | DESC 'Current job size in number of pages in the history' |
---|
101 | EQUALITY integerMatch |
---|
102 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) |
---|
103 | - |
---|
104 | add: attributeTypes |
---|
105 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.14 NAME 'pykotaAction' |
---|
106 | DESC 'Was the job allowed, denied, warned, cancelled or failed : ( "ALLOW" | "DENY" | "WARN" | "CANCEL" | "PROBLEM" )' |
---|
107 | EQUALITY caseExactIA5Match |
---|
108 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
109 | - |
---|
110 | add: attributeTypes |
---|
111 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.15 NAME 'pykotaPrinterName' |
---|
112 | DESC 'PyKota printer name as received from the printing subsystem' |
---|
113 | EQUALITY caseExactIA5Match |
---|
114 | SUBSTR caseExactIA5SubstringsMatch |
---|
115 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
116 | - |
---|
117 | add: attributeTypes |
---|
118 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.16 NAME 'pykotaUserName' |
---|
119 | DESC 'PyKota user name' |
---|
120 | EQUALITY caseExactIA5Match |
---|
121 | SUBSTR caseExactIA5SubstringsMatch |
---|
122 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
123 | - |
---|
124 | add: attributeTypes |
---|
125 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.17 NAME 'pykotaGroupName' |
---|
126 | DESC 'PyKota group name' |
---|
127 | EQUALITY caseExactIA5Match |
---|
128 | SUBSTR caseExactIA5SubstringsMatch |
---|
129 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
130 | - |
---|
131 | add: attributeTypes |
---|
132 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.18 NAME 'pykotaLastJobIdent' |
---|
133 | DESC 'Identifies the last job in the history' |
---|
134 | EQUALITY caseExactIA5Match |
---|
135 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
136 | - |
---|
137 | add: attributeTypes |
---|
138 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.19 NAME 'pykotaFileName' |
---|
139 | DESC 'Print job filename' |
---|
140 | EQUALITY caseExactMatch |
---|
141 | SUBSTR caseExactSubstringsMatch |
---|
142 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE ) |
---|
143 | - |
---|
144 | add: attributeTypes |
---|
145 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.20 NAME 'pykotaTitle' |
---|
146 | DESC 'Print job title' |
---|
147 | EQUALITY caseIgnoreMatch |
---|
148 | SUBSTR caseIgnoreSubstringsMatch |
---|
149 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE ) |
---|
150 | - |
---|
151 | add: attributeTypes |
---|
152 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.21 NAME 'pykotaCopies' |
---|
153 | DESC 'Number of copies of the current print job' |
---|
154 | EQUALITY integerMatch |
---|
155 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) |
---|
156 | - |
---|
157 | add: attributeTypes |
---|
158 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.22 NAME 'pykotaOptions' |
---|
159 | DESC 'Print job options' |
---|
160 | EQUALITY caseIgnoreMatch |
---|
161 | SUBSTR caseIgnoreSubstringsMatch |
---|
162 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE ) |
---|
163 | - |
---|
164 | add: attributeTypes |
---|
165 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.23 NAME 'pykotaJobPrice' |
---|
166 | DESC 'Price of a particular job in the history, float' |
---|
167 | EQUALITY caseIgnoreIA5Match |
---|
168 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
169 | - |
---|
170 | add: attributeTypes |
---|
171 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.24 NAME 'pykotaHostName' |
---|
172 | DESC 'The host the job is coming from' |
---|
173 | EQUALITY caseIgnoreMatch |
---|
174 | SUBSTR caseIgnoreSubstringsMatch |
---|
175 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} ) |
---|
176 | - |
---|
177 | add: attributeTypes |
---|
178 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.25 NAME 'pykotaJobSizeBytes' |
---|
179 | DESC 'Current job size in number of bytes in the history' |
---|
180 | EQUALITY integerMatch |
---|
181 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) |
---|
182 | - |
---|
183 | add: attributeTypes |
---|
184 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.26 NAME 'pykotaPayments' |
---|
185 | DESC 'Stores all payments made by an user, encoded to store both date and amount, separated by a # between two spaces' |
---|
186 | EQUALITY caseExactIA5Match |
---|
187 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) |
---|
188 | - |
---|
189 | add: attributeTypes |
---|
190 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.27 NAME 'pykotaOverCharge' |
---|
191 | DESC 'OverCharging factor for a particular user, float' |
---|
192 | EQUALITY caseIgnoreIA5Match |
---|
193 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
194 | - |
---|
195 | add: attributeTypes |
---|
196 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.28 NAME 'pykotaWarnCount' |
---|
197 | DESC 'Number of times the user was warned because a banner was denied' |
---|
198 | EQUALITY integerMatch |
---|
199 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) |
---|
200 | - |
---|
201 | add: attributeTypes |
---|
202 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.29 NAME 'pykotaMD5Sum' |
---|
203 | DESC 'MD5 Sum of the job datas' |
---|
204 | EQUALITY caseExactIA5Match |
---|
205 | SUBSTR caseExactIA5SubstringsMatch |
---|
206 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
207 | - |
---|
208 | add: attributeTypes |
---|
209 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.30 NAME 'pykotaPages' |
---|
210 | DESC 'Descriptor for each page settings in the history' |
---|
211 | EQUALITY caseExactIA5Match |
---|
212 | SUBSTR caseExactIA5SubstringsMatch |
---|
213 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26) |
---|
214 | - |
---|
215 | add: attributeTypes |
---|
216 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.31 NAME 'pykotaPrinterCoefficient' |
---|
217 | DESC 'Coefficient for a particular page format. Contains label # coeff, e.g. A3 # 2.0' |
---|
218 | EQUALITY caseIgnoreIA5Match |
---|
219 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) |
---|
220 | - |
---|
221 | add: attributeTypes |
---|
222 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.32 NAME 'pykotaBillingCode' |
---|
223 | DESC 'Optional billing code for the print job' |
---|
224 | EQUALITY caseIgnoreMatch |
---|
225 | SUBSTR caseIgnoreSubstringsMatch |
---|
226 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE ) |
---|
227 | - |
---|
228 | add: attributeTypes |
---|
229 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.33 NAME 'pykotaPrecomputedJobSize' |
---|
230 | DESC 'Precomputed job size in number of pages in the history' |
---|
231 | EQUALITY integerMatch |
---|
232 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) |
---|
233 | - |
---|
234 | add: attributeTypes |
---|
235 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.34 NAME 'pykotaPrecomputedJobPrice' |
---|
236 | DESC 'Precomputed Price of a particular job in the history, float' |
---|
237 | EQUALITY caseIgnoreIA5Match |
---|
238 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
239 | - |
---|
240 | add: attributeTypes |
---|
241 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.35 NAME 'pykotaMaxJobSize' |
---|
242 | DESC 'Maximum size allowed for a job' |
---|
243 | EQUALITY integerMatch |
---|
244 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) |
---|
245 | - |
---|
246 | add: attributeTypes |
---|
247 | attributeTypes: ( 1.3.6.1.4.1.16868.1.1.36 NAME 'pykotaPassThrough' |
---|
248 | DESC 'Indicates if the printer is in pass through mode' |
---|
249 | EQUALITY caseIgnoreIA5Match |
---|
250 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) |
---|
251 | - |
---|
252 | add: objectClasses |
---|
253 | objectClasses: ( 1.3.6.1.4.1.16868.1.2.1 NAME 'pykotaAccount' SUP top AUXILIARY |
---|
254 | DESC 'PyKota Auxiliary User Account' |
---|
255 | MUST ( uid ) |
---|
256 | MAY ( pykotaUserName $ pykotaLimitBy $ mail $ description ) ) |
---|
257 | - |
---|
258 | add: objectClasses |
---|
259 | objectClasses: ( 1.3.6.1.4.1.16868.1.2.2 NAME 'pykotaGroup' SUP top AUXILIARY |
---|
260 | DESC 'PyKota Auxiliary Group' |
---|
261 | MUST ( cn ) |
---|
262 | MAY ( pykotaGroupName $ pykotaLimitBy $ memberUid $ uniqueMember $ member $ description ) ) |
---|
263 | - |
---|
264 | add: objectClasses |
---|
265 | objectClasses: ( 1.3.6.1.4.1.16868.1.2.3 NAME 'pykotaPrinter' SUP top AUXILIARY |
---|
266 | DESC 'PyKota Printer' |
---|
267 | MUST ( cn ) |
---|
268 | MAY ( pykotaMaxJobSize $ pykotaPassThrough $ description $ pykotaPrinterName $ pykotaPricePerPage $ pykotaPricePerJob $ pykotaPrinterCoefficient $ uniqueMember ) ) |
---|
269 | - |
---|
270 | add: objectClasses |
---|
271 | objectClasses: ( 1.3.6.1.4.1.16868.1.2.4 NAME 'pykotaUserPQuota' SUP top AUXILIARY |
---|
272 | DESC 'PyKota User Quota on a Printer' |
---|
273 | MUST ( cn $ pykotaUserName $ pykotaPrinterName ) |
---|
274 | MAY ( pykotaMaxJobSize $ pykotaPageCounter $ pykotaLifePageCounter $ pykotaSoftLimit $ pykotaHardLimit $ pykotaDateLimit $ pykotaWarnCount ) ) |
---|
275 | - |
---|
276 | add: objectClasses |
---|
277 | objectClasses: ( 1.3.6.1.4.1.16868.1.2.5 NAME 'pykotaGroupPQuota' SUP top AUXILIARY |
---|
278 | DESC 'PyKota Group Quota on a Printer' |
---|
279 | MUST ( cn $ pykotaGroupName $ pykotaPrinterName ) |
---|
280 | MAY ( pykotaMaxJobSize $ pykotaSoftLimit $ pykotaHardLimit $ pykotaDateLimit ) ) |
---|
281 | - |
---|
282 | add: objectClasses |
---|
283 | objectClasses: ( 1.3.6.1.4.1.16868.1.2.6 NAME 'pykotaJob' SUP top AUXILIARY |
---|
284 | DESC 'An entry in the job history for a printer' |
---|
285 | MUST ( cn $ pykotaUserName $ pykotaPrinterName $ pykotaJobId ) |
---|
286 | MAY ( pykotaPrecomputedJobPrice $ pykotaPrecomputedJobSize $ pykotaBillingCode $ pykotaPrinterPageCounter $ pykotaJobSize $ pykotaAction $ pykotaJobPrice $ pykotaFileName $ pykotaTitle $ pykotaCopies $ pykotaOptions $ pykotaHostName $ pykotaJobSizeBytes $ pykotaMD5Sum $ pykotaPages ) ) |
---|
287 | - |
---|
288 | add: objectClasses |
---|
289 | objectClasses: ( 1.3.6.1.4.1.16868.1.2.7 NAME 'pykotaAccountBalance' SUP top AUXILIARY |
---|
290 | DESC 'PyKota User account balance' |
---|
291 | MAY ( pykotaUserName $ pykotaBalance $ pykotaLifeTimePaid $ pykotaOverCharge $ pykotaPayments ) ) |
---|
292 | - |
---|
293 | add: objectClasses |
---|
294 | objectClasses: ( 1.3.6.1.4.1.16868.1.2.8 NAME 'pykotaLastJob' SUP top AUXILIARY |
---|
295 | DESC 'Last job information for a printer' |
---|
296 | MUST ( pykotaLastJobIdent ) |
---|
297 | MAY ( pykotaPrinterName ) ) |
---|
298 | - |
---|
299 | add: objectClasses |
---|
300 | objectClasses: ( 1.3.6.1.4.1.16868.1.2.10 NAME 'pykotaBilling' SUP top AUXILIARY |
---|
301 | DESC 'Allowed billing codes' |
---|
302 | MUST ( cn $ pykotaBillingCode ) |
---|
303 | MAY ( pykotaPageCounter $ pykotaBalance $ description ) ) |
---|
304 | - |
---|
305 | add: objectClasses |
---|
306 | objectClasses: ( 1.3.6.1.4.1.16868.1.2.9 NAME 'pykotaObject' SUP top STRUCTURAL |
---|
307 | DESC 'PyKota Object' |
---|
308 | MUST ( cn ) ) |
---|