How to configure openldap authentication in Rhel 6

Install rhel6.x or centos 6.

remove some packages by the command

# rpm -e --nodeps ipa-client
# rpm -e sssd

Install required  package

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

Now use authconfig command to provide authentication parameter

# authconfig --enableldap --enableldapauth --enablecache --disablesssd --ldapserver="ldap://192.168.1.1:389" --ldapbasedn="dc=mydomain,dc=com" --enablemkhomedir --updateall


backup  authconfig configuration

# authconfig --savebackup="/root/ldapbak"
By using above command all authentication configuration files will get store inside /root/ldapbak directory.

restore authconfig configuration from last backup

#authconfig --restorelastbackup
you can also specify the source directory of last backup to restore that

#authconfig --restorebackup="/root/ldapbak"

Comments

Popular posts from this blog

using libguestfs virt-customize tool to modify qcow2 image and reset root password.

Running cockpit behind nginx reverse proxy with nginx ssl and cockpit non ssl

setting up openshift alert manager mail alerting based on critical and warning