WebSphere Portal stores aretefacts for Users and Groups retrieved
from a Backend Repository. Usually this information is not stable. Users/Groups
are deleted, LDAP server are moved or data is restored from Backup. By
those actions orphan data bindings are left witihn theWebSphere Portal
configuration which should be resolved from time to time.
Usually you want to remove entries for no longer existing
users to reduce the amount of data store within your environment. For this
scenario the cleanup User task has been added to the system.
In addition, it might happen that the bindings betweenWebSphere
Portal artefacts and the corresponding LDAP users are lost , because of
a LDAP server migration, this task provides the additional feature to "heal"
your system and recreate lost bindings.
The steps start at the point where the users have been
already removed from the backend.
1. open cmd
2. move to portalhome/bin
3. copy portalhome/base/wp.xml/doc/xml-samples/CleanupUser.xml
to portalhome/bin
4. execute xmlaccess like
./xmlaccess.sh -in CleanupUsers.xml -out result.xml -user wpsadmin -password
wpsadmin -url
http://localhost:10040/wps/config
results in this
sschmitt@wpsvm030:/opt/WebSphere/PortalServer/bin> ./xmlaccess.sh -in
CleanupUsers.xml -out result.xml -user wpsadmin -password wpsadmin -url
http://localhost:10040/wps/config
Licensed Materials - Property of IBM, 5724-E76, 5655-R17, and 5655-M44,
(C) Copyright IBM Corp. 2001, 2007 - All Rights reserved. US Government
Users Restricted Rights - Use, duplication or disclosure restricted by
GSA ADP Schedule Contract with IBM Corp.
EJPXB0006I: Connecting to URL http://localhost:10040/wps/config
EJPXB0004I: Writing output file /opt/WebSphere/PortalServer/bin/result.xml
EJPXB0002I: Reading input file /opt/WebSphere/PortalServer/bin/CleanupUsers.xml
EJPXB0020I: The request was processed successfully on the server.
sschmitt@wpsvm030:/opt/WebSphere/PortalServer/bin>
5. verify users or groups
are included, in this case these two entries are to be migrated
6. Now open the result.xml
file and modify cleanup-users="invalid" to cleanup-users="true"
and add migrate-users="true"
7. Execute xmlaccess like
./xmlaccess.sh -in result.xml -out result2.xml -user wpsadmin -password
wpsadmin -url
http://localhost:10040/wps/config
Licensed Materials - Property of IBM, 5724-E76, 5655-R17, and 5655-M44,
(C) Copyright IBM Corp. 2001, 2007 - All Rights reserved. US Government
Users Restricted Rights - Use, duplication or disclosure restricted by
GSA ADP Schedule Contract with IBM Corp.
EJPXB0006I: Connecting to URL http://localhost:10040/wps/config
EJPXB0004I: Writing output file /opt/WebSphere/PortalServer/bin/result2.xml
EJPXB0002I: Reading input file /opt/WebSphere/PortalServer/bin/result.xml
EJPXB0020I: The request was processed successfully on the server
8. Verify by re-execution
of cleanupuser
sschmitt@wpsvm030:/opt/WebSphere/PortalServer/bin> ./xmlaccess.sh -in
CleanupUsers.xml -out result3.xml -user wpsadmin -password wpsadmin -url
http://localhost:10040/wps/config
Licensed Materials - Property of IBM, 5724-E76, 5655-R17, and 5655-M44,
(C) Copyright IBM Corp. 2001, 2007 - All Rights reserved. US Government
Users Restricted Rights - Use, duplication or disclosure restricted by
GSA ADP Schedule Contract with IBM Corp.
EJPXB0006I: Connecting to URL http://localhost:10040/wps/config
EJPXB0004I: Writing output file /opt/WebSphere/PortalServer/bin/result3.xml
EJPXB0002I: Reading input file /opt/WebSphere/PortalServer/bin/CleanupUsers.xml
EJPXB0020I: The request was processed successfully on the server.
Server should not provide additional users and groups.