Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 4 Next »

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

image-20240321-070558.pngimage-20240321-070633.png

1.2 单击“Browse”找到安装路径(例如:C:\OpenLDAP),然后单击“Next”:

image-20240321-070715.png

1.3 如下选择“Full installation”,点击“Next”继续:

image-20240321-071037.png

1.4 单击 "Next/Install" 作为默认设置:

image-20240321-071156.pngimage-20240321-071203.pngimage-20240321-071210.png

1.5 单击“Finsh”完成OpenLDAP安装:

image-20240321-071252.png

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
image-20240321-071629.png

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
df1428ed-3a12-4d7e-88b8-af48b6a06179.pngdf1428ed-3a12-4d7e-88b8-af48b6a06179.png
  • No labels