我在Windows AD环境中启用了LDAPS。 使用LDP.exe,我可以连接到有问题的服务器在端口636与SSL选项都选中和取消选中。 这是否意味着明文正在通过端口636传递选项未选中? 是否有可能强制服务器只监听端口636上的SSLstream量?
SSL未选中:
ld = ldap_open("server.domain.com", 636); Established connection to server.domain.com. Retrieving base DSA information... Getting 1 entries: Dn: (RootDSE)
SSL检查:
ld = ldap_sslinit("server.domain.com", 636, 1); Error 0 = ldap_set_option(hLdap, LDAP_OPT_PROTOCOL_VERSION, 3); Error 0 = ldap_connect(hLdap, NULL); Error 0 = ldap_get_option(hLdap,LDAP_OPT_SSL,(void*)&lv); Host supports SSL, SSL cipher strength = 128 bits Established connection to server.domain.com. Retrieving base DSA information... Getting 1 entries: Dn: (RootDSE)
该checkbox存在。对于服务可能位于非默认端口的场景。 它不能使客户端覆盖服务器encryption设置/要求。