Show
Ignore:
Timestamp:
03/05/06 22:16:17 (19 years ago)
Author:
jerome
Message:

Combining cupspykota, pknotify and PyKotIcon? now work fine to check user's credentials.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r2766 r2786  
    295295            self.logdebug("Launching subprocess [%s] to overwrite the job ticket." \ 
    296296                                     % jobticketcommand) 
     297            self.regainPriv()                          
    297298            inputfile = os.popen(jobticketcommand, "r") 
    298299            for line in inputfile.xreadlines() : 
    299300                line = line.strip() 
    300                 if line == "DENY" : 
    301                     self.logdebug("Seen DENY command.") 
     301                if line in ("DENY", "AUTH=NO", "AUTH=IMPOSSIBLE") : 
     302                    self.logdebug("Seen %s command." % line) 
    302303                    action = "DENY" 
    303304                elif line == "CANCEL" : 
     
    313314                    action = None 
    314315            inputfile.close()     
     316            self.dropPriv() 
    315317             
    316318            # now overwrite the job's ticket if new data was supplied