+

Search Tips   |   Advanced Search

Configure a single built-in, file-based repository in a new configuration under federated repositories using wsadmin

We can use the Jython or Jacl scripting language with wsadmin.sh to configure a single built-in, file-based repository in a new configuration under federated repositories. The file-based user registry file, fileRegistry.xml, is located in:


Configure file-based repository

  1. Start wsadmin.sh scripting tool.

  2. Create fileRegistry.xml.

    If the file already exists, this step only performs an add of the user to registry.

  3. Update security.xml to enable administrative security, set the activeUserRegistry to use federated repositories, and update the primaryAdmin and its password.

    Jython:

    AdminTask applyWizardSettings('-secureApps false  -secureLocalResources false  -userRegistryType WIMUserRegistry
     -customRegistryClass com.ibm.ws.wim.registry.WIMUserRegistry
     -adminName isoet01s01 -adminPassword oets01')

    Using Jacl:

    $AdminTask applyWizardSettings {-secureApps false  -secureLocalResources false  -userRegistryType WIMUserRegistry
     -customRegistryClass com.ibm.ws.wim.registry.WIMUserRegistry
     -adminName isoet01s01
     -adminPassword oets01}

    For more information on the applyWizardSettings command, see the documentation about the WizardCommands (AdminTask).

  4. Save the configuration changes. Enter the following commands to save the new configuration and close wsadmin.sh:

    Jython:

    Jacl:

      $AdminConfig save

  5. Restart the application server.


Subtopics


Related information:

  • WizardCommands (AdminTask)