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 resetting the bind DN and password of an LDAP repository

Use this procedure to dynamically reset the LDAP bind information of the specified LDAP repository at runtime.


About this task

The current LDAP bind information (including host names, bind DN, bind password, context pool settings and other settings related to the LDAP server) in the wimconfig.xml file is read and used to reset the LDAP bind in the specified LDAP repository.

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_LDAP_BIND_INFO

Configuration Data

DYNA_CONFIG_KEY_REPOS_ID (required) - [String]

Repository ID of the LDAP adapter to update.
The following is a sample task:


Procedure

  1. Ensure that virtual member manager is running.

  2. Use the configuration CLI commands to update the wimconfig.xml file with the correct bind information (bind DN, bind password)
  3. Update the bind information. Either:

    • Run the updateIdMgrLDAPBindInfo CLI command. The following is the sample command format. LDAP1 is the ID of the LDAP repository on which to reset the bind information.
      wsadmin>$AdminTask updateIdMgrLDAPBindInfo{-id LDAP1}
      
    • Call the dynamicUpdateConfig API. The following is the sample code for calling the dynamicUpdateConfig API. LDAP1 is the ID of the LDAP repository on which to reset the bind information.
      Hashtable configData = new Hashtable();
      configData.put(Service.DYNA_CONFIG_KEY_REPOS_ID, "LDAP1");
             service.dynamicUpdateConfig(Service.DYNA_CONFIG_EVENT_UPDATE_LDAP_BIND_INFO, configData);
      

Parent topic: Program tasks



+

Search Tips   |   Advanced Search