mirror of
https://github.com/samba-team/samba.git
synced 2025-10-24 15:33:20 +03:00
added a basic dcerpc endpoint mapper to Samba4. Currently only
implements the epm_Lookup() call, I'll add the other important calls
soon. I was rather pleased to find that epm_Lookup() worked first
time, which is particularly surprising given its complexity.
This required quite a bit of new infrastructure:
* a generic way of handling dcerpc policy handles in the rpc server
* added type checked varients of talloc. These are much less error
prone. I'd like to move to using these for nearly all uses of
talloc.
* added more dcerpc fault handling code, and translation from
NTSTATUS to a dcerpc fault code
* added data_blob_talloc_zero() for allocating an initially zero
blob
* added a endpoint enumeration hook in the dcerpc endpoint server
operations
This commit is contained in:
@@ -163,11 +163,17 @@ static void op_disconnect(struct dcesrv_state *dce)
|
||||
}
|
||||
|
||||
|
||||
static int op_lookup_endpoints(TALLOC_CTX *mem_ctx, struct dcesrv_ep_iface **e)
|
||||
{
|
||||
return dcesrv_lookup_endpoints(&dcerpc_table_rpcecho, mem_ctx, e);
|
||||
}
|
||||
|
||||
static const struct dcesrv_endpoint_ops rpc_echo_ops = {
|
||||
op_query_endpoint,
|
||||
op_set_interface,
|
||||
op_connect,
|
||||
op_disconnect
|
||||
op_disconnect,
|
||||
op_lookup_endpoints
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user