From 02844e074085c60a9071a33b605b4beaf43e259f Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Apr 19 2016 17:06:15 +0000 Subject: NTLM auth failure with latest samba (rh #1327072) --- diff --git a/libsoup.spec b/libsoup.spec index 8565523..cb2c792 100644 --- a/libsoup.spec +++ b/libsoup.spec @@ -4,7 +4,7 @@ Name: libsoup Version: 2.50.0 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPLv2 Group: Development/Libraries Summary: Soup, an HTTP library implementation @@ -12,6 +12,8 @@ URL: http://live.gnome.org/LibSoup #VCS: git:git://git.gnome.org/libsoup Source: http://download.gnome.org/sources/libsoup/2.50/libsoup-%{version}.tar.xz +Patch01: rh1327072-ntlm-auth-failure.patch + ### Build Dependencies ### BuildRequires: glib2-devel >= %{glib2_version} @@ -46,6 +48,7 @@ you to develop applications that use the libsoup library. %prep %setup -q +%patch01 -p1 -b .ntlm-auth-failure %build %configure --disable-static @@ -81,6 +84,9 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la %{_datadir}/gtk-doc/html/%{name}-2.4 %changelog +* Tue Apr 19 2016 Milan Crha - 2.50.0-2 +- NTLM auth failure with latest samba (rh #1327072) + * Mon Mar 23 2015 Kalev Lember - 2.50.0-1 - Update to 2.50.0 diff --git a/rh1327072-ntlm-auth-failure.patch b/rh1327072-ntlm-auth-failure.patch new file mode 100644 index 0000000..d26f265 --- /dev/null +++ b/rh1327072-ntlm-auth-failure.patch @@ -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;