LDAP: Query and Update an LDAP Server

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

Authentication and authorization are very important 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 changing user passwords and manipulating LDAP entries.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Change the password for the bbanner user.

First, we need to do an ldapsearch to get all the required information. Then we can run ldappasswd to change the bbanner user’s password.

Change the login shell for the srogers user.

First, we need to do an ldapsearch to get all the required information. Then we can run ldappasswd to change the srogers user’s shell.

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've been assigned to change the password for bbanner to "ACloudGuru1" so that the user can log in and test things. In addition, to test the ability to lock users out, you've been tasked with setting srogers's login shell to /bin/false.

The LDAP server is already up and running. No additional files should be needed, but 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?