From 1961d7a4119200b8a4ad7b0207e0cdcf2e10d3f8 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 21 Dec 2010 10:19:53 +1100 Subject: s4-auth rework session_info handling not to require an auth context This reverts a previous move to have this based around the auth subsystem, which just spread auth deps all over unrelated code. Andrew Bartlett --- source4/samba_tool/gpo.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'source4/samba_tool') diff --git a/source4/samba_tool/gpo.c b/source4/samba_tool/gpo.c index 65838d0712..93aae60983 100644 --- a/source4/samba_tool/gpo.c +++ b/source4/samba_tool/gpo.c @@ -215,7 +215,6 @@ static int net_gpo_list(struct net_context *ctx, int argc, const char **argv) NTSTATUS status; int rv; unsigned int i; - struct auth_context *auth_context; if (argc != 1) { return net_gpo_list_usage(ctx, argc, argv); @@ -267,16 +266,8 @@ static int net_gpo_list(struct net_context *ctx, int argc, const char **argv) return 1; } - /* We do now need an auth context to create a session */ - status = auth_context_create_from_ldb(gp_ctx, gp_ctx->ldb_ctx, &auth_context); - if (!NT_STATUS_IS_OK(status)) { - DEBUG(0, ("Failed to get an auth context: %s\n", get_friendly_nt_error_msg(status))); - talloc_free(gp_ctx); - return 1; - } - /* The session info will contain the security token for this user */ - status = auth_generate_session_info(gp_ctx, auth_context, server_info, 0, &session_info); + status = auth_generate_session_info(gp_ctx, gp_ctx->lp_ctx, gp_ctx->ldb_ctx, server_info, 0, &session_info); if (!NT_STATUS_IS_OK(status)) { DEBUG(0, ("Failed to generate session information: %s\n", get_friendly_nt_error_msg(status))); talloc_free(gp_ctx); -- cgit