示例#1
0
def read_persistent_client_session_data(principal):
    '''
    Given a principal return the stored session data for that
    principal from the persistent secure storage.

    Raises ValueError if unable to perform the action for any reason.
    '''

    try:
        return session_storage.get_data(principal, CCACHE_COOKIE_KEY)
    except Exception as e:
        raise ValueError(str(e))
示例#2
0
文件: rpc.py 项目: stlaz/freeipa
def read_persistent_client_session_data(principal):
    '''
    Given a principal return the stored session data for that
    principal from the persistent secure storage.

    Raises ValueError if unable to perform the action for any reason.
    '''

    try:
        return session_storage.get_data(principal, CCACHE_COOKIE_KEY)
    except Exception as e:
        raise ValueError(str(e))
示例#3
0
 def test_03(self):
     session_storage.remove_data(self.principal, self.key)
     try:
         session_storage.get_data(self.principal, self.key)
     except session_storage.KRB5Error:
         pass
示例#4
0
 def test_02(self):
     data = session_storage.get_data(self.principal, self.key)
     assert(data == self.data)
 def test_03(self):
     session_storage.remove_data(self.principal, self.key)
     try:
         session_storage.get_data(self.principal, self.key)
     except session_storage.KRB5Error:
         pass
 def test_02(self):
     data = session_storage.get_data(self.principal, self.key)
     assert(data == self.data)