|
|
| Sun ONE Portal Server 6.0 Migration Guide |
Appendix E Extended Sun ONE Portal Server 3.0 Component Migration
This appendix describes the steps you need to take when migrating an extended Sun ONE Portal Server 3.0 component to a Sun ONE Portal Server 6.0 service.
This appendix contains the following sections:
Options For Making Manual Changes After Migration
Example of Adding Custom iPlanet Directory Server Access Management Edition 5.1 Attributes for Sun ONE Portal Server 6.0. Options For Making Manual Changes After Migration
The Sun ONE Portal Server 3.0 Migration Tool Suite retains the mapping between iwtUser and the amUser service. If, for example, you have extended iwtUser and attributes have been added, the migration tools do not migrate those attributes. After migration, you need to make manual changes using one of the two following options:
Option 1
Corresponding to the iwtUser extensions that you have made, add entries to the BaseDir/SUNWam/config/xml/<amUser.xml file. These changes should be in accordance with the BaseDir/SUNWam/dtd/sms.dtd file. For more details, see the iPlanet Directory Server Access Management Edition 5.1 Programmer's Guide.
Using the amadmin utility, in BaseDir/SUNWam/bin, delete the existing user Service. For example:
./amadmin -u "uid=amadmin,ou=People,o=defaultOrg,o=rootSuffix" -w password --deleteService iPlanetAMUserService
Load the new, modified user service. For example:
./amadmin -u "uid=amadmin,ou=People,o=defaultOrg,o=rootSuffix" -w password --schema amUser.xml
Write a script that converts user attributes corresponding to the attributes added in the previous steps to the equivalent attributes in the Sun ONE Portal Server 6.0 service. The script should generate an LDIF file.
Use ldapmodify in BaseDir/SUNWam/bin to load the generated LDIF file to the directory server. For example:
./ldapmodify -D "cn=Directory Manager" -w password -f convertedfile
This will ensure that all the extended attributes are now available in Sun ONE Portal Server 6.0.
Option 2
Corresponding to the iwtUser extensions that you have made, create a new amUser1.xml file. These changes should be in accordance with the BaseDir/SUNWam/dtd/sms.dtd file. For more details, see the iPlanet Directory Server Access Management Edition 5.1 Programmer's Guide.
Load the new, modified user service. For example:
./amadmin -u "uid=amadmin,ou=People,o=defaultOrg,o=rootSuffix" -w password --schema amUser1.xml
Write a script that converts user attributes corresponding to the attributes added in the previous steps to the equivalent attributes in the Sun ONE Portal Server 6.0 service.
Use ldapmodify in BaseDir/SUNWam/bin to load the generated file to the directory server. For example:
./ldapmodify -D "cn=Directory Manager" -w password -f convertedfile
Code Example E-1 provides a sample script.
Example of Adding Custom iPlanet Directory Server Access Management Edition 5.1 Attributes for Sun ONE Portal Server 6.0.
This example shows the steps necessary for adding timezone and department attributes to iPlanet Directory Server Access Management Edition 5.1 for use with Sun ONE Portal Server 6.0. You must first use the admin console to add iplanetamuserservice as a required service for all users. This permits custom attributes to be populated properly from the iPlanet Directory Server Access Management Edition 5.1 SDK.
In the admin console, from the top level (o=isp), select service management and for service name iPlanet Directory Server Access Management Edition Configuration, select the icon next to Administration.
Scroll down the list of settings to Required Services and add iplanetamuserservice.
Restart iPlanet Directory Server Access Management Edition. For example:
BaseDir/SUNWam/bin/amserver start
Add custom LDAP object class and attributes by adding the following to the /usr/ldap/slapd-host/config/schema/99user.ldif file using ldapmodify:
objectclasses: (examplePerson-oid NAME `examplePerson' DESC `example Person Extensions' SUP top AUXILIARY MAY (example-am-user-timezone $ example-am-user-deptno) )
attributetypes: ( example-am-user-timezone-oid NAME `example-am-user-timezone' DESC `example User Timezone and Region' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN (`user defined') )
attributetypes: ( example-am-user-deptno-oid NAME `example-am-user-deptno' DESC `example User Department Number' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN (`user defined') )
Note that the OID 1.3.6.1.4.1.1466.115.121.1.15 represents an LDAP string type.
Make of copy of the BaseDir/SUNWam/config/xml/amUser.xml file. If you want to add entries to the amUser.xml file, backup the original first.
Corresponding to the iwtUser extensions that you have made, add entries to the copy of the BaseDir/SUNWam/config/xml/amUser.xml file. These changes should be in accordance with the BaseDir/SUNWam/dtd/sms.dtd file. For more details, see the iPlanet Directory Server Access Management Edition 5.1 Programmer's Guide.
Add the following to the schema global description to refer to custom LDAP objectclass:
<Schema
serviceHierarchy="/DSAMEConfig/iPlanetAMUserService"
i18nFileName="amUser"
i18nKey="iplanet-am-user-service-description">
<Global>
<AttributeSchema name="serviceObjectClasses"
type="list"
syntax="string"
i18nKey="">
<DefaultValues>
<Value>iplanet-am-user-service</Value>
<Value>examplePerson</Value>
</DefaultValues>
</AttributeSchema>
</Global>
Add the following new custom attributes:
<AttributeSchema name="example-am-user-timezone"
type="single"
syntax="string"
any="display|optional|filter"
i18nKey="u121">
</AttributeSchema>
<AttributeSchema name="example-am-user-deptno"
type="single"
syntax="string"
any="display|optional|filter"
i18nKey="u122">
</AttributeSchema>
Using the amadmin utility, in BaseDir/SUNWam/bin, delete the existing user Service. For example:
./amadmin -u "uid=amadmin,ou=People,o=defaultOrg,o=rootSuffix" -w password --deleteService iPlanetAMUserService
Load the new, modified user service. For example:
./amadmin -u "uid=amadmin,ou=People,o=defaultOrg,o=rootSuffix" -w password --schema amUser.xml
Edit u121 and u122 strings in BaseDir/SUNWam/locale/amUser.properties.
Restart Sun ONE Portal Server, iPlanet Directory Server Access Management Edition 5.1, and Sun ONE Directory Server.
Shut down the LDAP server manually and start it again by issuing the following commands:
Previous Contents Index Next
Copyright 2002 Sun Microsystems, Inc. All rights reserved.
Last Updated September 25, 2002