Example #1
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
Example #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
Example #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
Example #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
Example #5
0
 def putCredential(cred_name, username, password):
     """Set the username and password"""
     credential = cdb.add_credential(TENANT, cred_name, username, password)
Example #6
0
 def putCredential(cred_name, username, password):
     """Set the username and password"""
     credential = cdb.add_credential(TENANT, cred_name, username, password)