Show
Ignore:
Timestamp:
10/08/03 23:41:38 (21 years ago)
Author:
jalet
Message:

External policies for printers works !
We can now auto-add users on first print, and do other useful things if needed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/conf/pykota.conf.sample

    r1149 r1152  
    300300 
    301301# Default policy for inexistant users (e.g. root) 
    302 # either allow or deny 
     302# either allow or deny or external(some command here) 
    303303# This value can be set either globally or per printer or both. 
    304304# If both are defined, the printer option has priority. 
     
    309309#     charged to the next person who prints on the same printer. 
    310310# There's no policy wrt inexistant groups, they are ignored. 
     311# 
     312# external policy can be used to launch any external command of your choice, 
     313# for example to automatically add the user to the quota storage  
     314# if he is unknown. Example : 
     315#  
     316#       policy: external(/usr/bin/edpykota --add --printer %(printer)s --softlimit 50 --hardlimit 60 %(user)s)  
     317# 
     318#       NB : '%(user)s' and '%(printer)s' will be automatically replaced  
     319#            by the user and printer names.  
     320# 
     321# Of course you can launch any command of your choice with this, e.g. : 
     322# 
     323#       policy: external(/usr/local/bin/myadminscript.sh %(user)s) 
     324# 
    311325policy: deny 
    312326