Dynamically adding a new default parent to a realm

Use this procedure to dynamically add a new default parent to a realm.

About this task

Note: When this dynamic call is made, only the configuration in memory is updated. The configuration file is not updated.
Event Type
DYNA_CONFIG_EVENT_ADD_DEFAULT_PARENT_TO_REALM
Configuration Data
DYNA_CONFIG_KEY_DEFAULT_PARENT (required) - [String]
Specifies the unique name of the default parent.
DYNA_CONFIG_KEY_ENTITY_TYPE (required) - [String]
Specifies the qualified name of the entity type to which you want to add the default parent.
DYNA_CONFIG_KEY_REALM_NAME (required) - [String]
Specifies the name of the realm.

This task example assumes that the realm does not have a default parent for the entity type PersonAccount.

Procedure

  1. Ensure that virtual member manager is running.
  2. Add a default parent to the realm for PersonAccount. For example:
    Hashtable configData = new Hashtable();
    String realmName = "YourCo";
    configData.put(Service.DYNA_CONFIG_KEY_REALM_NAME,realmName);
    configData.put(Service.DYNA_CONFIG_KEY_ENTITY_TYPE,DO_PERSON_ACCOUNT);
    configData.put(Service.DYNA_CONFIG_KEY_DEFAULT_PARENT, "cn=realmusers,dc=yourco,dc=com");
    		
    service.dynamicUpdateConfig(Service.DYNA_CONFIG_EVENT_ADD_DEFAULT_PARENT_TO_REALM, configData);
Terms of use | Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.
IBM virtual member manager 6.1