summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-03-17 17:54:06 +0100
committerStephen Gallagher <sgallagh@redhat.com>2011-03-23 04:58:50 -0400
commit24fca6a53f752ef77f46002fc5bbe7249a95af63 (patch)
treedd8f17d129426892ad710f6a6f8e057fe45d7c7e /src/providers
parented0f8138e7b7b129705dbce872056cbb77508fe8 (diff)
downloadsssd-24fca6a53f752ef77f46002fc5bbe7249a95af63.tar.gz
sssd-24fca6a53f752ef77f46002fc5bbe7249a95af63.tar.xz
sssd-24fca6a53f752ef77f46002fc5bbe7249a95af63.zip
Add originalDN to fake groups
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ldap/sdap_async_accounts.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_accounts.c b/src/providers/ldap/sdap_async_accounts.c
index 0784965ac..357e78736 100644
--- a/src/providers/ldap/sdap_async_accounts.c
+++ b/src/providers/ldap/sdap_async_accounts.c
@@ -1868,6 +1868,7 @@ static errno_t sdap_add_incomplete_groups(struct sysdb_ctx *sysdb,
struct ldb_message *msg;
int i, mi, ai;
const char *name;
+ const char *original_dn;
char **missing;
gid_t gid;
int ret;
@@ -1939,9 +1940,17 @@ static errno_t sdap_add_incomplete_groups(struct sysdb_ctx *sysdb,
goto fail;
}
+ ret = sysdb_attrs_get_string(ldap_groups[ai],
+ SYSDB_ORIG_DN,
+ &original_dn);
+ if (ret) {
+ DEBUG(5, ("The group has no name original DN\n"));
+ original_dn = NULL;
+ }
DEBUG(8, ("Adding fake group %s to sysdb\n", name));
- ret = sysdb_add_incomplete_group(sysdb, dom, name, gid);
+ ret = sysdb_add_incomplete_group(sysdb, dom, name,
+ gid, original_dn);
if (ret != EOK) {
goto fail;
}