diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2015-01-27 16:02:33 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-01-30 15:58:38 +0100 |
commit | 1c1551628ca2d1f7a6cc0938f0cf79c2b2ce6e8b (patch) | |
tree | b1d4473f759efa7883961ef248e235d9a7173b6f /src/db/sysdb_ops.c | |
parent | 20dd4c33d226862d124b2f010181550e820df5f8 (diff) | |
download | sssd-1c1551628ca2d1f7a6cc0938f0cf79c2b2ce6e8b.tar.gz sssd-1c1551628ca2d1f7a6cc0938f0cf79c2b2ce6e8b.tar.xz sssd-1c1551628ca2d1f7a6cc0938f0cf79c2b2ce6e8b.zip |
LDAP: Add UUID when saving incomplete groups
Related to:
https://fedorahosted.org/sssd/ticket/2571
Reviewed-by: Sumit Bose <sbose@redhat.com>
(cherry picked from commit 108db0e3b9e06e530364ef8228634f5e3f6bd3b5)
Diffstat (limited to 'src/db/sysdb_ops.c')
-rw-r--r-- | src/db/sysdb_ops.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index 0c254d8cd..6085762dc 100644 --- a/src/db/sysdb_ops.c +++ b/src/db/sysdb_ops.c @@ -1610,6 +1610,7 @@ int sysdb_add_incomplete_group(struct sss_domain_info *domain, gid_t gid, const char *original_dn, const char *sid_str, + const char *uuid, bool posix, time_t now) { @@ -1656,6 +1657,11 @@ int sysdb_add_incomplete_group(struct sss_domain_info *domain, if (ret) goto done; } + if (uuid) { + ret = sysdb_attrs_add_string(attrs, SYSDB_UUID, uuid); + if (ret) goto done; + } + ret = sysdb_set_group_attr(domain, name, attrs, SYSDB_MOD_REP); done: |