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 37 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

lib/libsmb2.c Fixed Show fixed Hide fixed
lib/ntlmssp.c Fixed Show fixed Hide fixed
lib/ntlmssp.c Fixed Show fixed Hide fixed
lib/libsmb2.c Fixed Show fixed Hide fixed
lib/ntlmssp.c Fixed Show fixed Hide fixed
@sahlberg
Copy link
Owner

Thanks.
I have merged these three commits into a single one and added to master :

fb71126 proper type for cred handle
2e416aa add krb5 cred handle passing api
c0e8924 add krb5 cred handle passing and release mechanism for proxying

since they belong together. Please rebase ontop of master and remove these three commits from your push request.

return -1;
/* ignore this error for now, it might be OK
* to not pass the pending reply along */
/*return -1;*/

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
@bdodge
Copy link
Contributor Author

bdodge commented Dec 21, 2024 via email

@bdodge
Copy link
Contributor Author

bdodge commented Dec 21, 2024 via email

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.

3 participants