From a78c61a4bf5b7eb90b0945d94568b7b3b1f23c6e Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 21 Aug 2016 11:56:23 +0100 Subject: sasl: Don't use GSSAPI authentication when domain name not specified Only choose the GSSAPI authentication mechanism when the user name contains a Windows domain name or the user is a valid UPN. Fixes #718 --- lib/vauth/vauth.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/vauth/vauth.h') diff --git a/lib/vauth/vauth.h b/lib/vauth/vauth.h index 3ad2139f9..9d61228c3 100644 --- a/lib/vauth/vauth.h +++ b/lib/vauth/vauth.h @@ -55,6 +55,9 @@ TCHAR *Curl_auth_build_spn(const char *service, const char *host, const char *realm); #endif +/* This is used to test if the user contains a Windows domain name */ +bool Curl_auth_user_contains_domain(const char *user); + /* This is used to generate a base64 encoded PLAIN cleartext message */ CURLcode Curl_auth_create_plain_message(struct Curl_easy *data, const char *userp, -- cgit v1.2.3