如何基于64位Windows服务器快速搭建LDAP服务

2024-10-12 15:20:00

1、下载64位安装文件openldap-for-windows.msi,一路next就可以,中间可以修改调整安装路径。比如安装到C:\OpenLDAP下

2、修改安装路径下的配置文件C:\蚪嬷吃败OpenLDAP\slapd.conf。首先修改 include 部分。原来:include ./schema/core.sche罪焐芡拂mainclude ./schema/cosine.schemainclude ./schema/nis.schemainclude ./schema/inetorgperson.schemainclude ./schema/openldap.schemainclude ./schema/dyngroup.schema修改后:include ./schema/core.schemainclude ./schema/cosine.schemainclude ./schema/inetorgperson.schemainclude ./schema/corba.schemainclude ./schema/dyngroup.schemainclude ./schema/nis.schemainclude ./schema/openldap.schema

3、启动LDAD服务器。Cmd 到 安装路径下 c:/OpenLDAP,执行命令Slapd –d 1启动完毕。LDAP启动会默认加载C:\OpenLDAP\maxcrc.ldif 文件 。

如何基于64位Windows服务器快速搭建LDAP服务

4、下面导入自己的数据。(1)打开LdapAdmin.exe ,连接服务器,删掉安装时候默认的 dn. 打开LdapAdmin.exe(下载LdapAdminExe-w64-1.7.2.zip,解压安装管理客户端软件)不要 匿名登录。要使用管理员 用户 及密码登录,才有修改及删除数据的权限。(2)停止LADP服务器,直接关掉cmd窗口即可。准备导入自己定义的dn。(3)删掉C:\OpenLDAP\data,原来启动时候加载的默认数据。

如何基于64位Windows服务器快速搭建LDAP服务
猜你喜欢