s4:rpc_server/lsa: specify \\pipe\lsass as ncacn_np_secondary_endpoint
authorStefan Metzmacher <metze@samba.org>
Wed, 12 Dec 2018 21:41:56 +0000 (22:41 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 12 Jan 2019 02:13:41 +0000 (03:13 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/knownfail.d/test_assoc_group_ok2 [deleted file]
source4/rpc_server/lsa/dcesrv_lsa.c

diff --git a/selftest/knownfail.d/test_assoc_group_ok2 b/selftest/knownfail.d/test_assoc_group_ok2
deleted file mode 100644 (file)
index 7d46cce..0000000
+++ /dev/null
@@ -1 +0,0 @@
-^samba.tests.dcerpc.raw_protocol.*.TestDCERPC_BIND.test_assoc_group_ok2
index c1bc78aa9d057e717534bcdd0c58e6d0f75c5af3..cbbd9f482f2c28c76472e579332cddfab47cf50f 100644 (file)
@@ -47,6 +47,10 @@ static NTSTATUS lsarpc__op_init_server(struct dcesrv_context *dce_ctx,
                                       const struct dcesrv_endpoint_server *ep_server);
 static const struct dcesrv_interface dcesrv_lsarpc_interface;
 
+#define NCACN_NP_PIPE_NETLOGON "ncacn_np:[\\pipe\\netlogon]"
+#define NCACN_NP_PIPE_LSASS "ncacn_np:[\\pipe\\lsass]"
+#define DCESRV_INTERFACE_LSARPC_NCACN_NP_SECONDARY_ENDPOINT NCACN_NP_PIPE_LSASS
+
 #define DCESRV_INTERFACE_LSARPC_INIT_SERVER    \
        dcesrv_interface_lsarpc_init_server
 static NTSTATUS dcesrv_interface_lsarpc_init_server(struct dcesrv_context *dce_ctx,
@@ -54,8 +58,8 @@ static NTSTATUS dcesrv_interface_lsarpc_init_server(struct dcesrv_context *dce_c
 {
        if (lpcfg_lsa_over_netlogon(dce_ctx->lp_ctx)) {
                NTSTATUS ret = dcesrv_interface_register(dce_ctx,
-                                               "ncacn_np:[\\pipe\\netlogon]",
-                                               NULL,
+                                               NCACN_NP_PIPE_NETLOGON,
+                                               NCACN_NP_PIPE_LSASS,
                                                &dcesrv_lsarpc_interface, NULL);
                if (!NT_STATUS_IS_OK(ret)) {
                        DEBUG(1,("lsarpc_op_init_server: failed to register endpoint '\\pipe\\netlogon'\n"));