Esempio n. 1
0
    def __init__(self, args):
        """
        __init__
        Initialize proxy object.
        """
        Credential.__init__(self, args)

        # Set the default commands execution timeout to 20 mn
        self.commandTimeout = args.get("ServiceContactTimeout", 1200)
        self.myproxyServer = args.get("myProxySvr", 'myproxy.cern.ch')
        self.serverDN = args.get("serverDN", '')
        self.userDN = args.get("userDN", '')
        self.proxyValidity = args.get("proxyValidity",
                                      '')  #lenght of the proxy
        self.myproxyValidity = args.get("myproxyValidity",
                                        '168:00')  #lenght of the myproxy
        self.myproxyMinTime = args.get("myproxyMinTime",
                                       4)  #threshold used in checkProxy

        # User vo paramaters
        self.vo = 'cms'
        self.group = args.get("group", '')
        self.role = args.get("role", '')

        self.logger = args.get("logger", '')

        ## adding ui script to source
        self.uisource = args.get("uisource", '')
        self.cleanEnvironment = args.get("cleanEnvironment", False)

        ## adding credential path
        self.credServerPath = args.get("credServerPath", '/tmp')
Esempio n. 2
0
    def __init__( self, args ):
        """
        __init__
        Initialize proxy object.
        """
        Credential.__init__( self, args )

        # Set the default commands execution timeout to 20 mn
        self.commandTimeout = args.get( "ServiceContactTimeout", 1200 )
        self.myproxyServer = args.get( "myProxySvr", 'myproxy.cern.ch')
        self.serverDN = args.get( "serverDN", '')
        self.userDN = args.get( "userDN", '')
        self.proxyValidity = args.get( "proxyValidity", '') #lenght of the proxy
        self.myproxyValidity = args.get( "myproxyValidity", '168:00') #lenght of the myproxy
        self.myproxyMinTime = args.get( "myproxyMinTime", 4) #threshold used in checkProxy
        self.myproxyAccount = args.get( "myproxyAccount", "") #to be used when computing myproxy account (-l option)
        self.rfcCompliant = args.get( "rfcCompliant", True) #to be used when computing myproxy account (-l option)

        # User vo paramaters
        self.vo = 'cms'
        self.group = args.get( "group",'')
        self.role = args.get( "role",'')

        self.logger = args.get( "logger", '')

        ## adding ui script to source
        self.uisource = args.get("uisource", '')
        self.cleanEnvironment = args.get("cleanEnvironment", False)

        ## adding credential path
        self.credServerPath = args.get("credServerPath", '/tmp')
        if not self.cmd_exists('voms-proxy-info'):
            raise CredentialException('voms-proxy-info command not found')
Esempio n. 3
0
    def __init__( self, args ):
        """
        __init__
        Initialize proxy object.
        """
        Credential.__init__( self, args )

        # Set the default commands execution timeout to 20 mn
        self.commandTimeout = args.get( "ServiceContactTimeout", 1200 )
        self.myproxyServer = args.get( "myProxySvr", 'myproxy.cern.ch')
        self.serverDN = args.get( "serverDN", '')
        self.userDN = args.get( "userDN", '')
        self.proxyValidity = args.get( "proxyValidity", '') #lenght of the proxy
        self.myproxyValidity = args.get( "myproxyValidity", '168:00') #lenght of the myproxy
        self.myproxyMinTime = args.get( "myproxyMinTime", 4) #threshold used in checkProxy

        # User vo paramaters
        self.vo = 'cms'
        self.group = args.get( "group",'')
        self.role = args.get( "role",'')

        self.logger = args.get( "logger", '')

        ## adding ui script to source
        self.uisource = args.get("uisource", '')
        self.cleanEnvironment = args.get("cleanEnvironment", False)

        ## adding credential path
        self.credServerPath = args.get("credServerPath", '/tmp')
Esempio n. 4
0
    def __init__(self, args):
        """
        __init__
        Initialize proxy object.
        """
        Credential.__init__(self, args)

        # Set the default commands execution timeout to 20 mn
        self.commandTimeout = args.get("ServiceContactTimeout", 1200)
        self.myproxyServer = args.get("myProxySvr", 'myproxy.cern.ch')
        self.serverDN = args.get("serverDN", '')
        self.userDN = args.get("userDN", '')
        self.proxyValidity = args.get("proxyValidity", '')  # lenght of the proxy
        self.myproxyValidity = args.get("myproxyValidity", '168:00')  # lenght of the myproxy
        self.myproxyMinTime = args.get("myproxyMinTime", 4)  # threshold used in checkProxy
        self.myproxyAccount = args.get("myproxyAccount", "")  # to be used when computing myproxy account (-l option)
        self.rfcCompliant = args.get("rfcCompliant", True)  # to be used when computing myproxy account (-l option)
        self.trustedRetrievers = None

        # User vo paramaters
        self.vo = 'cms'
        self.group = args.get("group", '')
        self.role = args.get("role", '')

        self.logger = args.get("logger", '')

        ## adding ui script to source
        self.uisource = args.get("uisource", '')
        self.cleanEnvironment = args.get("cleanEnvironment", False)

        ## adding credential path
        self.credServerPath = args.get("credServerPath", '/tmp')
        if not self.cmd_exists('voms-proxy-info'):
            raise CredentialException('voms-proxy-info command not found')
Esempio n. 5
0
 def __init__(self, args):
     Credential.__init__(self, args)
     self.logger = args['logger'] if 'logger' in args else logging.getLogger(
         type(self).__name__)
Esempio n. 6
0
 def __init__(self, args):
     Credential.__init__(self, args)
     self.logger = args['logger'] if 'logger' in args else logging.getLogger(type(self).__name__)
Esempio n. 7
0
 def __init__(self, args):
     Credential.__init__( self, args )
     self.logger = logging.getLogger(type(self).__name__)