root / pykota / trunk / initscripts / ldap / pykota.schema @ 1041

Revision 1041, 7.0 kB (checked in by jalet, 21 years ago)

Hey, it may work (edpykota --reset excepted) !

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1# $Id$
2#
3# pykota.schema
4#
5# LDAP Schema for Pykota Quota System
6# Version 0.2
7#
8# Written 2003-05-28 by Wayne Godoy and John Flynn <wgodoy =AT= ub -DOT- edu -DOT- bz>
9#
10# Modified by Jerome Alet 2003-06-01
11#
12# 16868.x       => Conseil Internet & Logiciels Libres
13# 16868.1.x     => Pykota
14# 16868.1.1.x   => attributes
15# 16868.1.2.x   => classes
16#
17# Contributors : Leif Johansson
18#
19
20#       
21# PyKota Attributes Types
22#
23
24# pykotaLimitBy
25attributetype ( 1.3.6.1.4.1.16868.1.1.1 NAME 'pykotaLimitBy'
26        DESC 'How to limit the user/group : quota or balance'
27        EQUALITY caseIgnoreIA5Match
28        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
29
30# pykotaBalance
31attributetype ( 1.3.6.1.4.1.16868.1.1.2 NAME 'pykotaBalance'
32        DESC 'Current account balance for the user, float'
33        EQUALITY caseIgnoreIA5Match
34        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
35
36# pykotaLifeTimePaid
37attributetype ( 1.3.6.1.4.1.16868.1.1.3 NAME 'pykotaLifeTimePaid'
38        DESC 'Total money paid by the user to fill his account balance, float'
39        EQUALITY caseIgnoreIA5Match
40        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
41
42# pykotaPricePerPage
43attributetype ( 1.3.6.1.4.1.16868.1.1.4 NAME 'pykotaPricePerPage'
44        DESC 'Price per page for a printer, float'
45        EQUALITY caseIgnoreIA5Match
46        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
47
48# pykotaPricePerJob
49attributetype ( 1.3.6.1.4.1.16868.1.1.5 NAME 'pykotaPricePerJob'
50        DESC 'Price per job for a printer, float'
51        EQUALITY caseIgnoreIA5Match
52        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
53
54# pykotaSoftLimit
55attributetype ( 1.3.6.1.4.1.16868.1.1.6 NAME 'pykotaSoftLimit'
56        DESC 'Soft limit in maximal number of pages'
57        EQUALITY caseIgnoreIA5Match
58        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
59       
60# pykotaHardLimit       
61attributetype ( 1.3.6.1.4.1.16868.1.1.7 NAME 'pykotaHardLimit'
62        DESC 'Hard limit in maximal number of pages'
63        EQUALITY caseIgnoreIA5Match
64        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
65
66# pykotaDateLimit
67attributetype ( 1.3.6.1.4.1.16868.1.1.8 NAME 'pykotaDateLimit'
68        DESC 'Date at which the soft limit becomes a hard one'
69        EQUALITY caseIgnoreIA5Match
70        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
71
72# pykotaPageCounter
73attributetype ( 1.3.6.1.4.1.16868.1.1.9 NAME 'pykotaPageCounter'
74        DESC 'Current page counter for the user on a particular printer'
75        EQUALITY integerMatch
76        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
77
78# pykotaLifePageCounter
79attributetype ( 1.3.6.1.4.1.16868.1.1.10 NAME 'pykotaLifePageCounter'
80        DESC 'Total page counter for the user on a particular printer'
81        EQUALITY integerMatch
82        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
83
84# pykotaJobId
85attributetype ( 1.3.6.1.4.1.16868.1.1.11 NAME 'pykotaJobId'
86        DESC 'Id of a job in a printer history of jobs'
87        EQUALITY caseExactIA5Match
88        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
89
90# pykotaPrinterPageCounter
91attributetype ( 1.3.6.1.4.1.16868.1.1.12 NAME 'pykotaPrinterPageCounter'
92        DESC 'Life time page counter of a printer when the job began'
93        EQUALITY integerMatch
94        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
95
96# pykotaJobSize
97attributetype ( 1.3.6.1.4.1.16868.1.1.13 NAME 'pykotaJobSize'
98        DESC 'Current job size in number of pages in the history'
99        EQUALITY caseIgnoreIA5Match
100        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
101
102# pykotaAction
103attributetype ( 1.3.6.1.4.1.16868.1.1.14 NAME 'pykotaAction'
104        DESC 'Was the job allowed, or denied : ( "ALLOW" |  "DENY" )'
105        EQUALITY caseExactIA5Match
106        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
107       
108# pykotaPrinterName       
109attributetype ( 1.3.6.1.4.1.16868.1.1.15 NAME 'pykotaPrinterName'
110        DESC 'PyKota printer name as received from the printing subsystem'
111        EQUALITY caseIgnoreIA5Match
112        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
113       
114# pykotaUserName       
115attributetype ( 1.3.6.1.4.1.16868.1.1.16 NAME 'pykotaUserName'
116        DESC 'PyKota user name'
117        EQUALITY caseExactIA5Match
118        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
119       
120# pykotaGroupName       
121attributetype ( 1.3.6.1.4.1.16868.1.1.17 NAME 'pykotaGroupName'
122        DESC 'PyKota group name'
123        EQUALITY caseExactIA5Match
124        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
125       
126# pykotaLastJobIdent       
127attributetype ( 1.3.6.1.4.1.16868.1.1.18 NAME 'pykotaLastJobIdent'
128        DESC 'Identifies the last job in the history'
129        EQUALITY caseExactIA5Match
130        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
131       
132#       
133# PyKota Object Classes
134#
135
136# pykotaUser
137objectclass ( 1.3.6.1.4.1.16868.1.2.1 NAME 'pykotaAccount' SUP top AUXILIARY
138        DESC 'PyKota Auxiliary User Account'
139        MUST ( uid )
140        MAY  ( pykotaUserName $ pykotaLimitBy ) )
141       
142# pykotaGroup       
143objectclass ( 1.3.6.1.4.1.16868.1.2.2 NAME 'pykotaGroup' SUP top AUXILIARY
144        DESC 'PyKota Auxiliary Group'
145        MUST ( cn )
146        MAY  ( pykotaGroupName $ pykotaLimitBy $ memberUid $ uniqueMember $ member ) )
147       
148# pykotaPrinter       
149objectclass ( 1.3.6.1.4.1.16868.1.2.3 NAME 'pykotaPrinter' SUP top AUXILIARY
150        DESC 'PyKota Printer'
151        MUST ( cn )
152        MAY  ( pykotaPrinterName $ pykotaPricePerPage $ pykotaPricePerJob ) )
153       
154# pykotaUserPQuota       
155objectclass ( 1.3.6.1.4.1.16868.1.2.4 NAME 'pykotaUserPQuota' SUP top AUXILIARY
156        DESC 'PyKota User Quota on a Printer'
157        MUST ( cn $ pykotaUserName $ pykotaPrinterName )
158        MAY  ( pykotaPageCounter $ pykotaLifePageCounter $ pykotaSoftLimit $ pykotaHardLimit $ pykotaDateLimit ) )
159       
160# pykotaGroupPQuota       
161objectclass ( 1.3.6.1.4.1.16868.1.2.5 NAME 'pykotaGroupPQuota' SUP top AUXILIARY
162        DESC 'PyKota Group Quota on a Printer'
163        MUST ( cn $ pykotaGroupName $ pykotaPrinterName )
164        MAY  ( pykotaSoftLimit $ pykotaHardLimit $ pykotaDateLimit ) )
165       
166# pykotaJob       
167objectclass ( 1.3.6.1.4.1.16868.1.2.6 NAME 'pykotaJob' SUP top AUXILIARY
168        DESC 'An entry in the job history for a printer'
169        MUST ( cn $ pykotaUserName $ pykotaPrinterName $ pykotaJobId )
170        MAY  ( pykotaPrinterPageCounter $ pykotaJobSize $ pykotaAction ) )
171       
172# pykotaAccountBalance
173objectclass ( 1.3.6.1.4.1.16868.1.2.7 NAME 'pykotaAccountBalance' SUP top AUXILIARY
174        DESC 'PyKota User account balance'
175        MAY  ( pykotaUserName $ pykotaBalance $ pykotaLifeTimePaid ) )
176       
177# pykotaLastJob       
178objectclass ( 1.3.6.1.4.1.16868.1.2.8 NAME 'pykotaLastJob' SUP top AUXILIARY
179        DESC 'Last job information for a printer'
180        MUST ( pykotaLastJobIdent )
181        MAY ( pykotaPrinterName ) )
182       
183# pykotaObject - Use it if you have to
184objectclass ( 1.3.6.1.4.1.16868.1.2.9 NAME 'pykotaObject' SUP top STRUCTURAL
185        DESC 'PyKota Object'
186        MUST ( cn ) )
187       
188       
Note: See TracBrowser for help on using the browser.