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 | |
parent | 2b7ee2a760e7fcc70f4970a3bbee6fbf8f2ccb9d (diff) | |
download | sssd-a58ccee5afc802c7560624929614616aeefa9bd0.tar.gz sssd-a58ccee5afc802c7560624929614616aeefa9bd0.tar.xz sssd-a58ccee5afc802c7560624929614616aeefa9bd0.zip |
Add domain argument to sysdb_delete_group()
Also remove sysdb_delete_domgroup()
Diffstat (limited to 'src/providers')
-rw-r--r-- | src/providers/ldap/ldap_id.c | 6 | ||||
-rw-r--r-- | src/providers/ldap/ldap_id_cleanup.c | 2 | ||||
-rw-r--r-- | src/providers/proxy/proxy_id.c | 4 |
3 files changed, 7 insertions, 5 deletions
diff --git a/src/providers/ldap/ldap_id.c b/src/providers/ldap/ldap_id.c index 95455d01b..e66114b35 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 103cca973..b220069aa 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))); diff --git a/src/providers/proxy/proxy_id.c b/src/providers/proxy/proxy_id.c index 4ce00b4f4..a97dd63ef 100644 --- a/src/providers/proxy/proxy_id.c +++ b/src/providers/proxy/proxy_id.c @@ -872,7 +872,7 @@ static int get_gr_name(TALLOC_CTX *mem_ctx, ("Group %s does not exist (or is invalid) on remote server," " deleting!\n", name)); - ret = sysdb_delete_group(sysdb, NULL, gid); + ret = sysdb_delete_group(sysdb, dom, NULL, gid); if (ret == ENOENT) { ret = EOK; } @@ -944,7 +944,7 @@ static int get_gr_gid(TALLOC_CTX *mem_ctx, ("Group %d does not exist (or is invalid) on remote server," " deleting!\n", gid)); - ret = sysdb_delete_group(sysdb, NULL, gid); + ret = sysdb_delete_group(sysdb, dom, NULL, gid); if (ret == ENOENT) { ret = EOK; } |