-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add CompleteAuthToken from SSPI #381
Comments
Please contribute! |
OK, will have a look how things work in JNA to make the appropriate changes. |
Does this also say that we're not handling |
Yes, it does. I cannot tell when this is really necessary but if it is documented, it should be applied. The secrets of this are only known to Microsoft. |
@michael-o Actually the doc is very clear on this, https://msdn.microsoft.com/en-us/library/windows/desktop/aa374764(v=vs.85).aspx says: So it's not necessary for Negotiate (neither NTLM nor Kerberos). |
That contradicts the return values for Kerberos: https://msdn.microsoft.com/en-us/library/windows/desktop/aa375507%28v=vs.85%29.aspx One should ask Microsoft... The safest best would be to comply to the return values and add some comment to the code. This is clearly a dispute. |
I think the safest would be to handle it. Either way JNA needs this function mapping which is this issue, and please feel free to contribute. |
This is something I have on my radar but won't happen before next month. |
From my POV implementing |
@matthiasblaesing MSDN is contradicting itself. One place talks about Digest only, other places take about the general use. |
@michael-o I won't dispute that here. I could bind the function just with the MSDN/header, but I want to have a unittest for the function. The current unittests simulate the authentication headshake in process, I failed to implement that for digest and given that digest is the only known module, that definitely requires this, I need sample code, that demonstrates the correct use. |
Sorry - that code only exercises the |
Oh sorry, I thought you just wanted a real use case. But as you can see, the call is added for the sake of the interface. Being in a corporate environment, I have never seen a use of Digest. SPNEGO or NTLM only. Even though, one cannot be sure that it won't be used for NTLM, we cannot look into Microsoft's code. |
I'm about to bind the method without testing, but working with |
Correct. I'd just add it. If someone does have some valid Digest use case, that'd be fine. |
Ok, merged as announced. |
Motivation: There are new java version Modifications: Update all java versions to latest patch release Result: Use latest java versions on the CI
Currently, SSPI mappings completely miss
CompleteAuthToken
with the appropriate security statusesSEC_I_COMPLETE_NEEDED
andSEC_I_COMPLETE_AND_CONTINUE
which require the aforementioned function. Moreover, the return codes from this function must be available as well.The text was updated successfully, but these errors were encountered: