From 0fd198bccecf1b1d7fb5d3a420e68a8456759375 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 8 Oct 2013 15:16:48 +0200 Subject: [PATCH] Fix failover from Global Catalog to LDAP in case GC is not available --- ...intitialize-GC-from-ad_server-option.patch | 25 +++++++++++++++++++ sssd.spec | 8 ++++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 0003-AD-properly-intitialize-GC-from-ad_server-option.patch diff --git a/0003-AD-properly-intitialize-GC-from-ad_server-option.patch b/0003-AD-properly-intitialize-GC-from-ad_server-option.patch new file mode 100644 index 0000000..cd39fdd --- /dev/null +++ b/0003-AD-properly-intitialize-GC-from-ad_server-option.patch @@ -0,0 +1,25 @@ +From 9a9a813906472ffff3911b6006d023e1c6cbff8a Mon Sep 17 00:00:00 2001 +From: Sumit Bose +Date: Wed, 2 Oct 2013 18:21:42 +0200 +Subject: [PATCH] AD: properly intitialize GC from ad_server option + +--- + src/providers/ad/ad_common.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/providers/ad/ad_common.c b/src/providers/ad/ad_common.c +index 700ac033f42ac700b4e255a74350d774a3340358..ab62d64a943a726724698d1b7eb9f15bc40b389e 100644 +--- a/src/providers/ad/ad_common.c ++++ b/src/providers/ad/ad_common.c +@@ -441,7 +441,7 @@ _ad_servers_init(TALLOC_CTX *mem_ctx, + } + sdata->gc = true; + +- ret = be_fo_add_server(bectx, fo_service, list[i], 0, sdata, primary); ++ ret = be_fo_add_server(bectx, fo_gc_service, list[i], 0, sdata, primary); + if (ret && ret != EEXIST) { + DEBUG(SSSDBG_FATAL_FAILURE, ("Failed to add server\n")); + goto done; +-- +1.8.3.1 + diff --git a/sssd.spec b/sssd.spec index 4b8c365..a5ce760 100644 --- a/sssd.spec +++ b/sssd.spec @@ -8,7 +8,7 @@ Name: sssd Version: 1.11.1 -Release: 2%{?dist} +Release: 3%{?dist} Group: Applications/System Summary: System Security Services Daemon License: GPLv3+ @@ -19,6 +19,7 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) ### Patches ### Patch0001: 0001-krb5-Remove-ability-to-create-public-directories.patch Patch0002: 0002-krb5-Fix-unit-tests.patch +Patch0003: 0003-AD-properly-intitialize-GC-from-ad_server-option.patch ### Dependencies ### Requires: sssd-common = %{version}-%{release} @@ -706,7 +707,10 @@ fi %postun -n libsss_idmap -p /sbin/ldconfig %changelog -* Fri Oct 04 2013 Jakub Hrozek - 1.11.1-1 +* Tue Oct 08 2013 Jakub Hrozek - 1.11.1-3 +- Fix failover from Global Catalog to LDAP in case GC is not available + +* Fri Oct 04 2013 Jakub Hrozek - 1.11.1-2 - Remove the ability to create public ccachedir (#1015089) * Fri Sep 27 2013 Jakub Hrozek - 1.11.1-1