#ifdef PRINTER_SUPPORT
rpc_spoolss_shutdown();
#endif
+--- a/source3/rpcclient/rpcclient.c
++++ b/source3/rpcclient/rpcclient.c
+@@ -635,9 +635,11 @@ static struct cmd_set *rpcclient_command
+ shutdown_commands,
+ test_commands,
+ wkssvc_commands,
++#ifdef EXTRA_SERVICES
+ ntsvcs_commands,
+ drsuapi_commands,
+ eventlog_commands,
++#endif
+ winreg_commands,
+ NULL
+ };
tmp_ctx = talloc_stackframe();
if (tmp_ctx == NULL) {
return NULL;
+--- a/source3/rpcclient/rpcclient.c
++++ b/source3/rpcclient/rpcclient.c
+@@ -640,7 +640,9 @@ static struct cmd_set *rpcclient_command
+ drsuapi_commands,
+ eventlog_commands,
+ #endif
++#ifdef WINREG_SUPPORT
+ winreg_commands,
++#endif
+ NULL
+ };
+
rpc_initshutdown_shutdown();
#ifdef EXTRA_SERVICES
rpc_eventlog_shutdown();
+--- a/source3/rpcclient/rpcclient.c
++++ b/source3/rpcclient/rpcclient.c
+@@ -629,7 +629,9 @@ static struct cmd_set *rpcclient_command
+ #endif
+ netlogon_commands,
+ srvsvc_commands,
++#ifdef DFS_SUPPORT
+ dfs_commands,
++#endif
+ echo_commands,
+ epmapper_commands,
+ shutdown_commands,
if (!smb_register_ndr_interface(&ndr_table_initshutdown)) {
return false;
}
+--- a/source3/rpcclient/rpcclient.c
++++ b/source3/rpcclient/rpcclient.c
+@@ -632,7 +632,9 @@ static struct cmd_set *rpcclient_command
+ #ifdef DFS_SUPPORT
+ dfs_commands,
+ #endif
++#ifdef DEVELOPER
+ echo_commands,
++#endif
+ epmapper_commands,
+ shutdown_commands,
+ test_commands,
return false;
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
-@@ -634,7 +634,9 @@ static struct cmd_set *rpcclient_command
+@@ -638,7 +638,9 @@ static struct cmd_set *rpcclient_command
epmapper_commands,
shutdown_commands,
test_commands,
+#ifdef WKSSVC_SUPPORT
wkssvc_commands,
+#endif
+ #ifdef EXTRA_SERVICES
ntsvcs_commands,
drsuapi_commands,
- eventlog_commands,
in_addr_to_sockaddr_storage(&ss, p->ip);
pss = iface_ip((struct sockaddr *)&ss);
if (!pss) {
+--- a/source3/rpcclient/rpcclient.c
++++ b/source3/rpcclient/rpcclient.c
+@@ -627,7 +627,9 @@ static struct cmd_set *rpcclient_command
+ #ifdef PRINTER_SUPPORT
+ spoolss_commands,
+ #endif
++#ifdef NETLOGON_SUPPORT
+ netlogon_commands,
++#endif
+ srvsvc_commands,
+ #ifdef DFS_SUPPORT
+ dfs_commands,
lsarpc_cb.init = lsarpc_init_cb;
lsarpc_cb.shutdown = NULL;
+--- a/source3/rpcclient/rpcclient.c
++++ b/source3/rpcclient/rpcclient.c
+@@ -630,7 +630,9 @@ static struct cmd_set *rpcclient_command
+ #ifdef NETLOGON_SUPPORT
+ netlogon_commands,
+ #endif
++#ifdef NETLOGON_SUPPORT
+ srvsvc_commands,
++#endif
+ #ifdef DFS_SUPPORT
+ dfs_commands,
+ #endif