yum -y install openldap openldap-*
yum -y install nscd nss-pam-ldapd pcre pcre-*
yum -y install nss-*
yum -y install nss
[[email protected] openldap]# pwd
/etc/openldap
[[email protected] openldap]# slappasswd -s oldboy|sed -e ‘s#{SSHA}#rootpw\t{SSHA}#g‘ >>slapd.conf
[[email protected] openldap]# tail -1 slapd.conf
rootpw{SSHA}+OjqniWD7vyzN9D9vRbYRE6KvI3Hjrw1
[[email protected] openldap]# cp slapd.conf slapd.conf.ori
[[email protected] openldap]# pwd
/etc/openldap
[[email protected] openldap]# vim slapd.conf
database bdb
suffix "dc=etiantian,dc=org"
#checkpoint 1024 15
rootdn "cn=admin,dc=etiantian,dc=org"
ldap管理员的用户名密码:admin oldboy
先修改默认的配置
时间: 2024-10-12 13:04:23