错误提示:
D:OpenLDAP>slapd -d 256
515a48ae OpenLDAP 2.4.34 Standalone LDAP Server (slapd)515a48af config_build_attrs: error 21 on olcConfigFile value #0
515a48af config_build_entry: build "cn=config" failed: ""
515a48af backend_startup_one (type=config, suffix="cn=config"): bi_db_open failed! (-1)
515a48af slapd stopped.
C:OpenLDAP的slapd.conf
database bdb suffix "dc=micmiu,dc=com" rootdn "cn=Manager,dc=micmiu,dc=com" # Cleartext passwords, especially for the rootdn, should # be avoid. See slappasswd(8) and slapd.conf(5) for details. # Use of strong authentication encouraged. rootpw {SSHA}YcikqAzyPVpVRI8uXw1zdzjRd4EQMmyv
C:OpenLDAP创建文件mydemo.ldif
dn: dc=micmiu,dc=com objectclass: domain objectclass: top o: Michael Blog dc: micmiu dn: ou=Developer,dc=micmiu,dc=com objectclass: organizationalUnit ou: Developer description: Container for developer entries dn: ou=Tester,dc=micmiu,dc=com objectclass: organizationalUnit ou: Tester description: Container for test entries dn: uid=Michael,ou=Developer,dc=micmiu,dc=com uid: Michael objectClass: inetOrgPerson mail: sjsky_007@gmail.com userPassword: 111111 labeledURI: http://www.micmiu.com sn: Sun cn: Michael Sun dn: uid=Miumiu,ou=Tester,dc=micmiu,dc=com uid: Miumiu objectClass: inetOrgPerson userPassword: 111111 labeledURI: http://www.micmiu.com sn: Wu cn: Miumiu Wu
![](https://images2015.cnblogs.com/blog/135415/201611/135415-20161106103811080-16604790.jpg)
http://blog.itpub.net/22977/viewspace-623810/
http://blog.sina.com.cn/s/blog_536c644701018bkx.html
http://wenku.baidu.com/view/6b2304976bec0975f465e261.html