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"
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
Post a Comment