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.
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>