Is there way to completly recreate LdapConnection (with native part included)? #170
Unanswered
Kashemir78
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
This is my first time working with LDAP and I'm stuck with a problem - is it possible to reset the connection? Any attempt to re-create the LdapConnection and reconnect after binding results in a search error.
As far as I understand, the native instance is static and in fact is simply reused.
So I wrapped LdapConnection in a singleton and everything works fine, until at some point when the connection with the AD controller lost for example and any calls to the connection lead to an error.
LdapForNet.LdapOperationsErrorException: Operations error. 000004DC: LdapErr: DSID-0C090A5C, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v4563. Result: 1. Method: ldap_parse_result.
I did not find any way to completely recreate/restore the connection - to solve the problem I have to restart the container (docker/linux) and its not looks good :(
Code:
Beta Was this translation helpful? Give feedback.
All reactions