Changeset 1013

Show
Ignore:
Timestamp:
06/04/03 15:59:26 (21 years ago)
Author:
jalet
Message:

LDAP schema seems good.

Location:
pykota/trunk/initscripts
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/initscripts/pykota-sample.ldif

    r1012 r1013  
    1 #dn: ou=People,dc=librelogiciel,dc=com 
    2 #ou: People 
    3 #objectClass: organizationalUnit 
     1dn: ou=People,dc=librelogiciel,dc=com 
     2ou: People 
     3objectClass: organizationalUnit 
    44 
    5 #dn: ou=Groups,dc=librelogiciel,dc=com 
    6 #ou: Groups 
    7 #objectClass: organizationalUnit 
     5dn: ou=Groups,dc=librelogiciel,dc=com 
     6ou: Groups 
     7objectClass: organizationalUnit 
    88 
    9 #dn: ou=Printers,dc=librelogiciel,dc=com 
    10 #ou: Printers 
    11 #objectClass: organizationalUnit 
     9dn: ou=Printers,dc=librelogiciel,dc=com 
     10ou: Printers 
     11objectClass: organizationalUnit 
    1212 
    13 #dn: uid=jerome,ou=People,dc=librelogiciel,dc=com 
    14 #uid: jerome 
    15 #cn:: SmVyb21lIEFsZXQ= 
    16 #objectClass: account 
    17 #objectClass: posixAccount 
    18 #objectClass: top 
    19 #objectClass: shadowAccount 
    20 #objectClass: pykotaUser 
    21 #userPassword: {crypt}PvuIT4Mz8.lCM 
    22 #shadowLastChange: 12093 
    23 #shadowMax: 99999 
    24 #shadowWarning: 7 
    25 #loginShell: /bin/bash 
    26 #uidNumber: 500 
    27 #gidNumber: 500 
    28 #homeDirectory: /home/jerome 
    29 #gecos: Jerome Alet,,, 
    30 #pykotaLimitBy: quota 
    31 #pykotaBalance: 0 
    32 #pykotaLifeTimePaid: 0 
     13dn: uid=jerome,ou=People,dc=librelogiciel,dc=com 
     14uid: jerome 
     15cn:: SmVyb21lIEFsZXQ= 
     16objectClass: account 
     17objectClass: posixAccount 
     18objectClass: top 
     19objectClass: shadowAccount 
     20objectClass: pykotaUser 
     21userPassword: {crypt}PvuIT4Mz8.lCM 
     22shadowLastChange: 12093 
     23shadowMax: 99999 
     24shadowWarning: 7 
     25loginShell: /bin/bash 
     26uidNumber: 500 
     27gidNumber: 500 
     28homeDirectory: /home/jerome 
     29gecos: Jerome Alet,,, 
     30pykotaLimitBy: quota 
     31pykotaBalance: 0 
     32pykotaLifeTimePaid: 0 
    3333 
    34 #dn: cn=jerome,ou=Groups,dc=librelogiciel,dc=com 
    35 #objectClass: posixGroup 
    36 #objectClass: top 
    37 #objectClass: pykotaGroup 
    38 #cn: jerome 
    39 #userPassword: {crypt}x 
    40 #gidNumber: 500 
    41 #pykotaLimitBy: quota 
     34dn: cn=devel,ou=Groups,dc=librelogiciel,dc=com 
     35objectClass: posixGroup 
     36objectClass: top 
     37objectClass: pykotaGroup 
     38cn: devel 
     39userPassword: {crypt}x 
     40gidNumber: 500 
     41memberUid: jerome 
     42pykotaLimitBy: quota 
    4243 
    43 #dn: pykotaPrinterName=apple,ou=Printers,dc=librelogiciel,dc=com 
    44 #objectClass: pykotaPrinter 
    45 #pykotaPrinterName: apple 
    46 #pykotaPricePerPage: 0.1 
    47 #pykotaPricePerJob: 0.25 
     44dn: pykotaPrinterName=apple,ou=Printers,dc=librelogiciel,dc=com 
     45objectClass: pykotaPrinter 
     46pykotaPrinterName: apple 
     47pykotaPricePerPage: 0.1 
     48pykotaPricePerJob: 0.25 
    4849 
     50dn: ou=userPQuotas,pykotaPrinterName=apple,ou=Printers,dc=librelogiciel,dc=com 
     51ou: userPQuotas 
     52objectClass: organizationalUnit 
     53 
     54dn: ou=groupPQuotas,pykotaPrinterName=apple,ou=Printers,dc=librelogiciel,dc=com 
     55ou: groupPQuotas 
     56objectClass: organizationalUnit 
     57 
     58dn: ou=Jobs,pykotaPrinterName=apple,ou=Printers,dc=librelogiciel,dc=com 
     59ou: Jobs 
     60objectClass: organizationalUnit 
     61 
     62dn: uid=jerome,ou=userPQuotas,pykotaPrinterName=apple,ou=Printers,dc=librelogiciel,dc=com 
     63objectClass: pykotaUserPQuota 
     64uid: jerome 
     65pykotaPageCounter: 0 
     66pykotaLifePageCounter: 0 
     67pykotaSoftLimit: 100 
     68pykotaHardLimit: 110 
     69pykotaDateLimit: None 
     70 
     71dn: cn=devel,ou=groupPQuotas,pykotaPrinterName=apple,ou=Printers,dc=librelogiciel,dc=com 
     72objectClass: pykotaGroupPQuota 
     73cn: devel 
     74pykotaSoftLimit: 400 
     75pykotaHardLimit: 450 
     76pykotaDateLimit: None 
     77 
     78dn: pykotaJobHistoryId=1,ou=Jobs,pykotaPrinterName=apple,ou=Printers,dc=librelogiciel,dc=com 
     79objectClass: pykotaPrinterJob 
     80pykotaJobHistoryId: 1 
     81pykotaJobId: 15 
     82uid: jerome 
     83pykotaPrinterPageCounter: 1533 
     84pykotaJobSize: 5 
     85pykotaAction: ALLOW 
     86pykotaJobDate: 2003-06-04 16:12 
  • pykota/trunk/initscripts/pykota.schema

    r1012 r1013  
    2727 
    2828attributetype ( 1.3.6.1.4.1.16868.1.1.1 NAME 'pykotaLimitBy' 
    29         DESC 'How to limit the user : quota or balance' 
     29        DESC 'How to limit the user/group : quota or balance' 
    3030        EQUALITY caseIgnoreIA5Match 
    3131        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) 
     
    5656        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) 
    5757 
     58attributetype ( 1.3.6.1.4.1.16868.1.1.7 NAME 'pykotaSoftLimit' 
     59        DESC 'Soft limit in maximal number of pages' 
     60        EQUALITY integerMatch 
     61        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) 
     62         
     63attributetype ( 1.3.6.1.4.1.16868.1.1.8 NAME 'pykotaHardLimit' 
     64        DESC 'Hard limit in maximal number of pages' 
     65        EQUALITY integerMatch 
     66        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) 
     67 
     68attributetype ( 1.3.6.1.4.1.16868.1.1.9 NAME 'pykotaDateLimit' 
     69        DESC 'Date at which the soft limit becomes a hard one' 
     70        EQUALITY caseIgnoreIA5Match 
     71        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) 
     72 
     73attributetype ( 1.3.6.1.4.1.16868.1.1.10 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 
     78attributetype ( 1.3.6.1.4.1.16868.1.1.11 NAME 'pykotaLifePageCounter' 
     79        DESC 'Total page counter for the user on a particular printer' 
     80        EQUALITY integerMatch 
     81        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) 
     82 
     83attributetype ( 1.3.6.1.4.1.16868.1.1.12 NAME 'pykotaJobHistoryId' 
     84        DESC 'Id of an entry in a printer history of jobs' 
     85        EQUALITY integerMatch 
     86        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) 
     87 
     88attributetype ( 1.3.6.1.4.1.16868.1.1.13 NAME 'pykotaJobId' 
     89        DESC 'Id of a job in a printer history of jobs' 
     90        EQUALITY integerMatch 
     91        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) 
     92 
     93attributetype ( 1.3.6.1.4.1.16868.1.1.14 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 
     98attributetype ( 1.3.6.1.4.1.16868.1.1.15 NAME 'pykotaJobSize' 
     99        DESC 'Current job size in number of pages in the history' 
     100        EQUALITY integerMatch 
     101        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) 
     102 
     103attributetype ( 1.3.6.1.4.1.16868.1.1.16 NAME 'pykotaAction' 
     104        DESC 'Was the job allowed, or denied' 
     105        EQUALITY caseIgnoreIA5Match 
     106        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) 
     107         
     108attributetype ( 1.3.6.1.4.1.16868.1.1.17 NAME 'pykotaJobDate' 
     109        DESC 'Date of when the job began' 
     110        EQUALITY caseIgnoreIA5Match 
     111        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) 
     112 
    58113 
    59114## New Pykota User object type 
     
    74129        MUST ( pykotaPrinterName ) 
    75130        MAY  ( pykotaPricePerPage $ pykotaPricePerJob ) ) 
     131         
     132## New PyKota User Print Quota on a Printer         
     133objectclass ( 1.3.6.1.4.1.16868.1.2.4 NAME 'pykotaUserPQuota' SUP top STRUCTURAL 
     134        DESC 'PyKota User Quota on a Printer' 
     135        MUST ( uid ) 
     136        MAY  ( pykotaPageCounter $ pykotaLifePageCounter $ pykotaSoftLimit $ pykotaHardLimit $ pykotaDateLimit ) ) 
     137         
     138## New PyKota Group Print Quota on a Printer         
     139objectclass ( 1.3.6.1.4.1.16868.1.2.5 NAME 'pykotaGroupPQuota' SUP top STRUCTURAL 
     140        DESC 'PyKota Group Quota on a Printer' 
     141        MUST ( cn ) 
     142        MAY  ( pykotaSoftLimit $ pykotaHardLimit $ pykotaDateLimit ) ) 
     143         
     144## New PyKota Job entry in a Printer's history         
     145objectclass ( 1.3.6.1.4.1.16868.1.2.6 NAME 'pykotaPrinterJob' SUP top STRUCTURAL 
     146        DESC 'An entry in the job history for a printer' 
     147        MUST ( pykotaJobHistoryId $ uid $ pykotaJobId ) 
     148        MAY  ( pykotaPrinterPageCounter $ pykotaJobSize $ pykotaAction $ pykotaJobDate ) ) 
     149