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

implement kerberos auth for server (and proxy) including constrained delegation #381

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

bdodge
Copy link
Contributor

@bdodge bdodge commented Dec 10, 2024

This provides for krb5 authentication to libsmb2 server and can co-exist with local ntlmssp auth in the case krb5 ntlmssp isnt installed. TODO - detect if krb5 can handle ntlmssp and offload to krb5 in that case. Need to figure a way to ask krb5 lib if it can do that.

Also provides for constrained delegation in proxy use-case where the original client credentials can be used to get a proxy credential to use for proxy client to actual server.

Adds a "suppress_errors" flag to ntlmssp message type sniffing to allow for auto-detect of auth method during negotiation by using the get-message-type function to determine if a valid ntmssp message is in a blob

@@ -830,7 +830,8 @@
req.security_mode = (uint8_t)smb2->security_mode;

if (smb2->sec == SMB2_SEC_NTLMSSP) {
/*ntlmssp_set_spnego_wrapping(c_data->auth_data, 1);*/
/* do this to wrap in spnego if needed */
/*tlmssp_set_spnego_wrapping(c_data->auth_data, 1);*/

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
lib/ntlmssp.c Fixed Show fixed Hide fixed
lib/ntlmssp.c Fixed Show fixed Hide fixed
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.

1 participant