-
Notifications
You must be signed in to change notification settings - Fork 253
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
segmentation fault in ngx_http_auth_ldap_ssl_handshake_handler with ssl_check_cert and ssl_ca_dir #236
Comments
Just spitballing, perhaps the same value could be pulled from |
Looking at this a little bit closer, here's what I think would be really neat: Right now the code in It would be nice to have the ability to verify the chain without checking the host/ip. stunnel does this by allowing you to specify a Maybe |
I'm working on something in my fork of this plugin to handle the case of the last comment: compare kvspb/nginx-auth-ldap/master ... mmguero-dev/nginx-auth-ldap/master This does't fix the bug, but it would allow a partial verification of the file while maintaining backwards compatibility. I'm going to do some more testing and do a pull request if you think it's okay and it works for my case. |
I should also note, although it's obvious from looking at the code: this only fails if the call to |
I'm pretty this check is wrong anyway, even if it werent' getting the segfault:
|
…l_handshake_handler with ssl_check_cert and ssl_ca_dir
Created PR #237 to address this bug. |
…l_handshake_handler with ssl_check_cert and ssl_ca_dir
My config file looks like this:
When I remove the
ssl_
stuff, it works fine. With it in, however, I get:Putting things up in GDB, I see the segfault here, in
ngx_http_auth_ldap_ssl_handshake_handler
:So
conn->sockaddr
is0x0
, hence the segfault.Let me know if you need more information. This is running in a docker container (Dockerfile) and was discovered as I was working on an enhancement for my project, idaholab/Malcolm#128
Here's the backtrace into the function:
The text was updated successfully, but these errors were encountered: