openldap 2.3

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

上一篇:OpenLDAP安装与配置


下一篇:Apache Nifi单机环境搭建问题记录