From cc1ba0d6745d28da034769ea8ff150a3134a4b86 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Tue, 21 Jul 2015 09:05:49 +0200 Subject: [PATCH] Fix ipa-migration bug - Resolves: upstream #2719 - IPA: returned unknown dp error code with disabled migration mode --- ...eturn-right-data-provider-error-code.patch | 32 +++++++++++++++++++ sssd.spec | 7 +++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 0002-KRB5-Return-right-data-provider-error-code.patch diff --git a/0002-KRB5-Return-right-data-provider-error-code.patch b/0002-KRB5-Return-right-data-provider-error-code.patch new file mode 100644 index 0000000..eed59d9 --- /dev/null +++ b/0002-KRB5-Return-right-data-provider-error-code.patch @@ -0,0 +1,32 @@ +From 3c0ed7ebf698f69ce1643d0f41d758fc730e06a7 Mon Sep 17 00:00:00 2001 +From: Lukas Slebodnik +Date: Tue, 14 Jul 2015 12:48:47 +0200 +Subject: [PATCH] KRB5: Return right data provider error code +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Resolves: +https://fedorahosted.org/sssd/ticket/2719 + +Reviewed-by: Michal Židek +--- + src/providers/krb5/krb5_wait_queue.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/providers/krb5/krb5_wait_queue.c b/src/providers/krb5/krb5_wait_queue.c +index 126209620dcd22889cf7bcb1cbec1890b8891b41..b4d3f903a94c9fdfffc975f1dfd10a27ab653a8d 100644 +--- a/src/providers/krb5/krb5_wait_queue.c ++++ b/src/providers/krb5/krb5_wait_queue.c +@@ -366,7 +366,7 @@ int krb5_auth_queue_recv(struct tevent_req *req, + } + + if (_dp_err) { +- *_dp_err = state->pam_status; ++ *_dp_err = state->dp_err; + } + + TEVENT_REQ_RETURN_ON_ERROR(req); +-- +2.4.3 + diff --git a/sssd.spec b/sssd.spec index b222e6e..fab2936 100644 --- a/sssd.spec +++ b/sssd.spec @@ -29,7 +29,7 @@ Name: sssd Version: 1.13.0 -Release: 3%{?dist} +Release: 4%{?dist} Group: Applications/System Summary: System Security Services Daemon License: GPLv3+ @@ -39,6 +39,7 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) ### Patches ### Patch0001: 0001-SSSDConfig-return-list-for-list_active_domains.patch +Patch0002: 0002-KRB5-Return-right-data-provider-error-code.patch ### Dependencies ### Requires: sssd-common = %{version}-%{release} @@ -1011,6 +1012,10 @@ fi %{_libdir}/%{name}/modules/libwbclient.so %changelog +* Tue Jul 21 2015 Lukas Slebodnik - 1.13.0-4 +- Fix ipa-migration bug +- Resolves: upstream #2719 - IPA: returned unknown dp error code with disabled + migration mode * Wed Jul 08 2015 Lukas Slebodnik - 1.13.0-3 - New upstream release 1.13.0 - https://fedorahosted.org/sssd/wiki/Releases/Notes-1.13.0