diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-03-17 17:54:06 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-03-23 04:58:50 -0400 |
commit | 24fca6a53f752ef77f46002fc5bbe7249a95af63 (patch) | |
tree | dd8f17d129426892ad710f6a6f8e057fe45d7c7e /src/db/sysdb_ops.c | |
parent | ed0f8138e7b7b129705dbce872056cbb77508fe8 (diff) | |
download | sssd-24fca6a53f752ef77f46002fc5bbe7249a95af63.tar.gz sssd-24fca6a53f752ef77f46002fc5bbe7249a95af63.tar.xz sssd-24fca6a53f752ef77f46002fc5bbe7249a95af63.zip |
Add originalDN to fake groups
Diffstat (limited to 'src/db/sysdb_ops.c')
-rw-r--r-- | src/db/sysdb_ops.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index e60af7175..ba1f6672c 100644 --- a/src/db/sysdb_ops.c +++ b/src/db/sysdb_ops.c @@ -1147,7 +1147,8 @@ done: int sysdb_add_incomplete_group(struct sysdb_ctx *ctx, struct sss_domain_info *domain, const char *name, - gid_t gid) + gid_t gid, + const char *original_dn) { TALLOC_CTX *tmpctx; time_t now; @@ -1178,6 +1179,11 @@ int sysdb_add_incomplete_group(struct sysdb_ctx *ctx, now-1); if (ret) goto done; + if (original_dn) { + ret = sysdb_attrs_add_string(attrs, SYSDB_ORIG_DN, original_dn); + if (ret) goto done; + } + ret = sysdb_set_group_attr(tmpctx, ctx, domain, name, attrs, SYSDB_MOD_REP); |