Show
Ignore:
Timestamp:
11/20/03 00:19:38 (20 years ago)
Author:
jalet
Message:

Code refactoring work.
Explicit redirection to /dev/null has to be set in external policy now, just
like in external mailto.

Files:
1 modified

Legend:

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

    r1193 r1196  
    340340# if he is unknown. Example : 
    341341#  
    342 #       policy: external(/usr/bin/edpykota --add --printer %(printer)s --softlimit 50 --hardlimit 60 %(user)s)  
    343 # 
    344 #       NB : '%(user)s' and '%(printer)s' will be automatically replaced  
    345 #            by the user and printer names.  
     342#       policy: external(/usr/bin/edpykota --add --printer %(printer)s --softlimit 50 --hardlimit 60 %(user)s >/dev/null)  
    346343# 
    347344# Of course you can launch any command of your choice with this, e.g. : 
    348345# 
    349 #       policy: external(/usr/local/bin/myadminscript.sh %(user)s) 
     346#       policy: external(/usr/local/bin/myadminscript.sh %(user)s >/dev/null) 
     347 
     348# You can use : 
     349# 
     350#       '%(username)s'          will contain the user's name 
     351#       '%(printername)s'       will contain the printer's name 
     352# 
     353#   On your command line, to pass arguments to your command. 
     354# 
     355#   NB : Don't forget to redirect your command's standard output somewhere  
     356#        (e.g. >/dev/null) so that there's no perturbation to the underlying 
     357#        layer (filter or backend) 
     358# 
     359# If the user still doesn't exist after external policy command was  
     360# launched (the external command didn't add it), or if an error occured 
     361# during the execution of the external policy command, the job is rejected. 
    350362# 
    351363policy: deny