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
RevLine 
[1015]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#
[1017]17# Contributors : Leif Johansson
18#
[1015]19
[1017]20#       
21# PyKota Attributes Types
22#
[1015]23
[1017]24# pykotaLimitBy
[1015]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
[1017]30# pykotaBalance
[1015]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
[1017]36# pykotaLifeTimePaid
[1015]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
[1017]42# pykotaPricePerPage
[1015]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
[1017]48# pykotaPricePerJob
[1015]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
[1017]54# pykotaSoftLimit
55attributetype ( 1.3.6.1.4.1.16868.1.1.6 NAME 'pykotaSoftLimit'
[1015]56        DESC 'Soft limit in maximal number of pages'
[1041]57        EQUALITY caseIgnoreIA5Match
58        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
[1015]59       
[1017]60# pykotaHardLimit       
61attributetype ( 1.3.6.1.4.1.16868.1.1.7 NAME 'pykotaHardLimit'
[1015]62        DESC 'Hard limit in maximal number of pages'
[1041]63        EQUALITY caseIgnoreIA5Match
64        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
[1015]65
[1017]66# pykotaDateLimit
67attributetype ( 1.3.6.1.4.1.16868.1.1.8 NAME 'pykotaDateLimit'
[1015]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
[1017]72# pykotaPageCounter
73attributetype ( 1.3.6.1.4.1.16868.1.1.9 NAME 'pykotaPageCounter'
[1015]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
[1017]78# pykotaLifePageCounter
79attributetype ( 1.3.6.1.4.1.16868.1.1.10 NAME 'pykotaLifePageCounter'
[1015]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
[1017]84# pykotaJobId
85attributetype ( 1.3.6.1.4.1.16868.1.1.11 NAME 'pykotaJobId'
[1015]86        DESC 'Id of a job in a printer history of jobs'
[1017]87        EQUALITY caseExactIA5Match
88        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
[1015]89
[1017]90# pykotaPrinterPageCounter
91attributetype ( 1.3.6.1.4.1.16868.1.1.12 NAME 'pykotaPrinterPageCounter'
[1015]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
[1017]96# pykotaJobSize
97attributetype ( 1.3.6.1.4.1.16868.1.1.13 NAME 'pykotaJobSize'
[1015]98        DESC 'Current job size in number of pages in the history'
[1041]99        EQUALITY caseIgnoreIA5Match
100        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
[1015]101
[1017]102# pykotaAction
103attributetype ( 1.3.6.1.4.1.16868.1.1.14 NAME 'pykotaAction'
[1018]104        DESC 'Was the job allowed, or denied : ( "ALLOW" |  "DENY" )'
105        EQUALITY caseExactIA5Match
[1015]106        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
107       
[1017]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'
[1015]111        EQUALITY caseIgnoreIA5Match
112        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
[1017]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       
[1018]126# pykotaLastJobIdent       
127attributetype ( 1.3.6.1.4.1.16868.1.1.18 NAME 'pykotaLastJobIdent'
128        DESC 'Identifies the last job in the history'
[1017]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#
[1015]135
[1017]136# pykotaUser
137objectclass ( 1.3.6.1.4.1.16868.1.2.1 NAME 'pykotaAccount' SUP top AUXILIARY
[1015]138        DESC 'PyKota Auxiliary User Account'
[1018]139        MUST ( uid )
140        MAY  ( pykotaUserName $ pykotaLimitBy ) )
[1015]141       
[1017]142# pykotaGroup       
[1015]143objectclass ( 1.3.6.1.4.1.16868.1.2.2 NAME 'pykotaGroup' SUP top AUXILIARY
144        DESC 'PyKota Auxiliary Group'
[1018]145        MUST ( cn )
146        MAY  ( pykotaGroupName $ pykotaLimitBy $ memberUid $ uniqueMember $ member ) )
[1015]147       
[1017]148# pykotaPrinter       
149objectclass ( 1.3.6.1.4.1.16868.1.2.3 NAME 'pykotaPrinter' SUP top AUXILIARY
[1015]150        DESC 'PyKota Printer'
[1018]151        MUST ( cn )
152        MAY  ( pykotaPrinterName $ pykotaPricePerPage $ pykotaPricePerJob ) )
[1015]153       
[1017]154# pykotaUserPQuota       
155objectclass ( 1.3.6.1.4.1.16868.1.2.4 NAME 'pykotaUserPQuota' SUP top AUXILIARY
[1015]156        DESC 'PyKota User Quota on a Printer'
[1017]157        MUST ( cn $ pykotaUserName $ pykotaPrinterName )
[1015]158        MAY  ( pykotaPageCounter $ pykotaLifePageCounter $ pykotaSoftLimit $ pykotaHardLimit $ pykotaDateLimit ) )
159       
[1017]160# pykotaGroupPQuota       
161objectclass ( 1.3.6.1.4.1.16868.1.2.5 NAME 'pykotaGroupPQuota' SUP top AUXILIARY
[1015]162        DESC 'PyKota Group Quota on a Printer'
[1017]163        MUST ( cn $ pykotaGroupName $ pykotaPrinterName )
[1015]164        MAY  ( pykotaSoftLimit $ pykotaHardLimit $ pykotaDateLimit ) )
165       
[1017]166# pykotaJob       
167objectclass ( 1.3.6.1.4.1.16868.1.2.6 NAME 'pykotaJob' SUP top AUXILIARY
[1015]168        DESC 'An entry in the job history for a printer'
[1017]169        MUST ( cn $ pykotaUserName $ pykotaPrinterName $ pykotaJobId )
170        MAY  ( pykotaPrinterPageCounter $ pykotaJobSize $ pykotaAction ) )
[1015]171       
[1017]172# pykotaAccountBalance
173objectclass ( 1.3.6.1.4.1.16868.1.2.7 NAME 'pykotaAccountBalance' SUP top AUXILIARY
174        DESC 'PyKota User account balance'
[1018]175        MAY  ( pykotaUserName $ pykotaBalance $ pykotaLifeTimePaid ) )
[1017]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'
[1018]180        MUST ( pykotaLastJobIdent )
181        MAY ( pykotaPrinterName ) )
[1017]182       
[1018]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'
[1017]186        MUST ( cn ) )
187       
188       
Note: See TracBrowser for help on using the browser.