OpenLDAP
1.安装 OpenLDAP 服务器
OpenLDAP Server 可此链接免费获取: http://www.openldap.org/software/download/
1.1 双击 OpenLDAP 应用程序开始安装:
例如:openldap-2.2.29-db-4.3.29-openssl-0.9 .8a-win32_Setup.exe
1.2 单击“Browse”找到安装路径(例如:C:\OpenLDAP),然后单击“Next”:
1.3 如下选择“Full installation”,点击“Next”继续:
1.4 单击 "Next/Install" 作为默认设置:
1.5 单击“Finsh”完成OpenLDAP安装:
2.配置LDAP服务器
2.1 添加架构命令:
打开安装路径下的slap.conf文件。并找到命令:./schema/core.schema,然后添加以下命令:
include ./schema/cosine.schema include ./schema/inetorgperson.schema include ./schema/corba.schema include ./schema/dyngroup.schema include ./schema/java.schema include ./schema/misc.schema include ./schema/nis.schema include ./schema/openldap.schema
2.2 编辑管理器信息:
在slap.conf中找到以下命令:
suffix “dc=my-domain, dc=com” rootdn “cn=manager,dc=mg-domain,dc=com” rootpw secret
suffix 定义域名的组成部分。
rootdn 是 LDAP 服务器的管理员访问权限。
rootpw 是指管理员的密码。
例如,您可以更改上下文,如下所示:
suffix “dc=HanLong,dc= com” rootdn “cn=manager,dc=HanLong,dc=com” rootpw secret