1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-31 12:23:52 +03:00

r3209: - Create directory for ncalrpc with correct mode

- Support binding strings like :

ncacn_np:[sign]
ncacn_np:myhost[seal,sign,endpoint]

again
This commit is contained in:
Jelmer Vernooij
2004-10-25 10:21:41 +00:00
committed by Gerald (Jerry) Carter
parent adbfd206f4
commit b53f4cd169
3 changed files with 17 additions and 10 deletions

View File

@@ -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);