Configuring a file adapter

The file adapter is configured using the WebSphere Application Server administrative console or the wsadmin commands. See your WebSphere administrative console documentation. If you need to modify this configuration, you can manually edit the wimconfig.xml file, although this is not the preferred method.

File adapter configuration information is defined in wimconfig.xml. During virtual member manager initialization, the RepositoryManager calls the FileAdapter.initialize() method and passes the Repository DataObject. The file adapter is configured as the default user registry in virtual member manager.
Table 1.
Parameter name Definition Possible values Default value
id The unique repository ID defined in the virtual member manager instance.    
baseDirectory The base directory where the files are to be created. This directory must already exist.   user.install.root/config/cells/local.cell
caseSensitive Specifies whether the file adapter is case sensitive. true or false false
saltLength The salt length of the randomly generated salt for password hashing   12
messageDigestAlgorithm The messageDigestAlgorithm used for hashing the password.   SHA-1
fileName The file name for the repository.   fileRegistry.xml

The following code sample is an example of a basic wimconfig.xml file that has been configured to use the file repository, InternalFileRepository. You can modify the appropriate values that are shown in italic.

<config:repositories xsi:type="config:FileRepositoryType" 
       adapterClassName="com.ibm.ws.wim.adapter.file.was.FileAdapter"
       id="InternalFileRepository" 
       messageDigestAlgorithm="SHA-1">
       <config:baseEntries name="o=defaultWIMFileBasedRealm"/>
</config:repositories>
Terms of use | Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.
IBM virtual member manager 6.1