Integrate OpenLdap with CentOS using SSSD
How to integrate OpenLdap with Centos 8 using SSSD?
Overview : This article provides a step-by-step guide on installing and configuring SSSD for LDAP integration on a CentOS server, including package installation, SSSD configuration, and verification of LDAP user details.
Run the following commands to install the SSSD packages
Add ldap_search_base,ldap_default_bind_dn,ldap_default_authtok,ldap_uri to /etc/sssd/sssd.conf
Restart sssd and nscd using below commands.
[root@jumpserver ~]# service sssd restart && service nscd restart
Note:
When sssd restart fails, make sure to change the permissions of sssd.conf to 600
[root@jumpserver ~]# chmod 600 /etc/sssd/sssd.conf
Enable autocreate home directory on login by the following command
Now run the id / finger command and see whether you are able to get LDAP user details
Note:
Use the below command to clear the cache of the user.
[root@jumpserver ~]# sss_cache -u username
Related Articles
Integrate Windows AD on RHEL 8 using SSSD
Integrate Windows AD with Centos 8 using SSSD