diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/rpc_ep_setup.c | 57 |
1 files changed, 42 insertions, 15 deletions
diff --git a/source3/rpc_server/rpc_ep_setup.c b/source3/rpc_server/rpc_ep_setup.c index a5eb457a2d..73d2cb5297 100644 --- a/source3/rpc_server/rpc_ep_setup.c +++ b/source3/rpc_server/rpc_ep_setup.c @@ -51,7 +51,8 @@ struct dcesrv_ep_context { }; static NTSTATUS _rpc_ep_register(const struct ndr_interface_table *iface, - const char *name) + const char *name, + uint16_t port) { struct dcerpc_binding_vector *v = NULL; NTSTATUS status; @@ -116,7 +117,9 @@ static NTSTATUS _rpc_ep_unregister(const struct ndr_interface_table *iface) static bool winreg_init_cb(void *ptr) { - return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_winreg, "winreg")); + return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_winreg, + "winreg", + 0)); } static bool winreg_shutdown_cb(void *ptr) @@ -126,7 +129,9 @@ static bool winreg_shutdown_cb(void *ptr) static bool srvsvc_init_cb(void *ptr) { - return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_srvsvc, "srvsvc")); + return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_srvsvc, + "srvsvc", + 0)); } static bool srvsvc_shutdown_cb(void *ptr) @@ -136,7 +141,9 @@ static bool srvsvc_shutdown_cb(void *ptr) static bool lsarpc_init_cb(void *ptr) { - return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_lsarpc, "lsarpc")); + return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_lsarpc, + "lsarpc", + 0)); } static bool lsarpc_shutdown_cb(void *ptr) @@ -146,7 +153,9 @@ static bool lsarpc_shutdown_cb(void *ptr) static bool samr_init_cb(void *ptr) { - return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_samr, "samr")); + return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_samr, + "samr", + 0)); } static bool samr_shutdown_cb(void *ptr) @@ -156,7 +165,9 @@ static bool samr_shutdown_cb(void *ptr) static bool netlogon_init_cb(void *ptr) { - return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_netlogon, "netlogon")); + return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_netlogon, + "netlogon", + 0)); } static bool netlogon_shutdown_cb(void *ptr) @@ -179,7 +190,9 @@ static bool spoolss_init_cb(void *ptr) return false; } - status =_rpc_ep_register(&ndr_table_spoolss, "spoolss"); + status =_rpc_ep_register(&ndr_table_spoolss, + "spoolss", + 0); if (!NT_STATUS_IS_OK(status)) { return false; } @@ -210,7 +223,9 @@ static bool svcctl_init_cb(void *ptr) /* initialize the control hooks */ init_service_op_table(); - return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_svcctl, "svcctl")); + return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_svcctl, + "svcctl", + 0)); } static bool svcctl_shutdown_cb(void *ptr) @@ -222,7 +237,9 @@ static bool svcctl_shutdown_cb(void *ptr) static bool ntsvcs_init_cb(void *ptr) { - return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_ntsvcs, "ntsvcs")); + return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_ntsvcs, + "ntsvcs", + 0)); } static bool ntsvcs_shutdown_cb(void *ptr) @@ -237,7 +254,8 @@ static bool eventlog_init_cb(void *ptr) NTSTATUS status; status =_rpc_ep_register(&ndr_table_eventlog, - "eventlog"); + "eventlog", + 0); if (!NT_STATUS_IS_OK(status)) { return false; } @@ -253,7 +271,8 @@ static bool eventlog_shutdown_cb(void *ptr) static bool initshutdown_init_cb(void *ptr) { return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_initshutdown, - "initshutdown")); + "initshutdown", + 0)); } static bool initshutdown_shutdown_cb(void *ptr) @@ -262,7 +281,9 @@ static bool initshutdown_shutdown_cb(void *ptr) } #ifdef DEVELOPER static bool rpcecho_init_cb(void *ptr) { - return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_rpcecho, "rpcecho")); + return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_rpcecho, + "rpcecho", + 0)); } static bool rpcecho_shutdown_cb(void *ptr) @@ -272,7 +293,9 @@ static bool rpcecho_shutdown_cb(void *ptr) #endif static bool netdfs_init_cb(void *ptr) { - return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_netdfs, "netdfs")); + return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_netdfs, + "netdfs", + 0)); } static bool netdfs_shutdown_cb(void *ptr) { @@ -280,7 +303,9 @@ static bool netdfs_shutdown_cb(void *ptr) { } static bool dssetup_init_cb(void *ptr) { - return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_dssetup, "dssetup")); + return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_dssetup, + "dssetup", + 0)); } static bool dssetup_shutdown_cb(void *ptr) { @@ -288,7 +313,9 @@ static bool dssetup_shutdown_cb(void *ptr) { } static bool wkssvc_init_cb(void *ptr) { - return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_wkssvc, "wkssvc")); + return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_wkssvc, + "wkssvc", + 0)); } static bool wkssvc_shutdown_cb(void *ptr) { |