windows如何安装配置Ldap



 

 

 上网找了几篇安装Ldap的文档,装装卸卸好多次,终于经过几个组合成功了- -!这里列出来我的整个操作步骤,供参考

1. 下载windows下OpenLdap_x64的安装包及LdapBrowser282的安装包

2. 安装OpenLdap,全部采用默认的选项,数据那里选择BDB。

3. 安装完成后,修改slapd.conf(粗体部分为修改后内容)

database bdb
suffix  "dc=example,dc=com"
rootdn  "cn=Manager,dc=example,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    secret

4. 修改完成后,到系统服务里关掉OpenLdap的服务。

5. 打开cmd,进入到安装目录,执行slapd -f slapd.conf -d 1 命令

6. 新建一个文件example.ldif,内容如下

dn: dc=example,dc=com
objectclass: dcObject
objectclass: organization
o: Example Company
dc: example

dn: cn=Manager,dc=example,dc=com
objectclass: organizationalRole
cn: Manager

看到网上说需要手敲,之前复制了几个都不行,这里我是手敲的。

7. 新打开一个窗口,在安装目录下输入命令slapadd -v -l ./example.ldif导入该项配置

8. 打开LdapBrowser282下的lbe.bat

修改OpenLdap_Localhost的配置

保存后,点击Connect

即连接成功

猜你喜欢

转载自guanning.iteye.com/blog/2215929