修改slapd.conf配置文件, 主要修改部分如下;
配置脚本代码
database bdb
suffix “dc=XXX,dc=com” #修改domain信息
rootdn “cn=administrator,dc=XXX,dc=com” #修改domain信息
# Cleartext passwords, especially for the rootdn, should
# be avoided. See slappasswd( and slapd.conf(5) for details.
# Use of strong authentication encouraged.
# rootpw secret
# rootpw {crypt}ijFYNcSNctBYg
rootpw secret#打开密码保护
报错如下
# extended LDIF
#
# LDAPv3
# base <cn=administrator,dc=XXX,dc=com> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# search result
search: 2
result: 32 No such object
matchedDN: DC=XXX,DC=com
text: 0000208D: NameErr: DSID-03100213, problem 2001 (NO_OBJECT), data 0, bes
t match of:
'DC=XXX,DC=com'