diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-09-04 17:46:13 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-09-08 15:10:50 -0400 |
commit | 889efbe608251def17c7ba6131fc9aa36c462dc2 (patch) | |
tree | 4fcd6274b37c45294a12b6cd9bc62a70bf878e7e /server/tools/sss_groupadd.c | |
parent | 28d9dcbeabdf919506fe59e9d1cbed84fbd6e649 (diff) | |
download | sssd-889efbe608251def17c7ba6131fc9aa36c462dc2.tar.gz sssd-889efbe608251def17c7ba6131fc9aa36c462dc2.tar.bz2 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.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/server/tools/sss_groupadd.c b/server/tools/sss_groupadd.c index 10bb9649..3d4d4c6d 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"); |