Changeset 1025
- Timestamp:
- 06/13/03 19:27:56 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/conf/pykota.conf.sample
r1021 r1025 51 51 #storagename: dc=librelogiciel,dc=com 52 52 #storageadmin: cn=admin,dc=librelogiciel,dc=com 53 #storageuser: cn=admin,dc=librelogiciel,dc=com54 53 #storageadminpw: abc.123 55 #storageuserpw: xyz.345 54 # 55 # Here we define some helpers to know where 56 # to plug into an existing LDAP directory 57 #usersou: ou=People,dc=librelogiciel,dc=com 58 #userrdn: uid 59 #groupsou: ou=Groups,dc=librelogiciel,dc=com 60 #grouprdn: cn 61 #printersou: ou=Printers,dc=librelogiciel,dc=com 62 #printerrdn: cn 63 #jobsou: ou=Jobs,ou=PyKota,dc=librelogiciel,dc=com 64 #userquotasou: ou=UQuotas,ou=PyKota,dc=librelogiciel,dc=com 65 #groupquotasou: ou=GQuotas,ou=PyKota,dc=librelogiciel,dc=com 66 #lastjobsou: ou=LastJobs,ou=PyKota,dc=librelogiciel,dc=com 56 67 57 68 # Where to log ? … … 134 145 135 146 # one section per printer, or no other section at all if all options 136 # are defined globally 137 [lp] 147 # are defined globally. 148 # The section's name must be the same as the printer's name as defined 149 # in your printing system, be it CUPS or LPRng. 150 [hpmarketing] 138 151 139 152 # How to query the lp printer for its page counter. … … 145 158 # 146 159 # Example : 147 # requester: external( snmpget -v1 -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 | cut -f 2,2 -d " ")160 # requester: external(/usr/bin/snmpget -v1 -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 | cut -f 2,2 -d " ") 148 161 # and : 149 162 # requester: snmp(public, mib-2.43.10.2.1.4.1.1) … … 151 164 # 152 165 # Another untested example, using npadmin : 153 # requester: external( npadmin --pagecount %(printer)s)166 # requester: external(/usr/bin/npadmin --pagecount %(printer)s) 154 167 # 155 168 # Another example, for AppleTalk printers which works fine : … … 169 182 # WARNING : In any case, when using an external requester, please test the command line outside 170 183 # of PyKota before. This will save you some headaches in case it doesn't work as expected. 171 requester: external( snmpget -v1 -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 | cut -f 2,2 -d " ")184 requester: external(/usr/bin/snmpget -v1 -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 | cut -f 2,2 -d " ") 172 185 173 186 # Default policy for inexistant users (e.g. root)