π Image
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.
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.
Step 9
Add users β To add users in the LDAP directory click on Manage Entries option.
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.
We can also create a new group by using the New Group option and assign the created users to this 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
Thank you!
We will contact you soon.
Mainak GoswamiMay 20th, 2013Last Updated: May 20th, 2013

This site uses Akismet to reduce spam. Learn how your comment data is processed.
Gr8 Iβm looking fot it
nic1 β¦ Keep posting such good Articles ! Profile shows cloud computing enthusiastic β? Any post on Cloud Computing Developmentβ¦
Muy bien aporte!
I have installed the setup.bat file and at last, it shows an error that the server has stopped. You may start it from the Control Panel.bat or click on the button. When I click or access the path it does not perform any action. The screen remains the same. At times it also shows error for the port 4444 exception in Firewall.
Hi, I done the same steps mentioned above but got exception;
An error occured connecting to the server.javax.naming.CommunicationException:0.0.0.0.444[Root exception is javax.net.ssl.SSLHandshakeException:
Java.security.cert.CertificateExceception:No subject alternative names present]