-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
twisted hangs when provding wrong host name #10
Comments
Right, we should definitely handle this case better. Similarly, if the syntax of the Maybe we should do a "test connection" to the LDAP backend on startup (with the possibility to opt out?) to notice this kind of errors as early as possible? |
Sounds good to me. Are there any implementations in regards to round robin? |
Using the new syntax, we can now even specify a connection establishment timeout (see #10).
As of d0624f6, we can now specify a connection establishment timeout in the config file. By round robin, do you mean the possibility of specifying LDAP backend servers and connecting to them in a round-robin fashion? I'm not sure if Twisted provides something like that out of the box, but I can do some research. :-) |
I know this from the ldap3 python module. You can have a server pool. |
I did some research and did not find anything that we could use -- but we could always build a simple server pool ourselves. I've opened #11 for that. |
7f017ad adds the feature of testing the connection to the LDAP backend on startup -- it just performs an anonymous bind followed by an unbind. |
b45fca5 uses the service account to test the connection. |
Can we close this? |
I just noticed: In case the proxy cannot reach the LDAP backend (e.g. wrong IP), it prints a message to the log only after a 30 second timeout. |
In
config.ini
setting in section[ldap-backend]
thehost = "ldap://1.2.3.4"
.twisted runs into this error:
Also see #3.
The other problem is, that twisted hangs and will not repsond to any other request!
The text was updated successfully, but these errors were encountered: