diff options
author | Andreas Schneider <asn@samba.org> | 2011-08-21 11:58:36 +0200 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2011-08-21 09:08:24 -0400 |
commit | 0f4ee5d1b7bc1e8122982450dc0730ac1500a9c9 (patch) | |
tree | a224f4d16d048380d7f28eb2805128273ea47333 | |
parent | 8efdac83ff764de66f3fba63faf6c8fddc409c03 (diff) | |
download | samba-0f4ee5d1b7bc1e8122982450dc0730ac1500a9c9.tar.gz samba-0f4ee5d1b7bc1e8122982450dc0730ac1500a9c9.tar.bz2 samba-0f4ee5d1b7bc1e8122982450dc0730ac1500a9c9.zip |
s3-lsasd: Listen on \PIPE\lsass.
Signed-off-by: Simo Sorce <idra@samba.org>
-rwxr-xr-x | selftest/target/Samba3.pm | 1 | ||||
-rw-r--r-- | source3/rpc_server/lsasd.c | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index 69893acc5f..bc8105a62c 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -905,6 +905,7 @@ sub provision($$$$$$$) ncalrpc dir = $prefix_abs/ncalrpc rpc_server:epmapper = external rpc_server:spoolss = external + rpc_server:lsass = external rpc_server:lsarpc = external rpc_server:samr = external rpc_server:netlogon = external diff --git a/source3/rpc_server/lsasd.c b/source3/rpc_server/lsasd.c index 5eb0fe5617..1c6bde6082 100644 --- a/source3/rpc_server/lsasd.c +++ b/source3/rpc_server/lsasd.c @@ -644,6 +644,22 @@ static bool lsasd_create_sockets(struct tevent_context *ev_ctx, goto done; } + fd = create_named_pipe_socket("lsass"); + if (fd < 0) { + ok = false; + goto done; + } + listen_fd[*listen_fd_size] = fd; + (*listen_fd_size)++; + + rc = listen(fd, pf_lsasd_cfg.max_allowed_clients); + if (rc == -1) { + DEBUG(0, ("Failed to listen on lsass pipe - %s\n", + strerror(errno))); + ok = false; + goto done; + } + fd = create_dcerpc_ncalrpc_socket("lsarpc"); if (fd < 0) { ok = false; |