Configuring a file adapter
The file adapter is configured using the WebSphere Application Server administrative console or the wsadmin commands. See the WebSphere Application Server administrative console documentation.
About this task
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. | Global level: profile_root/config/cells/$CellName Domain level: profile_root/config/waspolicies/$PolicyName/securitydomains/$DomainName Note: fileRegistry.xml is copied
for a new domain only if the source domain contains this file.
|
|
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>