summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-10-25 10:21:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:04:41 -0500
commit17781196bf4f4ab8943bdc6c20225e1028aab1a6 (patch)
treea79031626300c2b21e8593a17e0b7f5c93d19da1 /source4/rpc_server
parentdd476f06acb038e0572d9b8c49e676b7b7834fcb (diff)
downloadsamba-17781196bf4f4ab8943bdc6c20225e1028aab1a6.tar.gz
samba-17781196bf4f4ab8943bdc6c20225e1028aab1a6.tar.bz2
samba-17781196bf4f4ab8943bdc6c20225e1028aab1a6.zip
r3209: - Create directory for ncalrpc with correct mode
- Support binding strings like : ncacn_np:[sign] ncacn_np:myhost[seal,sign,endpoint] again (This used to be commit b53f4cd1697345065c7d979ba63237bf828dc07f)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/dcerpc_sock.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/rpc_server/dcerpc_sock.c b/source4/rpc_server/dcerpc_sock.c
index 2d11431d0b..bffa5cffd8 100644
--- a/source4/rpc_server/dcerpc_sock.c
+++ b/source4/rpc_server/dcerpc_sock.c
@@ -90,8 +90,10 @@ static void add_socket_rpc_ncalrpc(struct server_service *service,
char *full_path;
if (!e->ep_description.endpoint) {
- /* No identifier specified: generate one */
- e->ep_description.endpoint = generate_random_str(dce_ctx, 10);
+ /* No identifier specified: use DEFAULT.
+ * DO NOT hardcode this value anywhere else. Rather, specify
+ * no endpoint and let the epmapper worry about it. */
+ e->ep_description.endpoint = talloc_strdup(dce_ctx, "DEFAULT");
}
full_path = talloc_asprintf(dce_ctx, "%s/%s", lp_ncalrpc_dir(), e->ep_description.endpoint);