def initialize():
     for id in _creds_dictionary.keys():
         try:
             cdb.add_credential(TENANT, id,
                                _creds_dictionary[id][const.USERNAME],
                                _creds_dictionary[id][const.PASSWORD])
         except cexc.CredentialAlreadyExists:
             # We are quietly ignoring this, since it only happens
             # if this class module is loaded more than once, in which
             # case, the credentials are already populated
             pass
Beispiel #2
0
 def initialize():
     for id in _creds_dictionary.keys():
         try:
             cdb.add_credential(TENANT, id,
                                _creds_dictionary[id][const.USERNAME],
                                _creds_dictionary[id][const.PASSWORD])
         except cexc.CredentialAlreadyExists:
             # We are quietly ignoring this, since it only happens
             # if this class module is loaded more than once, in which
             # case, the credentials are already populated
             pass
Beispiel #3
0
 def create_credential(self, tenant_id, credential_name, user_name,
                       password):
     """Create a new credential"""
     LOG.debug("create_credential() called\n")
     credential = cdb.add_credential(tenant_id, credential_name,
                                     user_name, password)
     return credential
Beispiel #4
0
 def create_credential(self, tenant_id, credential_name, user_name,
                       password):
     """Create a new credential"""
     LOG.debug("create_credential() called\n")
     credential = cdb.add_credential(tenant_id, credential_name,
                                     user_name, password)
     return credential
 def putCredential(cred_name, username, password):
     """Set the username and password"""
     credential = cdb.add_credential(TENANT, cred_name, username, password)
Beispiel #6
0
 def putCredential(cred_name, username, password):
     """Set the username and password"""
     credential = cdb.add_credential(TENANT, cred_name, username, password)