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:37 -0400 |
commit | 278e1768a158a73b7769bcfe17035a17e2b81f70 (patch) | |
tree | 4c69ae6c8f330fc1e71e777afd429b8aa979421a /src/providers/ldap | |
parent | 7196eba0014cfd954ab86bf86ae5e151ed9d7600 (diff) | |
download | sssd-278e1768a158a73b7769bcfe17035a17e2b81f70.tar.gz sssd-278e1768a158a73b7769bcfe17035a17e2b81f70.tar.xz sssd-278e1768a158a73b7769bcfe17035a17e2b81f70.zip |
Add originalDN to fake groups
Diffstat (limited to 'src/providers/ldap')
-rw-r--r-- | src/providers/ldap/sdap_async_accounts.c | 11 |
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; } |