# $Id$ # # pykota.schema # # LDAP Schema for Pykota Quota System # Version 0.2 # # Include it in OpenLDAP's configuration file (/etc/ldap/slapd.conf) # and restart slapd. # # Written 2003-05-28 by Wayne Godoy and John Flynn # # Modified by Jerome Alet 2003-06-01 # # 16868.x => Conseil Internet & Logiciels Libres # 16868.1.x => Pykota # 16868.1.1.x => attributes # 16868.1.2.x => classes # # Contributors : Leif Johansson - Stockholm University # # # PyKota Attributes Types # # pykotaLimitBy attributetype ( 1.3.6.1.4.1.16868.1.1.1 NAME 'pykotaLimitBy' DESC 'How to limit the user/group : quota or balance' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) # pykotaBalance attributetype ( 1.3.6.1.4.1.16868.1.1.2 NAME 'pykotaBalance' DESC 'Current account balance for the user, float' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) # pykotaLifeTimePaid attributetype ( 1.3.6.1.4.1.16868.1.1.3 NAME 'pykotaLifeTimePaid' DESC 'Total money paid by the user to fill his account balance, float' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) # pykotaPricePerPage attributetype ( 1.3.6.1.4.1.16868.1.1.4 NAME 'pykotaPricePerPage' DESC 'Price per page for a printer, float' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) # pykotaPricePerJob attributetype ( 1.3.6.1.4.1.16868.1.1.5 NAME 'pykotaPricePerJob' DESC 'Price per job for a printer, float' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) # pykotaSoftLimit attributetype ( 1.3.6.1.4.1.16868.1.1.6 NAME 'pykotaSoftLimit' DESC 'Soft limit in maximal number of pages' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) # pykotaHardLimit attributetype ( 1.3.6.1.4.1.16868.1.1.7 NAME 'pykotaHardLimit' DESC 'Hard limit in maximal number of pages' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) # pykotaDateLimit attributetype ( 1.3.6.1.4.1.16868.1.1.8 NAME 'pykotaDateLimit' DESC 'Date at which the soft limit becomes a hard one' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) # pykotaPageCounter attributetype ( 1.3.6.1.4.1.16868.1.1.9 NAME 'pykotaPageCounter' DESC 'Current page counter for the user on a particular printer' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) # pykotaLifePageCounter attributetype ( 1.3.6.1.4.1.16868.1.1.10 NAME 'pykotaLifePageCounter' DESC 'Total page counter for the user on a particular printer' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) # pykotaJobId attributetype ( 1.3.6.1.4.1.16868.1.1.11 NAME 'pykotaJobId' DESC 'Id of a job in a printer history of jobs' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) # pykotaPrinterPageCounter attributetype ( 1.3.6.1.4.1.16868.1.1.12 NAME 'pykotaPrinterPageCounter' DESC 'Life time page counter of a printer when the job began' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) # pykotaJobSize attributetype ( 1.3.6.1.4.1.16868.1.1.13 NAME 'pykotaJobSize' DESC 'Current job size in number of pages in the history' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) # pykotaAction attributetype ( 1.3.6.1.4.1.16868.1.1.14 NAME 'pykotaAction' DESC 'Was the job allowed, or denied : ( "ALLOW" | "DENY" )' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) # pykotaPrinterName attributetype ( 1.3.6.1.4.1.16868.1.1.15 NAME 'pykotaPrinterName' DESC 'PyKota printer name as received from the printing subsystem' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) # pykotaUserName attributetype ( 1.3.6.1.4.1.16868.1.1.16 NAME 'pykotaUserName' DESC 'PyKota user name' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) # pykotaGroupName attributetype ( 1.3.6.1.4.1.16868.1.1.17 NAME 'pykotaGroupName' DESC 'PyKota group name' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) # pykotaLastJobIdent attributetype ( 1.3.6.1.4.1.16868.1.1.18 NAME 'pykotaLastJobIdent' DESC 'Identifies the last job in the history' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) # # PyKota Object Classes # # pykotaUser objectclass ( 1.3.6.1.4.1.16868.1.2.1 NAME 'pykotaAccount' SUP top AUXILIARY DESC 'PyKota Auxiliary User Account' MUST ( uid ) MAY ( pykotaUserName $ pykotaLimitBy ) ) # pykotaGroup objectclass ( 1.3.6.1.4.1.16868.1.2.2 NAME 'pykotaGroup' SUP top AUXILIARY DESC 'PyKota Auxiliary Group' MUST ( cn ) MAY ( pykotaGroupName $ pykotaLimitBy $ memberUid $ uniqueMember $ member ) ) # pykotaPrinter objectclass ( 1.3.6.1.4.1.16868.1.2.3 NAME 'pykotaPrinter' SUP top AUXILIARY DESC 'PyKota Printer' MUST ( cn ) MAY ( pykotaPrinterName $ pykotaPricePerPage $ pykotaPricePerJob ) ) # pykotaUserPQuota objectclass ( 1.3.6.1.4.1.16868.1.2.4 NAME 'pykotaUserPQuota' SUP top AUXILIARY DESC 'PyKota User Quota on a Printer' MUST ( cn $ pykotaUserName $ pykotaPrinterName ) MAY ( pykotaPageCounter $ pykotaLifePageCounter $ pykotaSoftLimit $ pykotaHardLimit $ pykotaDateLimit ) ) # pykotaGroupPQuota objectclass ( 1.3.6.1.4.1.16868.1.2.5 NAME 'pykotaGroupPQuota' SUP top AUXILIARY DESC 'PyKota Group Quota on a Printer' MUST ( cn $ pykotaGroupName $ pykotaPrinterName ) MAY ( pykotaSoftLimit $ pykotaHardLimit $ pykotaDateLimit ) ) # pykotaJob objectclass ( 1.3.6.1.4.1.16868.1.2.6 NAME 'pykotaJob' SUP top AUXILIARY DESC 'An entry in the job history for a printer' MUST ( cn $ pykotaUserName $ pykotaPrinterName $ pykotaJobId ) MAY ( pykotaPrinterPageCounter $ pykotaJobSize $ pykotaAction ) ) # pykotaAccountBalance objectclass ( 1.3.6.1.4.1.16868.1.2.7 NAME 'pykotaAccountBalance' SUP top AUXILIARY DESC 'PyKota User account balance' MAY ( pykotaUserName $ pykotaBalance $ pykotaLifeTimePaid ) ) # pykotaLastJob objectclass ( 1.3.6.1.4.1.16868.1.2.8 NAME 'pykotaLastJob' SUP top AUXILIARY DESC 'Last job information for a printer' MUST ( pykotaLastJobIdent ) MAY ( pykotaPrinterName ) ) # pykotaObject - Use it if you have to objectclass ( 1.3.6.1.4.1.16868.1.2.9 NAME 'pykotaObject' SUP top STRUCTURAL DESC 'PyKota Object' MUST ( cn ) )