summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/rpc/dcerpc.c2
-rw-r--r--source4/librpc/rpc/dcerpc_util.c2
-rw-r--r--source4/rpc_server/dcerpc_sock.c5
3 files changed, 7 insertions, 2 deletions
diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c
index e522f91423..0375382ea6 100644
--- a/source4/librpc/rpc/dcerpc.c
+++ b/source4/librpc/rpc/dcerpc.c
@@ -739,7 +739,7 @@ static void dcerpc_request_recv_data(struct dcerpc_pipe *p,
}
if (req == NULL) {
- DEBUG(2,("dcerpc_request: unmatched call_id in response packet\n"));
+ DEBUG(2,("dcerpc_request: unmatched call_id %u in response packet\n", pkt.call_id));
return;
}
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c
index 3c786e8b3a..9ec1af77ad 100644
--- a/source4/librpc/rpc/dcerpc_util.c
+++ b/source4/librpc/rpc/dcerpc_util.c
@@ -664,7 +664,7 @@ NTSTATUS dcerpc_epm_map_binding(TALLOC_CTX *mem_ctx, struct dcerpc_binding *bind
if (!strcmp(uuid, DCERPC_EPMAPPER_UUID)) {
switch(binding->transport) {
- case NCACN_IP_TCP: binding->endpoint = "135"/*FIXME*/; return NT_STATUS_OK;
+ case NCACN_IP_TCP: binding->endpoint = talloc_asprintf(mem_ctx, "%d", EPMAPPER_PORT); return NT_STATUS_OK;
case NCALRPC: binding->endpoint = EPMAPPER_IDENTIFIER; return NT_STATUS_OK;
default: return NT_STATUS_NOT_SUPPORTED;
}
diff --git a/source4/rpc_server/dcerpc_sock.c b/source4/rpc_server/dcerpc_sock.c
index 8ba7464a79..4b892aed64 100644
--- a/source4/rpc_server/dcerpc_sock.c
+++ b/source4/rpc_server/dcerpc_sock.c
@@ -196,6 +196,11 @@ void dcesrv_sock_init(struct server_service *service, const struct model_ops *mo
DEBUG(1,("dcesrv_sock_init\n"));
+ /* Make sure the directory for NCALRPC exists */
+ if (!directory_exist(lp_ncalrpc_dir(), NULL)) {
+ mkdir(lp_ncalrpc_dir(), 700);
+ }
+
for (e=dce_ctx->endpoint_list;e;e=e->next) {
switch (e->ep_description.transport) {
case NCACN_UNIX_STREAM: