Changeset 1594 for pykota/trunk/conf

Show
Ignore:
Timestamp:
07/07/04 11:00:33 (20 years ago)
Author:
jalet
Message:

Better doc on external policy

Files:
1 modified

Legend:

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

    r1587 r1594  
    407407 
    408408 
    409 # Default policy for inexistant users (e.g. root) 
    410 # either allow or deny or external(some command here) 
     409# Default policy to apply when either : 
     410# 
     411#       - Printer doesn't exist in PyKota's database 
     412#       - User doesn't exist in PyKota's database 
     413#       - User has no quota entry for this Printer in PyKota's database 
     414# 
     415# Value can be either allow or deny or external(some command here) 
     416# 
    411417# This value can be set either globally or per printer or both. 
    412418# If both are defined, the printer option has priority. 
     
    418424# if he is unknown. Example : 
    419425#  
    420 #       policy: external(/usr/bin/edpykota --add --printer %(printername)s --softlimit 50 --hardlimit 60 %(username)s >/dev/null)  
     426#   policy: external(/usr/bin/edpykota --add --printer %(printername)s --softlimit 50 --hardlimit 60 %(username)s >/dev/null)  
    421427# 
    422428# Of course you can launch any command of your choice with this, e.g. : 
    423429# 
    424 #       policy: external(/usr/local/bin/myadminscript.sh %(username)s >/dev/null) 
     430#   policy: external(/usr/local/bin/myadminscript.sh %(username)s >/dev/null) 
    425431 
    426432# You can use : 
     
    435441#        layer (filter or backend) 
    436442# 
    437 # If the user still doesn't exist after external policy command was  
    438 # launched (the external command didn't add it), or if an error occured 
    439 # during the execution of the external policy command, the job is rejected. 
     443# If the printer, user, or user quota entry still doesn't exist after  
     444# external policy command was launched (the external command didn't add it),  
     445# or if an error occured during the execution of the external policy  
     446# command, then the job is rejected. 
    440447# 
    441448policy: deny