我试图从ldap移动到登录身份验证器的ldaps。针对IBM MobileFirst v8登录身份验证器的LDAPS配置
在adapter.xml
<property name="ldapURL" defaultValue="ldap://10.10.10.10:10636" displayName="The LDAP Server URL"/>
在LoginAuthenticator类
env.put(Context.SECURITY_PROTOCOL, "ssl");
我碰到下面的错误。
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
我不知道,我需要把我的密钥库放在ldaps协议中。你能帮我么?
我试着把它放在server.xml配置下面的路径中,但没有运气。
E:\MobileFirst-8.0.0.0\mfp-server\usr\servers\mfp\resources\security
<sslDefault sslRef="mySSLSettings" />
<ssl id="mySSLSettings" keyStoreRef="LDAPKeyStore" clientAuthentication="true" />
<keyStore id="LDAPKeyStore" location="serverssl.ks" type="JKS" password="secret" />
什么是登录认证器类?在v8中没有“登录身份验证器”这样的东西。 –
请看这里:https://mobilefirstplatform.ibmcloud.com/blog/2016/07/17/connecting-to-LDAP-with-ibm-mobilefirst-foundation/ –
它是LDAP LoginAuthenticator。 – Prisy