diff options
author | Andreas Schneider <asn@samba.org> | 2011-03-02 15:28:25 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-03-08 11:41:30 +0100 |
commit | ce491edcad120c5c9de4260ac60a2ec3b319161a (patch) | |
tree | 58b00e58196f732800d89624e0c4efe01221ae7b /source3/librpc | |
parent | 50de20979b35727cdfba9c7d711b7c0a438ddd98 (diff) | |
download | samba-ce491edcad120c5c9de4260ac60a2ec3b319161a.tar.gz samba-ce491edcad120c5c9de4260ac60a2ec3b319161a.tar.bz2 samba-ce491edcad120c5c9de4260ac60a2ec3b319161a.zip |
s3-librpc: Register NCALRPC pipes.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/librpc')
-rw-r--r-- | source3/librpc/rpc/dcerpc_ep.c | 16 | ||||
-rw-r--r-- | source3/librpc/rpc/dcerpc_ep.h | 1 |
2 files changed, 16 insertions, 1 deletions
diff --git a/source3/librpc/rpc/dcerpc_ep.c b/source3/librpc/rpc/dcerpc_ep.c index f183efeb80..e207b62b54 100644 --- a/source3/librpc/rpc/dcerpc_ep.c +++ b/source3/librpc/rpc/dcerpc_ep.c @@ -28,6 +28,7 @@ NTSTATUS dcerpc_binding_vector_create(TALLOC_CTX *mem_ctx, const struct ndr_interface_table *iface, uint16_t port, + const char *ncalrpc, struct dcerpc_binding_vector **pbvec) { struct dcerpc_binding_vector *bvec; @@ -95,7 +96,20 @@ NTSTATUS dcerpc_binding_vector_create(TALLOC_CTX *mem_ctx, break; case NCALRPC: - /* TODO */ + if (ncalrpc == NULL) { + talloc_free(b); + continue; + } + + b->endpoint = talloc_asprintf(b, + "%s/%s", + lp_ncalrpc_dir(), + ncalrpc); + if (b->endpoint == NULL) { + status = NT_STATUS_NO_MEMORY; + goto done; + } + break; default: talloc_free(b); continue; diff --git a/source3/librpc/rpc/dcerpc_ep.h b/source3/librpc/rpc/dcerpc_ep.h index f88f468611..99682beb9a 100644 --- a/source3/librpc/rpc/dcerpc_ep.h +++ b/source3/librpc/rpc/dcerpc_ep.h @@ -28,6 +28,7 @@ struct dcerpc_binding_vector { NTSTATUS dcerpc_binding_vector_create(TALLOC_CTX *mem_ctx, const struct ndr_interface_table *iface, uint16_t port, + const char *ncalrpc, struct dcerpc_binding_vector **pbvec); /** |