Modify the following tokens in the PortalServer7-base/SUNWportal/export/request/enableSRAForPortal.xml file to suit your deployment.
Gateway Profile you are modifying
Fully qualified portal URL
Domain in which the portal server resides
Deploy URL for the portal web application
Save the file after making the changes.
Load the file into the directory server using the Sun Java System Access Manager's amadmin command as follows:
AccessManager-base/bin/amadmin -u amadmin -w amadmin-pwd -t enableSRAForPortal.xml