Express (Distributed operating systems), v8.0 > Secure applications and their environment > Authenticate users > Select a registry or repository > Manage realms in a federated repository > Virtual member manager > Develop with virtual member manager > Integrate virtual member manager into the application > Program tasks


Dynamically updating the administrator password for a database repository

Use this procedure to dynamically update the database administrator password for a database repository.


About this task

When this dynamic call is made, only the configuration in memory is updated. The configuration file is not updated.

Event Type

DYNA_CONFIG_EVENT_UPDATE_DB_ADMIN_PASSWORD

Configuration Data

DYNA_CONFIG_KEY_REPOS_ID (required) - [String]

Specifies ID of the database repository in which to change the administrator information.

DYNA_CONFIG_KEY_DB_ADMIN_PASSWORD (required) – [base64Binary]

Database administrator password to update.
The following is a sample task:


Procedure

  1. Ensure that virtual member manager is running.
  2. Call the dynamicUpdateConfig API method to change the password. For example:
    Hashtable configData = new Hashtable();
    configData.put(DynamicConfigConstants.DYNA_CONFIG_KEY_REPOS_ID, "DB1");
     configData.put(DynamicConfigConstants.DYNA_CONFIG_KEY_DB_ADMIN_PASSWORD,
    PasswordUtil.getByteArrayPassword("password0"));
     service.dynamicUpdateConfig(DynamicConfigConstants.DYNA_CONFIG_EVENT_UPDATE_DB_ADMIN_PASSWORD,
                                  configData);
    

Parent topic: Program tasks



+

Search Tips   |   Advanced Search