summaryrefslogtreecommitdiff
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2012-04-17 04:23:36 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-04-18 10:23:56 -0400
commitad36434b454de092bcc383af248d794d1970a92f (patch)
tree41c6e8f20fc836a850f10385cd78aeec6131dbed /src/providers/ldap
parentda0b829a2002987339aadaa01b85adbb5ddba20d (diff)
downloadsssd-ad36434b454de092bcc383af248d794d1970a92f.tar.gz
sssd-ad36434b454de092bcc383af248d794d1970a92f.tar.bz2
sssd-ad36434b454de092bcc383af248d794d1970a92f.zip
Removed a block of dead code in sdap_async_groups.c
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/sdap_async_groups.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c
index aad2990c..e616c279 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -212,7 +212,6 @@ static int sdap_save_group(TALLOC_CTX *memctx,
struct sdap_options *opts,
struct sss_domain_info *dom,
struct sysdb_attrs *attrs,
- bool store_members,
bool populate_members,
char **_usn_value,
time_t now)
@@ -328,24 +327,6 @@ static int sdap_save_group(TALLOC_CTX *memctx,
}
el->values = el1->values;
el->num_values = el1->num_values;
- } else if (store_members) {
- ret = sysdb_attrs_get_el(attrs,
- opts->group_map[SDAP_AT_GROUP_MEMBER].sys_name, &el);
- if (ret != EOK) {
- goto fail;
- }
- if (el->num_values == 0) {
- DEBUG(7, ("No members for group [%s]\n", name));
-
- } else {
- DEBUG(7, ("Adding member users to group [%s]\n", name));
-
- ret = sdap_fill_memberships(group_attrs, ctx, opts, dom,
- el->values, el->num_values);
- if (ret) {
- goto fail;
- }
- }
}
ret = sdap_save_all_names(name, attrs, !dom->case_sensitive, group_attrs);
@@ -502,7 +483,7 @@ static int sdap_save_groups(TALLOC_CTX *memctx,
/* if 2 pass savemembers = false */
ret = sdap_save_group(tmpctx, sysdb,
opts, dom, groups[i],
- (!twopass), populate_members, &usn_value, now);
+ populate_members, &usn_value, now);
/* Do not fail completely on errors.
* Just report the failure to save and go on */