1
0

240-remove_dfs_api.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --- a/source3/rpc_server/rpc_ep_setup.c
  2. +++ b/source3/rpc_server/rpc_ep_setup.c
  3. @@ -881,6 +881,7 @@ static bool rpcecho_init_cb(void *ptr) {
  4. #endif
  5. +#ifdef DFS_SUPPORT
  6. static bool netdfs_init_cb(void *ptr)
  7. {
  8. struct dcesrv_ep_context *ep_ctx =
  9. @@ -928,6 +929,7 @@ static bool netdfs_init_cb(void *ptr)
  10. return true;
  11. }
  12. +#endif
  13. #ifdef ACTIVE_DIRECTORY
  14. static bool dssetup_init_cb(void *ptr)
  15. @@ -1173,12 +1175,14 @@ bool dcesrv_ep_setup(struct tevent_conte
  16. return false;
  17. }
  18. +#ifdef DFS_SUPPORT
  19. netdfs_cb.init = netdfs_init_cb;
  20. netdfs_cb.shutdown = NULL;
  21. netdfs_cb.private_data = ep_ctx;
  22. if (!NT_STATUS_IS_OK(rpc_netdfs_init(&netdfs_cb))) {
  23. return false;
  24. }
  25. +#endif
  26. #ifdef DEVELOPER
  27. rpcecho_cb.init = rpcecho_init_cb;
  28. --- a/source3/librpc/rpc/rpc_common.c
  29. +++ b/source3/librpc/rpc/rpc_common.c
  30. @@ -122,9 +122,11 @@ static bool initialize_interfaces(void)
  31. return false;
  32. }
  33. #endif
  34. +#ifdef DFS_SUPPORT
  35. if (!smb_register_ndr_interface(&ndr_table_netdfs)) {
  36. return false;
  37. }
  38. +#endif
  39. #ifdef DEVELOPER
  40. if (!smb_register_ndr_interface(&ndr_table_rpcecho)) {
  41. return false;
  42. --- a/source3/smbd/server_exit.c
  43. +++ b/source3/smbd/server_exit.c
  44. @@ -138,7 +138,9 @@ static void exit_server_common(enum serv
  45. #ifdef DEVELOPER
  46. rpc_rpcecho_shutdown();
  47. #endif
  48. +#ifdef DFS_SUPPORT
  49. rpc_netdfs_shutdown();
  50. +#endif
  51. rpc_initshutdown_shutdown();
  52. #ifdef EXTRA_SERVICES
  53. rpc_eventlog_shutdown();
  54. --- a/source3/rpcclient/rpcclient.c
  55. +++ b/source3/rpcclient/rpcclient.c
  56. @@ -629,7 +629,9 @@ static struct cmd_set *rpcclient_command
  57. #endif
  58. netlogon_commands,
  59. srvsvc_commands,
  60. +#ifdef DFS_SUPPORT
  61. dfs_commands,
  62. +#endif
  63. #ifdef DEVELOPER
  64. echo_commands,
  65. #endif