summaryrefslogtreecommitdiffstats
path: root/src/gss_ntlmssp.h
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-08-04 18:06:58 -0400
committerSimo Sorce <simo@redhat.com>2014-08-07 12:44:46 -0400
commit5ac987ad3b18a551a86116791445824bbd82c4e2 (patch)
treea41a841e2bcb096a62beec570c29cc78ae777551 /src/gss_ntlmssp.h
parent78cb0a7bf31554d90eccfe626ba3e2b4c6b2893a (diff)
downloadgss-ntlmssp-5ac987ad3b18a551a86116791445824bbd82c4e2.tar.gz
gss-ntlmssp-5ac987ad3b18a551a86116791445824bbd82c4e2.tar.xz
gss-ntlmssp-5ac987ad3b18a551a86116791445824bbd82c4e2.zip
Support client authentication using Winbind
Based on a patch by David Woodhouse <David.Woodhouse@intel.com> Original commit message: We need to screw around with the flags a little, since winbind doesn't really get it right. Thankfully, it doesn't support MIC and it does at least generally do the right thing (w.r.t. session negotiation and OEM vs. Unicode) so it's sufficient just to screw with the flags. Tested with Negotiate authentication to squid, and NTLM in datagram mode with pidgin-sipe. Also with Firefox, Chrome and a fixed libcurl.
Diffstat (limited to 'src/gss_ntlmssp.h')
-rw-r--r--src/gss_ntlmssp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gss_ntlmssp.h b/src/gss_ntlmssp.h
index 964483b..55e6570 100644
--- a/src/gss_ntlmssp.h
+++ b/src/gss_ntlmssp.h
@@ -173,6 +173,14 @@ int gssntlm_copy_creds(struct gssntlm_cred *in, struct gssntlm_cred *out);
uint32_t external_netbios_get_names(char **computer, char **domain);
uint32_t external_get_creds(struct gssntlm_name *name,
struct gssntlm_cred *cred);
+uint32_t external_cli_auth(char *user, char *domain,
+ gss_channel_bindings_t input_chan_bindings,
+ uint32_t in_flags,
+ uint32_t *neg_flags,
+ struct ntlm_buffer *nego_msg,
+ struct ntlm_buffer *chal_msg,
+ struct ntlm_buffer *auth_msg,
+ struct ntlm_key *exported_session_key);
uint32_t external_srv_auth(char *user, char *domain,
char *workstation, uint8_t *challenge,
struct ntlm_buffer *nt_chal_resp,