您的位置:首页 > 编程语言 > Java开发

Spring LDAP authenticate method with Pooling - UnsupportedOperationException

2015-06-29 16:40 591 查看
1、

I'm using Spring LDAP 2.0.0.RELEASE and am getting an error using the new ldapTemplate.authenticate(LdapQuery, password) method with ldap pooling turned on. I get the error:

java.lang.UnsupportedOperationException: Not supported for this implementation

I only get this error when I have the ldap:pooling tag in my applicationContext.xml

In order to authenticate the user the ContextSource performs a bind, which is accomplished by creating a new connection with the specified
distinguished name and password. Due to this, these connections cannot be pooled.

2、解决方案contextSource用两种,平常的用pool的,鉴权的用非pool的
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: