-
Notifications
You must be signed in to change notification settings - Fork 264
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
LDAPSocketOpenError - EOF occurred in violation of protocol (_ssl.c:777) #469
Comments
Are you on a Mac? This seem to be some an issue with the OpenSSL library. The EOF message is not referring to a file on your file system but to the SSL socket that is seen as a stream (file) by the Operating System. |
Yes I am on a Mac. I tested application on physical machine and it works. My application is a Flask app and I run outside of the container and there is no problem with no changes to code. So, app works outside of Docker container. At this point I'm still researching and feel that problem is related to some Docker config. |
Probably the OpenSSL used in the container is old and different from the one you’re using in the Mac OS. Do you have the Dockerfile used to build the container?
… Il giorno 12 gen 2018, alle ore 21:19, j-c-1253 ***@***.***> ha scritto:
Yes I am on a Mac.
I tested application on physical machine and it works. My application is a Flask app and I run outside of the container and there is no problem with no changes to code. So, app works outside of Docker container. At this point I'm still researching and feel that problem is related to some Docker config.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Thats a good observation... gonna look at OS OpenSSL and Docker SSL. here is Dockerfile...
|
I confirmed that Mac and Docker are running OpenSSL 1.0.2n. Thank you for looking at this issue. |
hey cannatag... I worked on this issue and confirmed that: To replicate: (This produces the error)
Flask Code
If you change FROM alpine:latest ----> to FROM alpine:3.4... it works. |
Hi, I've tested in my lab with the latest Alpine on a Windows 10 machine (with MobyLinux) and the "it works" message appears. Will try to run it on a Mac next week. |
We are experiencing the exact same issue:
Reproduce like: import ssl
import ldap3
server = ldap3.Server("ldapserver.tld", use_ssl = True)
conn = Connection(server, user = "me", password = "secure")
conn.bind() This results in:
Unfortunately setting tls in the Server explicitly to Never mind. The trick was to use ldap3.Tls and specify |
I have a simple connection to ldap server over port 636.
conn = Connection(host, port=636, use_ssl=True)
And I receive the following error:
I know the server settings are fine because I debugged and confirmed connection manually using:
openssl s_client -connect ldap.server.address.com:636
I know the certs are in place because this works!
I need some assistance... I can't find some substantial information on this error. I see EOF and I'm assuming End of File?? If so, which file?
FYI, I'm running python3+ldap3 in a docker container.
The text was updated successfully, but these errors were encountered: