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.
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_UPDATE_LDAP_BIND_INFO
Configuration Data
DYNA_CONFIG_KEY_REPOS_ID (required) - [String]
Specifies the repository ID of the LDAP adapter you want 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 you want 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 you want 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);
Terms of use | Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.
IBM virtual member manager 6.1