About Mainak Goswami

Mainak Goswami is an experienced Technology Consultant specializing in JEE, Web Development and Open source technologies. He is currently based out of United Kingdom. He is a technology enthusiast trying to explore the latest in the world of technology. His current area of interest is Mobility, NoSQL and Cloud computing. In past time he loves blogging on his website Idiotechie.

OpenDS: How to install and configure LDAP server?

What is LDAP?
“LDAP stands for Lightweight Directory Access Protocol used for accessing and maintaining distributed directory information services over an Internet Protocol network.”

Why is LDAP used?

LDAP is used for accessing a directory which can consist of a set of objects, users, groups, login, passwords, permissions etc. Its practical use is more in terms of authentication and access control mechanism. LDAP also provides add, delete, search, modify operations. LDAP is not considered as a standard relational database.
 
LDAP stores the attribute based data and they are generally read specific data. The entries in LDAP are maintained in tree like structure Directory Information Tree (DIT).

OpenDS is simple Java based open source directory service software which implements LDAP. In today’s series we will explore this product for demonstration of the LDAP server.
Let’s try to do a hands on exercise on how to install and configure OpenDS.

Step 1

OpenDS software can be downloaded from https://opends.java.net/ link the OpenDS2.2 version.
Install OpenDS2.2 by clicking “setup.bat”.

Step 2

Click the option “Install new server instance”.

Step 3

Under Server Settings option Add the Host name matches the host name mentioned the config file of your application server. In this case we will use “localhost”. Fill up rest of the details along with the password.

OpenDS Server Settings

OpenDS Server Settings

Step 4

In case of Topology option select this as a Standalone server.

Step 5

Leave the default options of Directory base DN to dc=example, dc=com

Step 6

Review and Finish

Step 7

Launch Control Panel. You can launch the control panel from the Finish Wizard or you can go to directory OpenDS\bat and execute the command control-panel.bat.

Step 8

The control-panel.bat will open the Directory server control panel.

OpenDS Control Panel

OpenDS Control Panel

Step 9

Add users – To add users in the LDAP directory click on Manage Entries option.

Manage Entries Panel

Manage Entries Panel

Step 10

Right click on the dc=example, dc=com to add New User

Step 11

In the New User panel add the details of the new user. In this case the common name is admin.

New User Panel

New User Panel

We can also create a new group by using the New Group option and assign the created users to this group.

New Group

New Group

Terminologies:

dn – Each entry in the LDAP will have an unique identifier or distinguished name (DN).
cn – Common Name
sn – Surname
dc – Domain Component
ou – Organisational Unit
o – Organisation
st – State
l – Location
c – Country

LDAP Tree structure

LDAP Tree structure


 

Reference: OpenDS: How to install and configure LDAP server? from our JCG partner Mainak Goswami at the Idiotechie blog.
Related Whitepaper:

Java Essential Training

Author David Gassner explores Java SE (Standard Edition), the language used to build mobile apps for Android devices, enterprise server applications, and more!

The course demonstrates how to install both Java and the Eclipse IDE and dives into the particulars of programming. The course also explains the fundamentals of Java, from creating simple variables, assigning values, and declaring methods to working with strings, arrays, and subclasses; reading and writing to text files; and implementing object oriented programming concepts. Exercise files are included with the course.

Get it Now!  

3 Responses to "OpenDS: How to install and configure LDAP server?"

  1. meera says:

    Gr8 I’m looking fot it

  2. Gunjan says:

    nic1 … Keep posting such good Articles ! Profile shows cloud computing enthusiastic “? Any post on Cloud Computing Development…

  3. Yojan says:

    Muy bien aporte!

Leave a Reply


7 + nine =



Java Code Geeks and all content copyright © 2010-2014, Exelixis Media Ltd | Terms of Use
All trademarks and registered trademarks appearing on Java Code Geeks are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries.
Java Code Geeks is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.

Sign up for our Newsletter

15,153 insiders are already enjoying weekly updates and complimentary whitepapers! Join them now to gain exclusive access to the latest news in the Java world, as well as insights about Android, Scala, Groovy and other related technologies.

As an extra bonus, by joining you will get our brand new e-books, published by Java Code Geeks and their JCG partners for your reading pleasure! Enter your info and stay on top of things,

  • Fresh trends
  • Cases and examples
  • Research and insights
  • Two complimentary e-books