Add Users, Groups, and Organization Unit (ou, cn) in OUD using ODSM

011717_0201_AddUsersGro1 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

In this section, I have explained how to add the user, groups and Organization Unit in a directory server. I have used Oracle Directory Service Manager (ODSM) as LDAP browser to connect to LDAP and used Oracle Unified Directory as LDAP server.

We are going to create a hierarchy like below. We have a Root Element consist of Groups and Users directories. The Groups Directory contains a list of Group, and the Users directory contains a list of the user. The User1 and User2 belong to Group1.

 

011717_0201_AddUsersGro2 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

Below table displays some LDIF Elements. I used OU to create Groups and Users directories, UID for user1 and user2, and CN for Group.

OU  Organizational Unit 
CN  Common Name 
DC  Domain Component 
RDN  Relative Distinguished Name 
Organization Name
UID  User ID 
DN  Distinguished Name 

 

If you are looking to install OUD & ODSM. The following links may useful

Installation of Oracle Unified Directory (LDAP server)

Installation of ODSM (LDAP Browser)

 

1. Login into Oracle Directory Service Manager (ODSM)

We need a LDAP browser to configure LDAP directories in a GUI. ODSM is a built-in LDAP browser if you use Oracle Unified Directory as a directory server. 

1.1) Go to ODSM URL, For Example,  http://localhost:7001/osdm and input the directory server details and click login

Name: Input a name
Server: Directory server hostname
Administrative Port:  Directory Server admin port number
SSL Enable: True or False
Username: ‘cn=Directory Manager’ is a default CN for OUD. Adjust with your server
Password: Password of CN
Start Page: Which page you want to start after login
Save this connection: The connection will be saved for future use

 

011717_0201_AddUsersGro3 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

 

1.2) Click on the Data Browser tab. Here only we spend most of the time

011717_0201_AddUsersGro4 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

 

2. Add Organization Unit (OU)

Organization unit is an LDIF element used to store a list of objects. Here we are going to create an OU called ‘MyOrg’ which will be used to store the list of users. 

2.1) Select an entry where you want to create Organization Unit, I have selected my DC

011717_0201_AddUsersGro5 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

 

2.2) Select Organization Unit Entry as shown below

011717_0201_AddUsersGro6 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

 

2.3) Fill the ‘Organization Unit’ as MyOrg. Remaining fields are optional. Click on the Apply button. This will create an OU called MyOrg

The Apply button will be enabled only if you tab out from that field

011717_0201_AddUsersGro7 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

 

2.3) Select the OU under Data Tree once created. You will find the details of DN, CN and DC on top of the page. Click on the Attributes tab to find the Object Class and other attributes

011717_0201_AddUsersGro8 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

 

3. Add User under OU

Here we are going to add users under the OU just we created above. 

3.1) select the OU ‘MyOrg’ where all the users are going to reside 

011717_0201_AddUsersGro9 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

3.2) Select the User Entry as shown below

011717_0201_AddUsersGro10 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

3.3) In the Create New User Entry wizard, Set RDN Attribute to User ID. Input Common Name, User ID ,and Password. Also, fill any fields you needed. Click the button Create. This will create a user in LDAP.

011717_0201_AddUsersGro11 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

 

3.4) Select the User and select the Attributes tab to see the information of Object Class, cn and sn etc

011717_0201_AddUsersGro12 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

3.5) The icon marked below will create a similar entry. For Example, I selected a user and clicked the icon which is in the red circle(create an entry like the selected entry). By clicking, this  will create another user entry

011717_0201_AddUsersGro13 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

 

4. Create Group

4.1) I have created an OU called MyGroup where all the groups are going to reside. Select the OU MyGroup

011717_0201_AddUsersGro14 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

4.2) Add a Group as shown below.

011717_0201_AddUsersGro15 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

4.3) Input a Group Name ‘Administrator’ in Common Name field. Remaining fields are optional. Click the button Apply

011717_0201_AddUsersGro16 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

4.4) Click on the Attribute tab to see the Object Class

011717_0201_AddUsersGro17 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

5 Add Users to Group

1. Select a Group, Expand the Member, Click the Add button, Click Select. Enable the users we created earlier, and  Click the button select. The members will be added to the Group

011717_0201_AddUsersGro18 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

The final hierarchy will be like below

  • The Organization Unit MyOrg contains a list of users ( govindan & pgn )
  • The Organization Unit MyGroup contains a list of groups ( Administrator )

011717_0201_AddUsersGro19 Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM

govindan Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM
Connect me

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply šŸ™‚
govindan Add Users, Groups and Organization Unit (ou, cn, uid) in OUD using ODSM
Connect me
Like us on Facebook.
Connect!