- Make sure the security roles are properly defined in the LDAP directory server.
- Create an Enterprise Java Bean.
To define the Security Roles at the EJB level:
- From the Explorer, select the EJB you just created.
- Right click to display the context menu and select Properties.
The EJB Properties dialog appears.
- Select the References tab.
- select the Security Role Reference field.
The Security Role Reference Property Editor appears.
- Select Add to add a new security role reference.
The Add Security Role Reference dialog appears.
- In the Name field, enter the security role groups you defined in the LDAP directory server.
- In the Description field, enter any description desired.
- In the Security Role Link field, enter the name for the group and user you defined in the LDAP directory server.
- Select OK to dismiss the Add Security Role Reference dialog.
- Select OK to dismiss the Add Security Role Reference Property Editor.
- Close the EJB Properties dialog.
- Create an EJB module.
To define the Security Roles at the EJB module level:
- From the Explorer, select the EJB module you just created.
- Right click to display the context menu and select Properties.
The EJB module Properties dialog appears.
- Select the Properties tab.
- Select the Security Roles field.
The Security Roles Property Editor appears.
- Select a Security Role link from the popup menu, or select Edit Module Roles to add a new role.
- Select OK to close the Security Roles Property Editor.
- Select the iPlanet AS tab.
- Select the Mapped Security Roles field.
The Mapped Security Roles Editor appears.
- Select a Role Map.
- Add users to the Role Map just defined.
- Add a Group to the Role Map.
- Select OK to close the Mapped Security Roles Editor.
- Add an EJB to the EJB module.
To define the Security Roles at the Global Level:
- From the Tools menu, select Global Options.
- Select the iPlanet Application Server settings node.
- Enter the values for security role groups and users as defined in the LDAP Directory Server.