Show
Ignore:
Timestamp:
09/29/04 22:20:52 (20 years ago)
Author:
jalet
Message:

Added the winbind_separator directive to pykota.conf to allow the admin to
strip out the Samba/Winbind domain name when users print.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/tool.py

    r1756 r1757  
    2222# 
    2323# $Log$ 
     24# Revision 1.123  2004/09/29 20:20:52  jalet 
     25# Added the winbind_separator directive to pykota.conf to allow the admin to 
     26# strip out the Samba/Winbind domain name when users print. 
     27# 
    2428# Revision 1.122  2004/09/28 21:38:56  jalet 
    2529# Now computes the job's datas MD5 checksum to later forbid duplicate print jobs. 
     
    959963         
    960964        self.username = self.username or 'root' # when printing test page from CUPS web interface, username is empty 
     965         
     966        # do we want to strip out the Samba/Winbind domain name ? 
     967        separator = self.config.getWinbindSeparator() 
     968        if separator is not None : 
     969            self.username = self.username.split(separator)[-1] 
     970             
     971        # do we want to lowercase usernames ?     
    961972        if self.config.getUserNameToLower() : 
    962973            self.username = self.username.lower() 
     974             
    963975        self.preserveinputfile = self.inputfile  
    964976        try :