From the course: Red Hat Enterprise Linux 8 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Set up an LDAP database

Set up an LDAP database

From the course: Red Hat Enterprise Linux 8 Essential Training

Start my 1-month free trial

Set up an LDAP database

- [Instructor] At this point, we should have a working LDAP server installation that has not been set up with a database. Ensure you're still in your Chapter 05 exercise files directory in your rhhost1 VM. Let's start by copying the sample database schemas from the OS. Type in sudo cp /usr/share/openldap-servers /DB_CONFIG.example /var/lib/ldap/DB_CONFIG and hit Enter. Now change the ownership to the LDAP user and group. Type in sudo chown -R ldap:ldap /var/lib/ldap/ and hit Enter. Let's clear the screen again. These files get us three schema files that we'll load. I will clear the screen each time to make it easier to read and troubleshoot. Type in sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/cosine.ldif and hit Enter. Now type in clear, bring your line back and change cosine.ldif to nis.ldif and hit Enter again. And lastly we'll clear the screen again, bring your line back, change nis.ldif to inetorgperson.ldif and hit Enter again. Now that we have a generic…

Contents