Friday, May 13, 2016

RHEL7 - LDAP client configuration

RHEL7 - LDAP client configuration

[root@localhost tmp]# id ldapuser1
id: ldapuser1: no such user
[root@localhost tmp]#

Install nss-pam-ldap

[root@localhost tmp]# yum install nss-pam-ldap

[root@localhost tmp]# authconfig-tui

Authentication configuration menu pops up.

On LDAP setting menu, enter the following info.
Do not select use TLS
Server: ldap://expanor.local
Base DN: dc=expanor, DC=local

Press next and enter the following info at the Kerberos setting menu

KDC: sam.expanor.local
Admin Server: sam.expanor.local
and check [*] Use DNS to resolve hosts to realms

check nsswitch.conf file
[root@localhost tmp]# vi /etc/nsswitch.conf

passwd:     files sss ldap


Look for your ldap user that you imported to LDAP server
[root@localhost tmp]# grep ldapu /etc/passwd

no result

Now, server on LDAP database

[root@localhost tmp]# getent passwd ldapuser1
[root@localhost tmp]# getent passwd ldapuser2
[root@localhost tmp]#

if you don't get return result, you might have mistake somewhere.

No comments:

Post a Comment