Configuring the database adapter

The database adapter is configured using the wsadmin commands. If you need to modify this configuration, you can manually edit the wimconfig.xml file, although this is not the preferred method.

About this task

If the repositoriesForGroups parameter is not specified, the groups in the repository only accept members from this same repository. The groups in a repository always support members from that same repository. The repositoriesForGroups parameter does not need to be set for ID of the repository.

If the repository supports members from other repositories, you must specify the repositoriesForGroups parameter to add the unique repository IDs of those repositories to the repository. The groups in the same repository are ignored when you specify the repositoriesForGroups parameter.
Note: Out-of-the-box, only groups in database repositories support the members from other repositories. File repositories and LDAP repositories, including Microsoft Active Directory with multiple domains, do not support members from other repositories.

For example, if you want the groups in the database repository to accept the member from an LDAP repository, you need to set the configuration parameter repositoriesForGroups of the database repository to the repository ID of the LDAP repository.

The following code sample is an example of a basic wimconfig.xml file that has been configured to use the database repository (DB1) and an LDAP repository (LDAP1). You can modify the appropriate values that are shown in italic.

  <config:repositories xsi:type="config:DatabaseRepositoryType" 
                    adapterClassName="com.ibm.ws.wim.adapter.db.DBAdapter"
                    id="DB1" 
                    supportPaging="false" 
                    databaseType="db2" 
                    dataSourceName="jdbc/wimDS" 
                    dbURL="jdbc:db2:wim" 
                    dbAdminId="DB_ADMIN_ID" 
                    dbAdminPassword="DB_PASSWORD" 
                    encryptionKey="rZ15ws0ely9yHk3zCs3sTMv/ho8fY17s" 
                    entityRetrievalLimit="200" 
                    saltLength="12">
                    <config:baseEntries name="o=default organization"/>
	                  <config:repositoriesForGroups>LDAP1</config:repositoriesForGroups>
                    <config:loginProperties>uid</config:loginProperties>
 </config:repositories>


Terms of use | Feedback

http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.wim.doc/databasecfg.html