Network Deployment (Distributed operating systems), v8.0 > Secure applications and their environment > Authenticate users > Select a registry or repository > Manage realms in a federated repository


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

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. Shut down the application server and ensure we have the primary administrator id and password. The federated repositories configuration file, wimconfig.xml, is supported by WAS 6.1.x and is located in the WAS_HOME/profiles/profile_name/config/cells/cell_name/wim/config directory.

Use the following steps to configure for use a single built-in, file-based repository in a new configuration for federated repositories.


Procedure

  1. Start the wsadmin scripting tool.

  2. Create the fileRegistry.xml file, which is the user registry itself, if it does not already exist. If the fileRegistry.xml file does exist, this step just adds the user to registry.

    ### Jython

    AdminTask.addFileRegistryAccount('-userId isoet01s01 -password oets01')
    

    ### Jacl

    $AdminTask addFileRegistryAccount {-userId isoet01s01 -password oets01}
    

    For more information on the addFileRegistryAccount command, see the documentation about the FileRegistryCommands command group .

  3. Update the security.xml file 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')
    

    ### 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 command group .

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

    ### Jython

    AdminConfig.save()
    

    ### Jacl

    $AdminConfig save 

  5. Restart the application server.


Related


FileRegistryCommands command group
Manage realms in a federated repository
WizardCommands command group

+

Search Tips   |   Advanced Search