def _keystore(self, realm, ldap_uri, auth_type): config = dict() if ldap_uri is None: config['ldap_uri'] = self._ldap_uri(realm) else: config['ldap_uri'] = ldap_uri if auth_type is not None: config['auth_type'] = auth_type return iSecStore(config)
def test_iSecStore(self): iss = iSecStore({}) NAME_DB_MAP['test'] = { 'type': 'NSSDB', 'path': self.certdb, 'handler': NSSCertDB, 'pwcallback': _test_password_callback, } value = iss.get('keys/test/testCACert') NAME_DB_MAP['test']['path'] = self.cert2db iss.set('keys/test/testCACert', value)