只为留下点什么

   ::  ::  ::  ::  :: 管理

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

posted on 2020-03-25 22:50  只为留下点什么  阅读(127)  评论(0编辑  收藏  举报