diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2015-01-27 16:02:33 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-01-30 13:29:30 +0100 |
commit | d18bd28fb09f104e2b13382c430247cad731f867 (patch) | |
tree | 9af34e684134060fb90602d5271bcb1708d98ea5 /src/db | |
parent | 8e0766215aef902eec24d880fbf2b30686c452e6 (diff) | |
download | sssd-d18bd28fb09f104e2b13382c430247cad731f867.tar.gz sssd-d18bd28fb09f104e2b13382c430247cad731f867.tar.xz sssd-d18bd28fb09f104e2b13382c430247cad731f867.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')
-rw-r--r-- | src/db/sysdb.h | 1 | ||||
-rw-r--r-- | src/db/sysdb_ops.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h index 9e33fee37..cf6028acb 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -797,6 +797,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); 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: |