From the course: Linux System Engineer: Authentication with LDAP and Kerberos

Unlock the full course today

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

Set up LDAP database

Set up LDAP database

From the course: Linux System Engineer: Authentication with LDAP and Kerberos

Start my 1-month free trial

Set up LDAP database

- [Instructor] At this point, we should have a working ldap server installation, that hasn't been set up yet with a database. Ensure you're still in the chapter two exercise files directory in your RH host 1VM. For me this is /home/user1/ExerciseFiles/Ch 02. We'll start by copying the sample database schemas from the operating system. Type in sudo space cp space /usr/share/openldap-servers/ DB_CONFIG, all uppercase, .example space /var/lib/ldap/DB_CONFIG, all uppercase, and hit enter. Type in your password if prompted. Now let's change the ownership to the ldap user and group. Type in sudo space chown space -R space ldap:ldap space /var/lib/ldap, and hit enter. Let's clear the screen again. Type in clear, and then we'll add some schema files. Type in ls space -l space/etc/openldap /schema, and hit enter. We're going to want three of these. Cosine, nis, and inet org person. Type in clear, and then type in sudo space ldapadd space - capital Y space EXTERNAL, all uppercase, space -H…

Contents