From 889efbe608251def17c7ba6131fc9aa36c462dc2 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 4 Sep 2009 17:46:13 -0400 Subject: Tools are allowed to touch only the 'local' domain --- server/tools/sss_groupadd.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'server/tools/sss_groupadd.c') 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"); -- cgit