LDAP Flashcards

1
Q

Check to see if authconfig is installed

A

rpm -q authconfig

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

check to see if nss-pam-ldapd is installed

A

rpm -q nss-pam-ldapd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Necessary packages for LDAP auth

A

yum install authconfig nss-pam-ldapd openldap openldap-clients -y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how to see the authconfig options ldap options

A

authconfig –help | grep ldap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What options to use with authconfig

A

authconfig –enableldap –enableldapauth –ldapserver=ldap://ldap.cert.com –ldapbasedn=”dc=cert,dc=com” –update

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

restart the local LDAP name service

A

systemctl restart nslcd.service

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the nslcd.service?

A

nslcd is a daemon that will do LDAP queries for local processes based on a simple configuration file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

To create home dir when authenticated with ldap

A

authconfig –enablemkhomedir –update

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Check if ldap is working

A

su - ldap2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Configuring LDAP with authconfig-tui

A

cd /etc/openldap/cacerts

wget ftp://ipa.cert.local/pub/ca.cert

restorecon ca.crt

authconfig-tui

Select:
[ ] Use LDAP
[ ] Use LDAP Authentication
[ ] Local authorization is sufficient

Next
Server: ldap://server.cert.com
Base DN: dc=cert, dc=com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Check if none local user is able to auth

A

getent passwd ldapuser1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Ensure that you are able to connect to the LDAP server

A

add entry to /etc/hosts

192.168.1.2 hostname.cert.com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Allow connection with through firewalld

A

firewall-cmd –permanent –add-service=ldap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly