1.下载安装OpenLDAP版本
C:\Users\Administrator>slapd -V
OpenLDAP 2.4.42 Standalone LDAP Server (slapd)服务器
2.安装过程当中,所有用默认的操做执行便可。app
3.修改OpenLDAP文件以下:工具
# MDB Backend configuration file
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
ucdata-path ./ucdata
include ./schema/core.schema
include ./schema/cosine.schema
include ./schema/nis.schema
include ./schema/inetorgperson.schema
include ./schema/openldap.schema
include ./schema/dyngroup.schemaui
pidfile ./run/slapd.pid
argsfile ./run/slapd.args加密
# Enable TLS if port is defined for ldapsspa
TLSVerifyClient never
TLSCipherSuite HIGH:MEDIUM:-SSLv2
TLSCertificateFile ./secure/certs/server.pem
TLSCertificateKeyFile ./secure/certs/server.pem
TLSCACertificateFile ./secure/certs/server.pemserver
#######################################################################
# mdb database definitions
#######################################################################ip
database mdb
suffix "dc=maxcrc,dc=com"
rootdn "cn=Manager,dc=maxcrc,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}drJjDix6yL/v4cyZid5ADT/ej+RcI0RSci
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory ./data
searchstack 20
# Indices to maintain
index mail pres,eq
index objectclass pres
index default eq,sub
index sn eq,sub,subinitial
index telephonenumber
index cn
域名
说明:suffix:支持的域后缀,"dc=maxcrc,dc=com",表示支持maxcrc与com的域名,rootdn :此OpenLDAP的根域。可根据本身的需求修改,rootpw:管理员密码:默认值secret,默认基于{SSHA}加密
能够根据:
C:\Users\Administrator>slappasswd
New password: 123
Re-enter new password: 123
{SSHA}2e49d0L/XomzoVsO+VuWQbC5qixCdKK/
命令修改:出现上面信息,表示修改为功。
2经过客户端工具链接:
链接工具:ldapbrowser
安装打开后,它会连上一个默认的internet public brower服务器。
咱们须要创建链接本身主机的openLADP服务器目录:
1.1 file》新建:
1.2 选根本身的目录
1.3 填写完整的验证信息
下一步便可完成openLADP链接与查询。
也能够使用LdapAdmin.exe链接操做:
链接操做相似上面。