How To Install and Configure OpenLDAP Server On Debian 10 (Buster)
How To Install and Configure OpenLDAP Server On Debian 10 (Buster)
You can support us by downloading this article as PDF from the Link below.
In this blog post. you’ll learn how to install and con gure OpenLDAP on Debian 10
Buster. OpenLDAP is a free and open-source implementation of the Lightweight
Directory Access Protocol released under OpenLDAP Public License.
After installing OpenLDAP Server on Debian 10 (Buster), you can optionally add
phpLDAPadmin / LDAP Account Manager to ease daily administration of LDAP Server.
We’ll cover the installation of LDAP UI Management tools on separate guides.
Follow the steps shared in the next sections to have a running OpenLDAP Server on
Debian 10 (Buster). Before you start the installation, con gure FQDN hostname for
your server and add a record to le /etc/hosts .
You’ll be prompted to enter the admin password for your LDAP directory.
If your installation was successful, the slapcat command should provide OpenLDAP
server details.
$ slapcat
dn: dc=computingforgeeks,dc=com
objectClass: top
objectClass: dcObject
https://computingforgeeks.com/how-to-install-and-configure-openldap-server-on-debian/ 2/10
23/6/2020 How To Install and Configure OpenLDAP Server on Debian 10 (Buster) | ComputingForGeeks
j j
objectClass: organization
o: computingforgeeks.com
dc: computingforgeeks
structuralObjectClass: organization
entryUUID: 3380a11a-587c-1039-8fb1-a76b7240a677
creatorsName: cn=admin,dc=computingforgeeks,dc=com
createTimestamp: 20190821162641Z
entryCSN: 20190821162641.076360Z#000000#000#000000
modifiersName: cn=admin,dc=computingforgeeks,dc=com
modifyTimestamp: 20190821162641Z
dn: cn=admin,dc=computingforgeeks,dc=com
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
userPassword:: e1NTSEF9eDN2SUVtUnRZMUFjeHZuREtMaDlwdjU5c3dMZkFaWmM=
Thank you for visiting. Support my
structuralObjectClass: organizationalRole hard work with just a cup of coffee!
entryUUID: 3380e3fa-587c-1039-8fb2-a76b7240a677
creatorsName: cn=admin,dc=computingforgeeks,dc=com
createTimestamp: 20190821162641Z
entryCSN: 20190821162641.078129Z#000000#000#000000
modifiersName: cn=admin,dc=computingforgeeks,dc=com
modifyTimestamp: 20190821162641Z
$ nano basedn.ldif
dn: ou=people,dc=computingforgeeks,dc=com
objectClass: organizationalUnit
ou: people
dn: ou=groups,dc=computingforgeeks,dc=com
objectClass: organizationalUnit
ou: groups
.......
Enter LDAP Password:
adding new entry "ou=people,dc=computingforgeeks,dc=com"
adding new entry "ou=groups,dc=computingforgeeks,dc=com"
$ slappasswd
New password:
Re-enter new password:
{SSHA}5D94oKzVyJYzkCq21LhXDZFNZpPQD9uE
Thank you for visiting. Support my
hard work with just a cup of coffee!
Create ldif le for adding users.
$ nano ldapusers.ldif
dn: uid=jmutai,ou=people,dc=computingforgeeks,dc=com
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
cn: Josphat
sn: Mutai
userPassword: {SSHA}5D94oKzVyJYzkCq21LhXDZFNZpPQD9uE
loginShell: /bin/bash
homeDirectory: /home/testuser
uidNumber: 3000
gidNumber: 3000
Apply con g:
$ cat ldapgroups.ldif
dn: cn=jmutai,ou=groups,dc=computingforgeeks,dc=com
objectClass: posixGroup
cn: jmutai
gidNumber: 3000
memberUid: jmutai
CSV le upload
wget http://prdownloads.sourceforge.net/lam/ldap-account-manager_6.8-1_
sudo dpkg -i ldap-account-manager_6.8-1_all.deb
https://computingforgeeks.com/how-to-install-and-configure-openldap-server-on-debian/ 5/10
23/6/2020 How To Install and Configure OpenLDAP Server on Debian 10 (Buster) | ComputingForGeeks
p g p g _ _
The LDAP Account Manager Login form will be shown. We need to set our LDAP
server pro le by clicking on [LAM configuration] at the upper right corner.
The rst thing to change is Profile Password , this is at the end of General
Settings page.
https://computingforgeeks.com/how-to-install-and-configure-openldap-server-on-debian/ 6/10
23/6/2020 How To Install and Configure OpenLDAP Server on Debian 10 (Buster) | ComputingForGeeks
Next is to set LDAP Server address and Tree suffix . Mine looks like below, you
need to use your Domain components as set in server hostname.
Set Dashboard login by specifying the admin user account and domain components
under “Security settings” section.
Switch to “Account types” page and set Active account types LDAP su x and List
attributes.
You can also enable other available account types you wish to use. User and Group
modules can be enabled and disabled on “Modules” page.
When done with the settings, click the Save button at the bottom of the page.
https://computingforgeeks.com/how-to-install-and-configure-openldap-server-on-debian/ 7/10
23/6/2020 How To Install and Configure OpenLDAP Server on Debian 10 (Buster) | ComputingForGeeks
You’ll use the Users and Groups links to manage user accounts and groups.
You need to add a user group before the actual user account. Click on Groups > New
Group
Once you have the groups for user accounts to be added, click on Users > New
user to add a new user account to your LDAP server. You have three sections for
user management:
Personal – This contains user’s personal information like the rst name, last name,
email, phone, department, address e.t.c
Unix: This section is where you set the Username, Common name, UID
number(optional), User comment, User Primary group, and Secondary
https://computingforgeeks.com/how-to-install-and-configure-openldap-server-on-debian/ 8/10
23/6/2020 How To Install and Configure OpenLDAP Server on Debian 10 (Buster) | ComputingForGeeks
p yg p y
groups, Home directory and the default Login shell.
Shadow: This section is where you add Shadow account extension, things related
to password aging/expiry.
You may have more sections depending on the Modules enabled for User and Group
management.
Our next guide will cover how to con gure the LDAP client on Debian 10 Buster. Also
check:
How to Install and con gure OpenLDAP Server on Ubuntu 18.04 LTS
You can support us by downloading this article as PDF from the Link below.
Coming up with fresh, high quality content takes time. Sometimes working
late at night building labs and then doing the writing. We appreciate if you
consider supporting our e orts with a cup of co ee to keep us awake and
always deliver.
https://computingforgeeks.com/how-to-install-and-configure-openldap-server-on-debian/ 9/10
23/6/2020 How To Install and Configure OpenLDAP Server on Debian 10 (Buster) | ComputingForGeeks
No contribution is small. We are greatful for any amount you support us with. Thank
you!
Josphat Mutai
https://computingforgeeks.com/
https://computingforgeeks.com/how-to-install-and-configure-openldap-server-on-debian/ 10/10