1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-22 05:57:43 +03:00

s4:libnet: keep a dcerpc_binding_handle for samr and lsa

metze
This commit is contained in:
Stefan Metzmacher 2010-03-08 16:27:14 +01:00
parent 77fb700e20
commit a3ae9802d4
2 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,7 @@ struct libnet_context {
/* samr connection parameters - opened handles and related properties */
struct {
struct dcerpc_pipe *pipe;
struct dcerpc_binding_handle *samr_handle;
const char *name;
struct dom_sid *sid;
uint32_t access_mask;
@ -41,6 +42,7 @@ struct libnet_context {
/* lsa connection parameters - opened handles and related properties */
struct {
struct dcerpc_pipe *pipe;
struct dcerpc_binding_handle *lsa_handle;
const char *name;
uint32_t access_mask;
struct policy_handle handle;

View File

@ -884,9 +884,11 @@ static NTSTATUS libnet_RpcConnectDCInfo_recv(struct composite_context *c, struct
mem_ctx is freed */
if (r->in.dcerpc_iface == &ndr_table_samr) {
ctx->samr.pipe = talloc_reference(ctx, r->out.dcerpc_pipe);
ctx->samr.samr_handle = ctx->samr.pipe->binding_handle;
} else if (r->in.dcerpc_iface == &ndr_table_lsarpc) {
ctx->lsa.pipe = talloc_reference(ctx, r->out.dcerpc_pipe);
ctx->lsa.lsa_handle = ctx->lsa.pipe->binding_handle;
}
} else {