s3-epmapper: Setup epm in smbd to forward np requests.
authorAndreas Schneider <asn@samba.org>
Thu, 17 Mar 2011 16:56:37 +0000 (17:56 +0100)
committerAndreas Schneider <asn@samba.org>
Thu, 24 Mar 2011 08:25:51 +0000 (09:25 +0100)
(cherry picked from commit b38517bbdc746fe53e0bd804623b2ea7b0e98cbc)

source3/rpc_server/rpc_ep_setup.c

index fdf3fa888ea4c71699859d3c708af19c7c63378b..4680d6a41b7419e68764e65843500ddc72d10742 100644 (file)
@@ -1060,6 +1060,10 @@ bool dcesrv_ep_setup(struct tevent_context *ev_ctx,
                if (!NT_STATUS_IS_OK(rpc_epmapper_init(&epmapper_cb))) {
                        return false;
                }
+       } else if (StrCaseCmp(rpcsrv_type, "daemon") == 0) {
+               if (!NT_STATUS_IS_OK(rpc_epmapper_init(NULL))) {
+                       return false;
+               }
        }
 
        winreg_cb.init         = winreg_init_cb;