Changeset 1200 for pykota/trunk/initscripts
- Timestamp:
- 11/21/03 15:28:46 (21 years ago)
- Location:
- pykota/trunk/initscripts
- Files:
-
- 6 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/initscripts/ldap/pykota-sample.ldif
r1098 r1200 2 2 # PyKota sample LDAP directory tree 3 3 # 4 # DON'T USE THIS. THIS IS AN EXAMPLE. 4 # YOU CAN USE IT TO CREATE AN INITIAL LDAP TREE WITH PYKOTA SUPPORT. 5 # 6 # ITS STRUCTURE IS AN EXAMPLE : YOU CAN USE WHATEVER STRUCTURE YOU WANT, 7 # PROVIDED YOU PUT CORRECT CONFIGURATION PARAMETERS IN /etc/pykota/pykota.conf 5 8 # 6 9 # $Id$ … … 39 42 objectClass: organizationalUnit 40 43 41 dn: uid=jerome,ou=People,dc=librelogiciel,dc=com42 uid: jerome43 cn:: SmVyb21lIEFsZXQ=44 objectClass: account45 objectClass: posixAccount46 objectClass: top47 objectClass: shadowAccount48 objectClass: pykotaAccount49 objectClass: pykotaAccountBalance50 userPassword: {crypt}PvuIT4Mz8.lCM51 shadowLastChange: 1209352 shadowMax: 9999953 shadowWarning: 754 loginShell: /bin/bash55 uidNumber: 50056 gidNumber: 50057 homeDirectory: /home/jerome58 gecos: Jerome Alet,,,59 pykotaUserName: jerome60 pykotaLimitBy: quota61 pykotaBalance: 9.2562 pykotaLifeTimePaid: 1063 64 dn: cn=devel,ou=Groups,dc=librelogiciel,dc=com65 objectClass: posixGroup66 objectClass: top67 objectClass: pykotaGroup68 cn: devel69 userPassword: {crypt}x70 gidNumber: 50071 memberUid: jerome72 pykotaGroupName: devel73 pykotaLimitBy: quota74 75 dn: cn=apple,ou=Printers,ou=PyKota,dc=librelogiciel,dc=com76 objectClass: pykotaObject77 objectClass: pykotaPrinter78 cn: apple79 pykotaPrinterName: apple80 pykotaPricePerPage: 0.181 pykotaPricePerJob: 0.2582 83 dn: cn=uniqueidentifier01,ou=UQuotas,ou=PyKota,dc=librelogiciel,dc=com84 objectClass: pykotaObject85 objectClass: pykotaUserPQuota86 cn: uniqueidentifier0187 pykotaUserName: jerome88 pykotaPrinterName: apple89 pykotaPageCounter: 590 pykotaLifePageCounter: 591 pykotaSoftLimit: 10092 pykotaHardLimit: 11093 pykotaDateLimit: None94 95 dn: cn=uniqueidentifier02,ou=GQuotas,ou=PyKota,dc=librelogiciel,dc=com96 objectClass: pykotaObject97 objectClass: pykotaGroupPQuota98 cn: uniqueidentifier0299 pykotaGroupName: devel100 pykotaPrinterName: apple101 pykotaSoftLimit: 400102 pykotaHardLimit: 450103 pykotaDateLimit: None104 105 dn: cn=uniqueidentifier03,ou=Jobs,ou=PyKota,dc=librelogiciel,dc=com106 objectClass: pykotaObject107 objectClass: pykotaJob108 cn: uniqueidentifier03109 pykotaUserName: jerome110 pykotaPrinterName: apple111 pykotaJobId: 15112 pykotaPrinterPageCounter: 1533113 pykotaJobSize: 5114 pykotaAction: ALLOW115 116 dn: cn=uniqueidentifier04,ou=LastJobs,ou=PyKota,dc=librelogiciel,dc=com117 objectClass: pykotaObject118 objectClass: pykotaLastJob119 cn: uniqueidentifier04120 pykotaPrinterName: apple121 pykotaLastJobIdent: uniqueidentifier03 -
pykota/trunk/initscripts/ldap/pykota.schema
r1108 r1200 100 100 attributetype ( 1.3.6.1.4.1.16868.1.1.13 NAME 'pykotaJobSize' 101 101 DESC 'Current job size in number of pages in the history' 102 EQUALITY caseIgnoreIA5Match103 SYNTAX 1.3.6.1.4.1.1466.115.121.1.2 6SINGLE-VALUE )102 EQUALITY integerMatch 103 SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) 104 104 105 105 # pykotaAction … … 112 112 attributetype ( 1.3.6.1.4.1.16868.1.1.15 NAME 'pykotaPrinterName' 113 113 DESC 'PyKota printer name as received from the printing subsystem' 114 EQUALITY caseIgnoreIA5Match 114 EQUALITY caseExactIA5Match 115 SUBSTR caseExactIA5SubstringsMatch 115 116 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) 116 117 … … 119 120 DESC 'PyKota user name' 120 121 EQUALITY caseExactIA5Match 122 SUBSTR caseExactIA5SubstringsMatch 121 123 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) 122 124 … … 125 127 DESC 'PyKota group name' 126 128 EQUALITY caseExactIA5Match 129 SUBSTR caseExactIA5SubstringsMatch 127 130 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) 128 131 … … 131 134 DESC 'Identifies the last job in the history' 132 135 EQUALITY caseExactIA5Match 136 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) 137 138 # pykotaFileName 139 attributetype ( 1.3.6.1.4.1.16868.1.1.19 NAME 'pykotaFileName' 140 DESC 'Print job filename' 141 EQUALITY caseExactIA5Match 142 SUBSTR caseExactIA5SubstringsMatch 143 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) 144 145 # pykotaTitle 146 attributetype ( 1.3.6.1.4.1.16868.1.1.20 NAME 'pykotaTitle' 147 DESC 'Print job title' 148 EQUALITY caseIgnoreIA5Match 149 SUBSTR caseIgnoreIA5SubstringsMatch 150 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) 151 152 # pykotaCopies 153 attributetype ( 1.3.6.1.4.1.16868.1.1.21 NAME 'pykotaCopies' 154 DESC 'Number of copies of the current print job' 155 EQUALITY integerMatch 156 SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) 157 158 # pykotaOptions 159 attributetype ( 1.3.6.1.4.1.16868.1.1.22 NAME 'pykotaOptions' 160 DESC 'Print job options' 161 EQUALITY caseExactIA5Match 162 SUBSTR caseExactIA5SubstringsMatch 133 163 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) 134 164 … … 171 201 DESC 'An entry in the job history for a printer' 172 202 MUST ( cn $ pykotaUserName $ pykotaPrinterName $ pykotaJobId ) 173 MAY ( pykotaPrinterPageCounter $ pykotaJobSize $ pykotaAction ) )203 MAY ( pykotaPrinterPageCounter $ pykotaJobSize $ pykotaAction $ pykotaFileName $ pykotaTitle $ pykotaCopies $ pykotaOptions ) ) 174 204 175 205 # pykotaAccountBalance -
pykota/trunk/initscripts/ldap/README.ldap
r1165 r1200 56 56 But we recommend that you add these : 57 57 58 index pykotaUserName eq59 index pykotaGroupName eq60 index pykotaPrinterName eq58 index pykotaUserName pres,eq,sub 59 index pykotaGroupName pres,eq,sub 60 index pykotaPrinterName pres,eq,sub 61 61 index pykotaLastJobIdent eq 62 63 NB : PyKota's schema doesn't currently allow substring64 matches, but they would probably be very helpful65 for the pykotaUserName, pykotaGroupName and pykotaPrinterName66 attributes. This problem will be solved in a future67 release.68 62 69 63 Finally, restart the OpenLDAP server : … … 73 67 pykota-sample.ldif : 74 68 75 This file represents a sample LDAP directory tree dump with 76 PyKota functionnalities. 77 DON'T USE THIS FILE. IT IS JUST THERE TO SERVE AS AN EXAMPLE. 69 You can use this file to initialize an LDAP tree for PyKota, if 70 you want. 71 72 The structure used in this file is NOT mandatory ! 73 Provided you put correct parameters into /etc/pykota/pykota.conf, 74 you can structure your LDAP directory the way you want. 78 75 79 76 To use an LDAP directory as the Quota Storage, just modify -
pykota/trunk/initscripts/postgresql/pykota-postgresql.sql
r1087 r1200 20 20 -- 21 21 -- $Log$ 22 -- Revision 1.5 2003/11/21 14:28:45 jalet 23 -- More complete job history. 24 -- 22 25 -- Revision 1.4 2003/07/16 21:53:07 jalet 23 26 -- Really big modifications wrt new configuration file's location and content. … … 97 100 hardlimit INT4, 98 101 datelimit TIMESTAMP); 102 CREATE UNIQUE INDEX userpquota_up_id_ix ON userpquota (userid, printerid); 99 103 100 104 -- … … 108 112 jobsize INT4, 109 113 action TEXT, 114 filename TEXT, 115 title TEXT, 116 copies INT4, 117 options TEXT, 110 118 jobdate TIMESTAMP DEFAULT now()); 119 CREATE INDEX jobhistory_p_id_ix ON jobhistory (printerid); 120 CREATE INDEX jobhistory_pd_id_ix ON jobhistory (printerid, jobdate); 111 121 112 122 -- … … 119 129 hardlimit INT4, 120 130 datelimit TIMESTAMP); 131 CREATE UNIQUE INDEX grouppquota_up_id_ix ON grouppquota (groupid, printerid); 121 132 122 133 -- -
pykota/trunk/initscripts/postgresql/README.postgresql
r1079 r1200 51 51 Upgrade scripts : 52 52 53 DON'T DO ANYTHING IF THIS IS YOUR FIRST INSTALLATION 54 OF PYKOTA. 55 53 56 Some scripts to upgrade old PyKota databases to the new 54 57 database schema are included. You may have to run all … … 56 59 version of PyKota. 57 60 61 * An SQL script to upgrade a pre-1.16 PyKota Storage DataBase to 62 1.16 is included. Launch it this way on the Quota Storage Server : 63 64 $ psql -U postgres pykota 65 pykota=# \i upgrade-to-1.16.sql 66 pykota=# \q 67 $ 68 69 This script adds some fields to the print job history, so that 70 more complete information will be known. The fields that 71 are added are : filename, title, copies and print command options. 72 Also some indexes are created to speed things up. 58 73 74 What is below is for historical reasons only, real people don't use 75 such old beasts, and YOU SHOULDN'T EITHER ! 76 59 77 * An SQL script to upgrade a pre-1.14 PyKota Storage DataBase to 60 78 1.14 is included. Launch it this way on the Quota Storage Server : … … 69 87 messages in case he is over quota. 70 88 71 What is below is for historical reasons only, real people don't use72 such old beasts, and YOU SHOULDN'T EITHER !73 74 89 * An sql script to upgrade a pre-1.01 PyKota Quota Storage DataBase to 75 90 1.01 is still included for historical reasons. PLEASE DON'T USE IT ! -
pykota/trunk/initscripts/README
r1037 r1200 45 45 ============================================================================= 46 46 47 * upgrade-to-1.16.sql : 48 49 This file upgrades the PostgreSQL Quota Storage Database schema 50 from versions before 1.16 to version 1.16. 51 NEVER USE IT IF YOU ALREADY RUN 1.16 OR ABOVE ! 52 53 * upgrade-to-1.14.sql : 54 55 This file upgrades the PostgreSQL Quota Storage Database schema 56 from versions before 1.14 to version 1.14. 57 NEVER USE IT IF YOU ALREADY RUN 1.14 OR ABOVE ! 58 47 59 * VERYOLDpykota-upgrade-postgresql.sql : 48 60