-
Notifications
You must be signed in to change notification settings - Fork 27
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
gssntlm_acquire_cred_from crashes due SIGSEGV when desired_name=NULL #40
Comments
Uhmm so a cred_store was provided but no name was provided ... We definitely need to resolve the crash, but currently the code assumes that a name needs to be provided if acquire with cred store is provided, so I am trying to figure out what is the right thing to do in this case. |
i provided a possible patch, please let me know if this will work for you. |
That said I think there is a bug in samba here. There is also the chance it will loop back to windbind to obtain NTLM creds where it does not expect so and may lead to a deadlock if this happens within winbindd itself (although I think the windbind client interface prevents it). |
Thank you very much for fast fix, haven't expected it so quick :-) |
I have tested the fix (I have done cherry-pick for this commit over the latest version of code because I found that your private branch 'name_crash' misses some recent changes). However the basic checks of NTLM functionality have failed due other bug - see #42 . |
Running samba winbind with gssntlmssp of the latest development version installed (got sources from github + compiled). Immediately after start I get this crash:
As far as I see from backtrace and source code, the problem happens because Kerberos library calls gssntlm_acquire_cred_from with desired_name=NULL and library tries to de-reference it without proper check for NULL.
The text was updated successfully, but these errors were encountered: