Add Users, Groups, and Organization Unit (ou, cn) 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.
Below table displays some LDIF Elements. I used OU to create Groups and Users directories, UID for user1 and user2, and CN for Group.
|RDN||Relative Distinguished Name|
If you are looking to install OUD & ODSM. The following links may useful
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
1.2) Click on the Data Browser tab. Here only we spend most of the time
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
2.2) Select Organization Unit Entry as shown below
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
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
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
3.2) Select the User Entry as shown below
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.
3.4) Select the User and select the Attributes tab to see the information of Object Class, cn and sn etc
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
4. Create Group
4.1) I have created an OU called MyGroup where all the groups are going to reside. Select the OU MyGroup
4.2) Add a Group as shown below.
4.3) Input a Group Name ‘Administrator’ in Common Name field. Remaining fields are optional. Click the button Apply
4.4) Click on the Attribute tab to see the Object Class
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
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 )
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 🙂