jndi+ssl访问domino ldap报错"Bind failed: Username / password binds not allowed"?
我用java的JNDI接口通过ssl协议连接domino ldap服务,运行后,系统报错:
javax.naming.AuthenticationNotSupportedException: [LDAP: error code 48 - Bind failed: Username / password binds not allowed]
at com.sun.jndi.ldap.LdapClient.authenticate(Unknown Source)
......
我的配置参数如下:
java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
java.naming.provider.url=ldap://server1.com.cn:636
java.naming.ldap.version=2
java.naming.security.protocol=ssl
java.naming.security.authentication=simple
java.naming.security.principal=CN=test,O=server1
java.naming.security.credentials=111
javax.net.ssl.trustStore=D:/config/asbhkeystore