 |
Software > WebSphere > WebSphere Portal Family >
|
 |
 |
 |
How to add a user attribute to a file based registry for IBM WebSphere Portal development systems?
|
| | | Question | | For development systems it is often required to add a specific user attribute to the file based user registry. How to configure a file based user registry to recognize an additional user attribute? | | | | | | Answer | In order to add a user attribute to the file based user registry the wim configuration files need to be updated. Execute the following tasks to add an new attribute to the file based user registry. - Open the file <WPProfileRoot>/wp_profile/config/cells/<cellname>/wim/model/wimdomain.xsd where <WPProfileRoot> is the profile directory and <cellname> is the cell name of your IBM WebSphere Portal installation. Add the following element to the element section of the file:
<xsd:element name="<theNewAttribute>" type="xsd:string"/> Replace <theNewAttribute> with your name of the new attribute - Include the following element into the PersonPropertyGroup element of the wimdomain.xsd file:
<xsd:element maxOccurs="1" minOccurs="0" ref="<theNewAttribute>"/>
Example: <xsd:group name="PersonPropertyGroup">
<xsd:sequence>
[…]
<xsd:element maxOccurs="1" minOccurs="0" ref="<theNewAttribute>"/>
</xsd:sequence>
</xsd:group> - Finally add the new attribute to the appropriate users in the file based registry. Therefore open <WPProfileRoot>/wp_profile/config/cells/<cellname>/fileRegistry.xml andadd the following element:
<wim:theNewAttribute>Value</wim:theNewAttribute>
to the user entries.
Example of the fileRegistr.xml file: <wim:entities xsi:type="wim:PersonAccount">
<wim:identifier externalId="efca5420-e783-4518-9469-3bb7db590c99"
externalName="uid=testuser1,o=defaultWIMFileBasedRealm"
uniqueId="efca5420-e783-4518-9469-3bb7db590c99"
uniqueName="uid=testuser1,o=defaultWIMFileBasedRealm"/>
[...]
<wim:uid>testuser1</wim:uid>
<wim:cn></wim:cn>
<wim:sn>testuser1_lastname</wim:sn>
<wim:givenName>testuser1_first</wim:givenName>
<wim:<theNewAttribute>>Value</wim:<theNewAttribute>>
</wim:entities> - Restart the IBM WebSphere_Portal server
The new user attribute is now ready to be used with IBM WebSphere Portal.
Note: Using the built-in file repository is not recommended in a production environment. | | | | | | | | |
 |
| IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml. |
 |
 |
 |
| Please take a moment to complete this form to help us better serve you. |
 |
 |
 |
|
|
|
 |
 |
| Product categories: |
 |
| | Software |  |
| | Organizational Productivity, Portals & Collaboration |  |
| | Portals |  |
| | WebSphere Portal |  |
 |
| Operating system(s): |
| |
AIX, HP-UX, Linux, Solaris, Windows, i5/OS, z/OS
|
 |
| Software version: |
| |
6.1
|
 |
| Software edition: |
| |
Enable, Express, Extend, Server
|
 |
| Reference #: |
| |
1396064
|
 |
| IBM Group: |
| | Software Group |
 |
| Modified date: |
| | 2009-10-30 |
 |
|