2018 LDAP(3)Ldap and SSL

2018 LDAP(3)Ldap and SSL

SSL Fail in LDAP
> ldapwhoami -H ldaps://ldapexport.lifesizecloudbeta.com -x -ZZ
ldap_start_tls: Can't contact LDAP server (-1)
additional info: SSLHandshake() failed: connection closed via error (-9806)

Solution:
Finally, I found it is not because of error on the server side. It is a port mapping issue. We map the SSL port number from outside of the Docker to our NON SSL port inside the docker. That is why the client start the connection, but the server side terminate the connection right after that.

I used this tool to test the LDAP
http://directory.apache.org/studio/

After install the software, we an create a connection
Connection name: LdapSSLLocal
Hostname: localhost
Port: 636
Encryption method: Use SSL encryption
Provider: Apache Directory LDAP Client API

We can click on the button “Check Network Parameter”

I use SimpleAuthentication
Bind DN or user: uid=xxxx
Bind password: xxxxxx

We can click on the button ‘Check Authentication’

Base DN: o=cloud, dc=sillycat, dc=com

Then we can easily connect to our LDAP server

We can create a search after that.
Search Base: o=cloud, dc=sillycat, dc=com
Fitler: (cn=Carlos)
Returning Attributes: displayName, commOwner

After search, we can see all the results in the response.


References:
https://github.com/osixia/docker-openldap/issues/199
https://github.com/osixia/docker-openldap/issues/105
http://www.openldap.org/doc/admin24/tls.html
https://github.com/osixia/docker-openldap/search?utf8=%E2%9C%93&q=LDAP_TLS_VERIFY_CLIENT&type=
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值