NTLM auth failure with latest samba (rh #1327072)

This commit is contained in:
Milan Crha 2016-04-19 18:58:36 +02:00
parent f6c27e4b68
commit b274274574
2 changed files with 37 additions and 1 deletions

View File

@ -4,7 +4,7 @@
Name: libsoup
Version: 2.54.0.1
Release: 1%{?dist}
Release: 2%{?dist}
License: LGPLv2
Group: Development/Libraries
Summary: Soup, an HTTP library implementation
@ -12,6 +12,8 @@ URL: https://wiki.gnome.org/Projects/libsoup
#VCS: git:git://git.gnome.org/libsoup
Source: https://download.gnome.org/sources/%{name}/2.54/%{name}-%{version}.tar.xz
Patch01: rh1327072-ntlm-auth-failure.patch
### Build Dependencies ###
BuildRequires: glib2-devel >= %{glib2_version}
@ -47,6 +49,7 @@ you to develop applications that use the libsoup library.
%prep
%setup -q
%patch01 -p1 -b .ntlm-auth-failure
%build
%configure --disable-static
@ -86,6 +89,9 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
%{_datadir}/vala/vapi/libsoup-2.4.vapi
%changelog
* Tue Apr 19 2016 Milan Crha <mcrha@redhat.com> - 2.54.0.1-2
- NTLM auth failure with latest samba (rh #1327072)
* Wed Mar 23 2016 Kalev Lember <klember@redhat.com> - 2.54.0.1-1
- Update to 2.54.0.1

View File

@ -0,0 +1,30 @@
diff --git a/libsoup/soup-auth-ntlm.c b/libsoup/soup-auth-ntlm.c
index 926fd4a..68029ae 100644
--- a/libsoup/soup-auth-ntlm.c
+++ b/libsoup/soup-auth-ntlm.c
@@ -359,6 +359,7 @@ soup_auth_ntlm_update_connection (SoupConnectionAuth *auth, SoupMessage *msg,
conn->state = SOUP_NTLM_SSO_FAILED;
success = FALSE;
} else if (!g_ascii_strcasecmp (response, "PW")) {
+ conn->state = SOUP_NTLM_SSO_FAILED;
priv->sso_available = FALSE;
g_free (response);
} else {
@@ -489,7 +490,7 @@ soup_auth_ntlm_get_connection_authorization (SoupConnectionAuth *auth,
priv->sso_available = FALSE;
}
} else {
- g_warning ("NTLM single-sign-on using %s failed", NTLM_AUTH);
+ g_debug ("NTLM single-sign-on using %s failed", NTLM_AUTH);
}
}
/* If NTLM single-sign-on fails, go back to original
@@ -525,7 +526,7 @@ soup_auth_ntlm_get_connection_authorization (SoupConnectionAuth *auth,
#ifdef USE_NTLM_AUTH
case SOUP_NTLM_SSO_FAILED:
/* Restart request without SSO */
- g_warning ("NTLM single-sign-on by using %s failed", NTLM_AUTH);
+ g_debug ("NTLM single-sign-on by using %s failed", NTLM_AUTH);
priv->sso_available = FALSE;
header = soup_ntlm_request ();
conn->state = SOUP_NTLM_SENT_REQUEST;