diff options
author | Sumit Bose <sbose@redhat.com> | 2015-01-28 11:44:37 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-01-30 15:55:04 +0100 |
commit | cc33fd2251f6c3f5cceb15f50f31539ee98c2ea0 (patch) | |
tree | 0bfda21731fa90f49163273fb3594ad0ff42e367 /src | |
parent | 21266b63b7a1d28b0bda39916e85d21c1e953a8b (diff) | |
download | sssd-cc33fd2251f6c3f5cceb15f50f31539ee98c2ea0.tar.gz sssd-cc33fd2251f6c3f5cceb15f50f31539ee98c2ea0.tar.xz sssd-cc33fd2251f6c3f5cceb15f50f31539ee98c2ea0.zip |
ipa_s2n_save_objects: properly handle fully-qualified group names
Check if the given name is already fully-qualified instead of adding a
domain name unconditionally.
Related to https://fedorahosted.org/sssd/ticket/2529
and https://fedorahosted.org/sssd/ticket/2524
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
(cherry picked from commit 9ad346318dc2cc5d5a340d8d981ddfdcc6f632da)
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ipa/ipa_s2n_exop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_s2n_exop.c b/src/providers/ipa/ipa_s2n_exop.c index 35bd303d4..18f2a867d 100644 --- a/src/providers/ipa/ipa_s2n_exop.c +++ b/src/providers/ipa/ipa_s2n_exop.c @@ -2074,7 +2074,7 @@ static errno_t ipa_s2n_save_objects(struct sss_domain_info *dom, if (IS_SUBDOMAIN(dom)) { /* we always use the fully qualified name for subdomain users */ - name = sss_tc_fqname(tmp_ctx, dom->names, dom, name); + name = sss_get_domain_name(tmp_ctx, name, dom); if (!name) { DEBUG(SSSDBG_OP_FAILURE, "failed to format user name,\n"); ret = ENOMEM; |