LDAP: Create an LDIF File

15 minutes
  • 2 Learning Objectives

About this Hands-on Lab

Authentication and authorization are essential things to have in a data center environment. While there are many Directory Access services that can do the job, OpenLDAP is a popular open-source one. In this lab, we’ll go over using LDIF files to add Organizational Units and users.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Generate the LDIF to add a new OU and then add it.

Create a new file and add the required entries to add a new OU as directed in the instructions. Once that’s done, run the ldapmodify command to add it to the LDAP database.

Generate the LDIF to add a new user and then add it.

Create a new file and add the required entries to add a new user as directed in the instructions. Once that’s done, run the ldapmodify command to add it to the LDAP database.

Additional Resources

You have just started working at DadCorp, a new startup providing a subscription service that emails dad jokes to customers. The majority of the data center is web servers containing the sign-up forms.

DadCorp has recently set up an OpenLDAP server to test its suitability prior to complete implementation. You'd been tasked with beginning to set up automation. For this section of the automation, you need to write two LDIF files. The first is required to add a new OU under the Sales OU named "printers". The second is to add a new user named "sales_printer" with a uidNumber and gidNumber that will have additional configuration done at a later time.

The LDAP server is already up and running, and the LDAP Administrator username is ldapadm, and the password is 1234.

If you get stuck, feel free to check out the solution video or the detailed instructions under each objective. Good luck!

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?