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

Running web ssh client on port 443 /80 with nginx as reverse proxy

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

Setup VOD streaming server with nginx using RTMP on Ubuntu 18.04