Scenario details: Create the directory database
Before you can begin to enter data, you must create a place for the data
to be stored.
Step 1: Create a
base DN object
- In the Web administration tool, click Directory management —>
Manage entries. You see a listing of the objects in the base level of
the directory. Since the server is new, you see only the structural objects
which contain the configuration information.
- You want to add a new object to contain the MyCo, Inc. data. First click Add... on the right side of the window. In the
next window, scroll within the Object class list
to select domain and click Next.
- You do not want to add any auxiliary object classes, so click Next again.
- In the Enter the attributes window, enter
the data that corresponds with the suffix that you created earlier in the
wizard. Leave the Object class drop down list
on domain. Type dc=my_co in the Relative DN field. Type dc=com in the Parent DN field. Type my_co in the dc field.
- Click Finish at the bottom of the window.
Back in the base level you should see the new base DN.
Step:2 Create a user
template
You will create a user template as an aid to adding the MyCo, Inc. employee
data.
- In the Web administration tool, click Realms and templates —>
Add user template.
- In the User template name field, type Employee.
- Click the Browse... button next to the Parent DN field. Click the base DN you created in the previous section, dc=my_co,dc=com, and click Select, on the right of the window.
- Click Next.
- In the Structural object class drop-down
- list, choose inetOrgPerson and click Next.
- In the Naming attribute drop-down list,
select cn.
- In the Tabs list, select Required and click Edit.
- The Edit tab window is where you choose
which fields to include in the user template. sn and cn are required.
- In the Attributes list, select departmentNumber and click Add >>>.
- Select telephoneNumber and click Add >>>.
- Select mail and click Add >>>.
- Select userPassword and click Add >>>.
- Click OK and then Finish to create the user template.
Step:3 Create a realm
- In the Web Administration tool, click Realms
and templates —> Add realm.
- In the Realm name field, type employees.
- Click Browse... to the right of the Parent DN field.
- Select the parent DN you created, dc=my_co,dc=com, and click Select on the right side
of the window.
- Click Next.
- In the next window you only need to change the User template drop-down list. Select the user template you created, cn=employees,dc=my_co,dc=com.
- Click Finish.
Step:4 Create a manager
group
- Create the manager group.
- In the Web administration tool, click Users
and groups —> Add group.
- In the Group name field, type managers.
- Ensure that employees is selected in the Realm pull down list.
- Click Finish.
- Configure the manager group administrator for the employees realm.
- Click Realms and templates —> Manage
realms.
- Select the realm that you created, cn=employees,dc=my_co,dc=com, and click Edit.
- To the right of the Administrator group field,
click Browse....
- Select dc=my_co,dc=com and click Expand.
- Select cn=employees and click Expand.
- Select cn=managers and click Select.
- In the Edit realm window, click OK.
- Give the manager group authority over the dc=my_co,dc=com suffix.
- Click Directory management —> Manage
entries.
- Select dc=my_co,dc=com and click Edit ACL....
- In the Edit ACL window, click the Owners tab.
- Select the Propagate owner check box.
Everyone who is a member of the managers group will be made an owner of the dc=my_co,dc=com data tree.
- In the Type pull down list, select Group.
- In the DN (Distinguished name) field,
type cn=managers,cn=employees,dc=my_co,dc=com.
- Click Add.
- Click Ok.
Step:5 Add a user
as a manager
- In the Web Administration tool, click Users
and groups —> Add user.
- Select the realm you created, employees,
in the Realm drop-down menu, and click Next.
- In the cn field, type Jose Alvirez.
- In the *sn (surname) field type Alvirez.
- In the *cn (complete name) field, type Jose Alvirez. cn is used to create the entry's
DN. *cn is an attribute of the object.
- In the telephoneNumber field type 999 555 1234.
- In the departmentNumber field type DEPTA.
- In the mail field type jalvirez@my_co.com.
- In the userPassword field type secret.
- Click the User groups tab.
- In the Available groups list, select managers and click Add —>.
- At the bottom of the window, click Finish.
- Log out of the Web administration tool by clicking Log out in the left hand navigation.