diff --git a/libsoup.spec b/libsoup.spec index 5c7c056..3208465 100644 --- a/libsoup.spec +++ b/libsoup.spec @@ -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 - 2.54.0.1-2 +- NTLM auth failure with latest samba (rh #1327072) + * Wed Mar 23 2016 Kalev Lember - 2.54.0.1-1 - Update to 2.54.0.1 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;