LDAP Server Configuration RHEL7
LDAP Server Configuration RHEL7
olcTLSCertificateFile: /etc/pki/tls/certs/example.pem
olcTLSCertificateKeyFile: /etc/pki/tls/certs/examplekey.pem
save& exit
Or
cp -rvf /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB-CONFIG
21) cd /usr/share/migrationtools
22) vim migrate_common.ph ? change line 71
DEFAULT_MAIL_DOMAIN = �example.com�;
DEFAULT_BASE = �dc=example,dc=com�;
line 90
EXTENDED_SCHEMA=1
line 61
in the else section change the $NAMINGCONTEXT{�group�}=�ou=Groups�;
Save & exit
23) ./migrate_base.pl ?chkeverything ? $DEFAULT-MAIL-DOMAIN=�example.com�;
ok or not ? $DEFAULT-BASE= �dc=example,dc=com�;
? $EXTENDED_SCHEMA=1;
save& exit
24) ./migrate_base.pl >/root/base.ldif
? Go to client machine /etc/hosts file and add ldap server ip with domain name
likes 172.16.16.200 ldap.example.com ldap
? yum install authconfig* authconfig-gtk sssd -y
?try to ping the server using domain
?try to login to machine using ldapser1 (you will be denied)
? try to see the ldapuser info using ?getent passwd ldapuser1 command nothing will
show. Hence you need to open authentication configuration windows using ?
authconfig-gtk
? Select LDAP from user account database
? LDAP seach base dn: dc=example,dc=com (ldap server domain name)
LDAP server : ldap://ldap.example.com (ldap server domain path)
?Check ?use TLS to encrypt connection and click �Download CA Certificate�
? Type the path of certificate file like ?http://ldap.example.com/pub/example.pem
* Alternatively you may browse this path with firefox before applying this whether
it is working or not?
?click on ? click apply to get out from �Authentiation configuration windows�
?Now try getent command that will show ldap user info like ?getent passwd ldapuser1
try to login with the user name - su � ldapuser1 now the user will be able to login
but it will not getting home directory to access to the home directory from ldap
server we need to share the home directory of the ldap server through nfs.
*** sometimes you may see after login with ldapuser you can see fifferent user name
this is because the uid of the ldapuser and client pc user uid is same. so change
the uid.