Can i use bind method of Connection with newAuthenticatedConnectionFactory in OpenDJ?

StackOverflow https://stackoverflow.com/questions/21801675

  •  12-10-2022
  •  | 
  •  

문제

I have created a class to provide connection pooling with OpenDJ. Now i am trying to authenticate a user using another class which picks a connection from the pool.

If I use newAuthenticatedConnectionFactory method to create the pool then it gives UnsupportedOperation exception while it works fine if I use newFixedConnectionPool.

Why is it so? Is bind method not allowed with newAuthenticatedConnectionFactory ?

도움이 되었습니까?

해결책

An authenticatedConnectionFactory is a method to obtain a connection on which a well known user is already authenticated. Therefore it's not suited to do other authentication and Bind request.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top