标签:pen 用户 install share data slapd pcr openldap 创建用户
centos6 ldap
yum安装
yum -y install openldap openldap-*
yum -y install nscd nss-pam-ldapd nss-* pcre pcre-*
cp /usr/share/openldap-servers/slapd.conf.obsolete ./slapd.conf
cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIG
rm -rf /etc/openldap/slapd.d/*
slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d/
chown -R ldap. /etc/openldap/slapd.d
ldapsearch -LLL -W -x -H ldap://test.org -D "cn=admin,dc=test,dc=org" -b "dc=test,dc=org" "(uid=*)"
创建用户
备份
ldapsearch -LLL -w dou -x -H ldap://test.org -D "cn=admin,dc=test,dc=org" -b "dc=test,dc=org" >/root/bak_ldap_data.ldif
标签:pen 用户 install share data slapd pcr openldap 创建用户
原文地址:https://www.cnblogs.com/littlebylittle/p/12571235.html