diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-07 23:39:50 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 10:53:02 +0100 |
commit | a58ccee5afc802c7560624929614616aeefa9bd0 (patch) | |
tree | c007a5d2faaa1978740419e5978ce227b7b81640 /src/providers/ldap | |
parent | 2b7ee2a760e7fcc70f4970a3bbee6fbf8f2ccb9d (diff) | |
download | sssd-a58ccee5afc802c7560624929614616aeefa9bd0.tar.gz sssd-a58ccee5afc802c7560624929614616aeefa9bd0.tar.bz2 sssd-a58ccee5afc802c7560624929614616aeefa9bd0.zip |
Add domain argument to sysdb_delete_group()
Also remove sysdb_delete_domgroup()
Diffstat (limited to 'src/providers/ldap')
-rw-r--r-- | src/providers/ldap/ldap_id.c | 6 | ||||
-rw-r--r-- | src/providers/ldap/ldap_id_cleanup.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/providers/ldap/ldap_id.c b/src/providers/ldap/ldap_id.c index 95455d01..e66114b3 100644 --- a/src/providers/ldap/ldap_id.c +++ b/src/providers/ldap/ldap_id.c @@ -551,7 +551,8 @@ static void groups_get_done(struct tevent_req *subreq) tevent_req_error(req, ret); return; case BE_FILTER_NAME: - ret = sysdb_delete_group(state->sysdb, state->name, 0); + ret = sysdb_delete_group(state->sysdb, + state->domain, state->name, 0); if (ret != EOK && ret != ENOENT) { tevent_req_error(req, ret); return; @@ -565,7 +566,8 @@ static void groups_get_done(struct tevent_req *subreq) return; } - ret = sysdb_delete_group(state->sysdb, NULL, gid); + ret = sysdb_delete_group(state->sysdb, + state->domain, NULL, gid); if (ret != EOK && ret != ENOENT) { tevent_req_error(req, ret); return; diff --git a/src/providers/ldap/ldap_id_cleanup.c b/src/providers/ldap/ldap_id_cleanup.c index 103cca97..b220069a 100644 --- a/src/providers/ldap/ldap_id_cleanup.c +++ b/src/providers/ldap/ldap_id_cleanup.c @@ -479,7 +479,7 @@ static int cleanup_groups(TALLOC_CTX *memctx, } DEBUG(8, ("About to delete group %s\n", name)); - ret = sysdb_delete_group(sysdb, name, 0); + ret = sysdb_delete_group(sysdb, domain, name, 0); if (ret) { DEBUG(2, ("Group delete returned %d (%s)\n", ret, strerror(ret))); |