Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring LDAP authenticate method with Pooling - UnsupportedOperationException

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

When I remove this, the method works successfully. Any idea why authenticate doesn't work with ldap pooling? Pooling seems to work fine with other ldapTemplate methods.

like image 308
user1167313 Avatar asked Feb 04 '26 09:02

user1167313


1 Answers

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.

like image 88
Aspirant Avatar answered Feb 06 '26 23:02

Aspirant



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!