0% found this document useful (0 votes)
4 views

Lab OpenLDAP

The document outlines the configuration of OpenLDAP on Ubuntu, detailing the installation of slapd and the initial setup using Debian's debconf tool. It includes steps for modifying the database by adding nodes for users and groups, as well as instructions for installing and configuring phpLDAPadmin. Finally, it provides guidance on accessing phpLDAPadmin through a web browser.

Uploaded by

dsmarwan0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Lab OpenLDAP

The document outlines the configuration of OpenLDAP on Ubuntu, detailing the installation of slapd and the initial setup using Debian's debconf tool. It includes steps for modifying the database by adding nodes for users and groups, as well as instructions for installing and configuring phpLDAPadmin. Finally, it provides guidance on accessing phpLDAPadmin through a web browser.

Uploaded by

dsmarwan0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Lab : Configuration of OpenLDAP on UBUNTU.

Classe : IRIC 1

Professeur : Dr. Yassine Maleh .

Réalisé par : Selma Nassiri ,Fatima-Ezzahrae Alaoui-Kasmi.

1-Installation
The installation of slapd will create a minimal working configuration with a top level entry, and an
administrator’s DN. In particular, it will create a database instance that you can use to store your data.

Here you have installed your directory. You will now use Debian's debconf configuration tool to define the basic
configuration of your directory:

Indicate:

• for DNS name: Mybusiness.com;


• for organization name: Mybusiness;
• the administrator password x2;
• choose the default base format: mdb;
• No to know if the database should be deleted when slapd is purged;
• Yes to move the old database.
Now the configuration is managed as a DIT with the suffix cn=config, and the service remains available while the
changes are being applied. You can see the entries of this tree by the command:

2-Modifying/Populating your Database


Let’s introduce some content to our database. We will add the following:

• a node called People (to store users)


• a node called Groups (to store groups)
• a group called miners
• a user called john

Create the following LDIF file and call it add_content.ldif:


Add the content:

We can check that the information has been correctly added with the ldapsearch utility. For example, let’s search for
the john entry, and request the cn and gidnumber attributes:

It works !

Install phpLDAPadmin by using the command bellow:

After installing phpLDAPadmin, you will need to configure phpLDAPadmin and define your domain information.

You can do it by editing the file /etc/phpldapadmin/config.php:

Change the following lines:

Save and close the file when you are finished.


3-Configure Apache for phpLDAPadmin

Now, open your web browser and access the phpLDAPadmin using the URL http://your-server-ip/phpldapadmin. In
my case 10.0.2.15

You should see the following screen:

Then:

You might also like