Blame SOURCES/0186-ipa_s2n_save_objects-properly-handle-fully-qualified.patch

905b4d
From a79ca19a29c08de2ba42b8ce7b48244730896cfc Mon Sep 17 00:00:00 2001
905b4d
From: Sumit Bose <sbose@redhat.com>
905b4d
Date: Wed, 28 Jan 2015 11:44:37 +0100
905b4d
Subject: [PATCH 186/188] ipa_s2n_save_objects: properly handle fully-qualified
905b4d
 group names
905b4d
905b4d
Check if the given name is already fully-qualified instead of adding a
905b4d
domain name unconditionally.
905b4d
905b4d
Related to https://fedorahosted.org/sssd/ticket/2529
905b4d
       and https://fedorahosted.org/sssd/ticket/2524
905b4d
905b4d
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
905b4d
(cherry picked from commit 9ad346318dc2cc5d5a340d8d981ddfdcc6f632da)
905b4d
---
905b4d
 src/providers/ipa/ipa_s2n_exop.c | 2 +-
905b4d
 1 file changed, 1 insertion(+), 1 deletion(-)
905b4d
905b4d
diff --git a/src/providers/ipa/ipa_s2n_exop.c b/src/providers/ipa/ipa_s2n_exop.c
905b4d
index 35bd303d4aa3651e80c70297507bdc85d05bfbde..18f2a867df3ad705008537843ea94e38dab0006e 100644
905b4d
--- a/src/providers/ipa/ipa_s2n_exop.c
905b4d
+++ b/src/providers/ipa/ipa_s2n_exop.c
905b4d
@@ -2074,7 +2074,7 @@ static errno_t ipa_s2n_save_objects(struct sss_domain_info *dom,
905b4d
 
905b4d
             if (IS_SUBDOMAIN(dom)) {
905b4d
                 /* we always use the fully qualified name for subdomain users */
905b4d
-                name = sss_tc_fqname(tmp_ctx, dom->names, dom, name);
905b4d
+                name = sss_get_domain_name(tmp_ctx, name, dom);
905b4d
                 if (!name) {
905b4d
                     DEBUG(SSSDBG_OP_FAILURE, "failed to format user name,\n");
905b4d
                     ret = ENOMEM;
905b4d
-- 
905b4d
2.1.0
905b4d