This need to create a temporary messaging context in order to do
the auth logging. This can only be done as root.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12850
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Autobuild-User(master): Garming Sam <garming@samba.org>
Autobuild-Date(master): Mon Jul 3 08:15:29 CEST 2017 on sn-devel-144
p->auth.auth_level = DCERPC_AUTH_LEVEL_NONE;
p->auth.auth_context_id = 0;
p->auth.auth_level = DCERPC_AUTH_LEVEL_NONE;
p->auth.auth_context_id = 0;
status = make_auth4_context(frame, &auth4_context);
status = make_auth4_context(frame, &auth4_context);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("Unable to make auth context for authz log.\n"));
TALLOC_FREE(frame);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("Unable to make auth context for authz log.\n"));
TALLOC_FREE(frame);