Extending LDAP attributes to WebSphere Portal
I wanted to extend the Portal VMM attributes by adding new attributes from LDAP to our Portal env. Out of the box WebSphere Portal VMM is configured with a default attribute schema. You can extend the VMM attribute by adding new attributes that you can map between WebSphere Portal and your user registry.
I followed below steps to extend the VMM attributes from the LDAP -
- Open the command prompt and go to <WP_PROFILE>/ConfigEngine directory.
- Run the wp-la-install-ear ConfigEngine tasks-
- In Linux env -
./ConfigEngine.sh wp-la-install-ear -DWasPassword=dmgr_password -DServerName=dmgr_server_name -DNodeName=node_name
- In Windows env -
ConfigEngine.bat wp-la-install-ear -DWasPassword=dmgr_password -DServerName=dmgr_server_name -DNodeName=node_name
- Restart the Portal Server profile.
- Go to <WP_PROFILE>/ConfigEngine/properties directory in your Portal installation and open the wkplc.properties file in amy text editor. For safer side take a back of wkplc.properties file before modifying this file.
- Modify the following parameters in the wkplc.properties file and save the file.
- la.providerURL
- la.propertyName
- la.entityTypes
- la.dataType
- la.multiValued
Note: You can find documentation about the above required parameters inside the wkplc.properties file..
- Now lets go back to <WP_PROFILE>/ConfigEngine in Command Prompt again and run the
- In Linux env -
./ConfigEngine.sh wp-add-property -DWasPassword=password
- In Windows env -
ConfigEngine.bat wp-add-property -DWasPassword=password
Note - When you run this wp-add-property ConfigEngine, depending on the your env setup in the sas.client.props file, you might challenged with user identity and password. Enter the WebSphere Application Server user ID and password.
- Restart the Portal server again and then you should have the extended attributes in your Portal.
Note - When you are adding more than one attributes, then step 1 -3 you just need to execute once only, you need to follow step 4 and further to add other attributes.
- Also you can verify the newly added LDAP attribute inside the wimxmlextension.xml file under the directory /<WAS_HOME>/<WP_PROFILE>/config/cells/<WP_PROFILE>/wim/model/
Comments
Post a Comment