From the course: Linux System Engineer: Authentication with LDAP and Kerberos
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Create Kerberos database
From the course: Linux System Engineer: Authentication with LDAP and Kerberos
Create Kerberos database
- [Instructor] Now let's create a Kerberos database. To do so, we'll run the kdb5_util command. In a terminal, type in sudo kd5_util create -s -r, uppercase LOCALNET.COM. Enter your password if prompted. It will also prompt you to choose a master password. Enter it twice and do not forget it. Now let's enable and start the services. Type in clear and then hit enter. Type in sudo systemctl enable kadmin and hit enter. Bring your line back and change kadmin to krb5kdc and hit enter. This enables both the kadmin and krb5 kdc services. Type in clear, then type in sudo systemctl start kadmin and hit enter. Bring back your line again and change kadmin to krb5kdc and hit enter again. Let's now create a firewall rule to allow incoming Kerberos connections. Type in clear and then we'll type in sudo firewall-cmd - -zone=public --permanent - -add-service=kerberos, and hit enter. Now we need to reload the firewall config. Type in sudo firewall-cmd --reload and hit enter. We're now going to create…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.