windows环境下OpenLDAP安装与客户端连接配置
2019獨角獸企業重金招聘Python工程師標準>>>
1.下載安裝OpenLDAP版本
C:\Users\Administrator>slapd -V
OpenLDAP 2.4.42 Standalone LDAP Server (slapd)
2.安裝過程中,全部用默認的操作執行即可。
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.schema
pidfile?? ??? ?./run/slapd.pid
argsfile?? ?./run/slapd.args
# Enable TLS if port is defined for ldaps
TLSVerifyClient never
TLSCipherSuite HIGH:MEDIUM:-SSLv2
TLSCertificateFile ./secure/certs/server.pem
TLSCertificateKeyFile ./secure/certs/server.pem
TLSCACertificateFile ./secure/certs/server.pem
#######################################################################
# mdb database definitions
#######################################################################
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+RcI0RS
# 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連接操作:
連接操作類似上面。
?
?
?
?
轉載于:https://my.oschina.net/u/2364025/blog/1808313
總結
以上是生活随笔為你收集整理的windows环境下OpenLDAP安装与客户端连接配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java ajax 获取headers_
- 下一篇: CocosCreator代码混淆加密