summaryrefslogtreecommitdiffstats
path: root/server/tools/sss_groupadd.c
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-09-04 17:46:13 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-09-08 15:10:50 -0400
commit889efbe608251def17c7ba6131fc9aa36c462dc2 (patch)
tree4fcd6274b37c45294a12b6cd9bc62a70bf878e7e /server/tools/sss_groupadd.c
parent28d9dcbeabdf919506fe59e9d1cbed84fbd6e649 (diff)
downloadsssd-889efbe608251def17c7ba6131fc9aa36c462dc2.tar.gz
sssd-889efbe608251def17c7ba6131fc9aa36c462dc2.tar.xz
sssd-889efbe608251def17c7ba6131fc9aa36c462dc2.zip
Tools are allowed to touch only the 'local' domain
Diffstat (limited to 'server/tools/sss_groupadd.c')
-rw-r--r--server/tools/sss_groupadd.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/server/tools/sss_groupadd.c b/server/tools/sss_groupadd.c
index 10bb96494..3d4d4c6da 100644
--- a/server/tools/sss_groupadd.c
+++ b/server/tools/sss_groupadd.c
@@ -261,16 +261,8 @@ int main(int argc, const char **argv)
goto fini;
}
- ret = sysdb_get_ctx_from_list(ctx->db_list, data->domain, &data->sysdb);
- if (ret != EOK) {
- DEBUG(0, ("Cannot get domain database!\n"));
- ERROR("Internal error accesing database\n");
- ret = EXIT_FAILURE;
- goto fini;
- }
-
/* add_group */
- req = sysdb_transaction_send(ctx, ctx->ev, data->sysdb);
+ req = sysdb_transaction_send(ctx, ctx->ev, data->ctx->sysdb);
if (!req) {
DEBUG(1, ("Could not start transaction (%d)[%s]\n", ret, strerror(ret)));
ERROR("Transaction error. Could not add group.\n");