Skip to content
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

Panic when gssapi library failed to load #2

Merged
merged 1 commit into from
Jan 14, 2020
Merged

Conversation

pf-qiu
Copy link

@pf-qiu pf-qiu commented Jan 13, 2020

If gssapi library failed to load but gssapi authentication is
requested, client is hang. After 60 seconds server will reply
with timeout error.

In conn.auth() function, if gsslib is nil it does nothing, and thus
effectively ignores the authentication request. This is the root
cause of the hang.

This can be reproduced by setting LD_LIBRARY_PATH to contain bad
kerberos libraries:
touch libgssapi_krb5.so
LD_LIBRARY_PATH=pwd ./program

If gssapi library failed to load but gssapi authentication is
requested, client is hang. After 60 seconds server will reply
with timeout error.

In conn.auth() function, if gsslib is nil it does nothing, and thus
effectively ignores the authentication request. This is the root
cause of the hang.

This can be reproduced by setting LD_LIBRARY_PATH to contain bad
kerberos libraries:
touch libgssapi_krb5.so
LD_LIBRARY_PATH=`pwd` ./program
@magi345
Copy link

magi345 commented Jan 13, 2020

LGTM

@pf-qiu pf-qiu merged commit d0cb1d1 into master Jan 14, 2020
@pf-qiu pf-qiu deleted the panic_when_ld_failed branch January 14, 2020 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants