其他分享
首页 > 其他分享> > openldap 2.3

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

标签:dc,test,openldap,ldap,2.3,org,slapd
来源: https://www.cnblogs.com/littlebylittle/p/12571235.html