Changeset 18454
- Timestamp:
- 02/13/12 18:50:44 (16 months ago)
- Location:
- src/router/samba36/source3
- Files:
-
- 8 edited
-
lib/netapi/serverinfo.c (modified) (1 diff)
-
lib/smbconf/smbconf_init.c (modified) (1 diff)
-
librpc/rpc/rpc_common.c (modified) (2 diffs)
-
rpc_server/rpc_ep_setup.c (modified) (12 diffs)
-
rpc_server/wkssvc/srv_wkssvc_nt.c (modified) (2 diffs)
-
rpcclient/rpcclient.c (modified) (3 diffs)
-
smbd/lanman.c (modified) (4 diffs)
-
smbd/server_exit.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/samba36/source3/lib/netapi/serverinfo.c
r18451 r18454 558 558 } 559 559 560 if (!lp_config_backend_is_registry()) { 560 #ifdef REGISTRY_BACKEND 561 if (!lp_config_backend_is_registry()) 562 #endif 563 { 561 564 libnetapi_set_error_string(ctx, 562 565 "Configuration manipulation requested but not " -
src/router/samba36/source3/lib/smbconf/smbconf_init.c
r18451 r18454 69 69 } 70 70 71 #ifdef REGISTRY_BACKEND 71 72 if (strequal(backend, "registry") || strequal(backend, "reg")) { 72 73 err = smbconf_init_reg(mem_ctx, conf_ctx, path); 73 } else if (strequal(backend, "file") || strequal(backend, "txt")) { 74 } else 75 #endif 76 if (strequal(backend, "file") || strequal(backend, "txt")) { 74 77 err = smbconf_init_txt(mem_ctx, conf_ctx, path); 75 78 } else if (sep == NULL) { -
src/router/samba36/source3/librpc/rpc/rpc_common.c
r18451 r18454 101 101 } 102 102 #endif 103 #ifdef SAMR_SUPPORT 103 104 if (!smb_register_ndr_interface(&ndr_table_samr)) { 104 105 return false; 105 106 } 107 #endif 106 108 #ifdef NETLOGON_SUPPORT 107 109 if (!smb_register_ndr_interface(&ndr_table_netlogon)) { … … 109 111 } 110 112 #endif 111 #ifdef SRVSVC_SUPPORT112 113 if (!smb_register_ndr_interface(&ndr_table_srvsvc)) { 113 114 return false; 114 115 } 115 #endif116 #ifdef WKSSVC_SUPPORT117 116 if (!smb_register_ndr_interface(&ndr_table_wkssvc)) { 118 117 return false; 119 118 } 120 #endif121 119 #ifdef WINREG_SUPPORT 122 120 if (!smb_register_ndr_interface(&ndr_table_winreg)) { -
src/router/samba36/source3/rpc_server/rpc_ep_setup.c
r18451 r18454 460 460 #endif 461 461 462 #ifdef SRVSVC_SUPPORT463 462 static bool srvsvc_init_cb(void *ptr) 464 463 { … … 509 508 return true; 510 509 } 511 #endif512 510 513 511 static bool lsarpc_init_cb(void *ptr) … … 560 558 } 561 559 560 #ifdef SAMR_SUPPORT 562 561 static bool samr_init_cb(void *ptr) 563 562 { … … 608 607 return true; 609 608 } 609 #endif 610 610 611 611 #ifdef NETLOGON_SUPPORT … … 987 987 #endif 988 988 989 #ifdef WKSSVC_SUPPORT990 989 static bool wkssvc_init_cb(void *ptr) 991 990 { … … 1035 1034 return true; 1036 1035 } 1037 #endif1038 1036 1039 1037 bool dcesrv_ep_setup(struct tevent_context *ev_ctx, … … 1101 1099 #endif 1102 1100 1103 #ifdef SRVSVC_SUPPORT1104 1101 srvsvc_cb.init = srvsvc_init_cb; 1105 1102 srvsvc_cb.shutdown = NULL; … … 1108 1105 return false; 1109 1106 } 1110 #endif 1107 1111 1108 1112 1109 lsarpc_cb.init = lsarpc_init_cb; … … 1117 1114 } 1118 1115 1116 #ifdef SAMR_SUPPORT 1119 1117 samr_cb.init = samr_init_cb; 1120 1118 samr_cb.shutdown = NULL; … … 1123 1121 return false; 1124 1122 } 1123 #endif 1125 1124 1126 1125 #ifdef NETLOGON_SUPPORT … … 1213 1212 #endif 1214 1213 1215 #ifdef WKSSVC_SUPPORT1216 1214 wkssvc_cb.init = wkssvc_init_cb; 1217 1215 wkssvc_cb.shutdown = NULL; … … 1220 1218 return false; 1221 1219 } 1222 #endif1223 1220 1224 1221 return true; -
src/router/samba36/source3/rpc_server/wkssvc/srv_wkssvc_nt.c
r18451 r18454 821 821 struct security_token *token = p->session_info->security_token; 822 822 823 #ifndef NETLOGON_SUPPORT 824 return WERR_NOT_SUPPORTED; 825 #endif 826 823 827 if (!r->in.domain_name) { 824 828 return WERR_INVALID_PARAM; … … 898 902 struct security_token *token = p->session_info->security_token; 899 903 904 #ifndef NETLOGON_SUPPORT 905 return WERR_NOT_SUPPORTED; 906 #endif 907 900 908 if (!r->in.account || !r->in.encrypted_password) { 901 909 return WERR_INVALID_PARAM; -
src/router/samba36/source3/rpcclient/rpcclient.c
r18451 r18454 624 624 lsarpc_commands, 625 625 ds_commands, 626 #ifdef SAMR_SUPPORT 626 627 samr_commands, 628 #endif 627 629 #ifdef PRINTER_SUPPORT 628 630 spoolss_commands, … … 631 633 netlogon_commands, 632 634 #endif 633 #ifdef SRVSVC_SUPPORT634 635 srvsvc_commands, 635 #endif636 636 #ifdef DFS_SUPPORT 637 637 dfs_commands, … … 643 643 shutdown_commands, 644 644 test_commands, 645 #ifdef WKSSVC_SUPPORT646 645 wkssvc_commands, 647 #endif648 646 #ifdef EXTRA_SERVICES 649 647 ntsvcs_commands, -
src/router/samba36/source3/smbd/lanman.c
r18451 r18454 2198 2198 struct dcerpc_binding_handle *b; 2199 2199 2200 #ifndef SRVSVC_SUPPORT2201 return False;2202 #endif2203 2204 2200 if (!str1 || !str2 || !p) { 2205 2201 return False; … … 3823 3819 WERROR werr; 3824 3820 TALLOC_CTX *mem_ctx = talloc_tos(); 3821 struct rpc_pipe_client *cli = NULL; 3822 union srvsvc_NetSrvInfo info; 3825 3823 int errcode; 3824 struct dcerpc_binding_handle *b; 3826 3825 3827 3826 if (!str1 || !str2 || !p) { … … 3886 3885 p2 = p + struct_len; 3887 3886 3887 status = rpc_pipe_open_interface(mem_ctx, &ndr_table_srvsvc.syntax_id, 3888 conn->session_info, 3889 &conn->sconn->client_id, 3890 conn->sconn->msg_ctx, 3891 &cli); 3892 if (!NT_STATUS_IS_OK(status)) { 3893 DEBUG(0,("api_RNetServerGetInfo: could not connect to srvsvc: %s\n", 3894 nt_errstr(status))); 3895 errcode = W_ERROR_V(ntstatus_to_werror(status)); 3896 goto out; 3897 } 3898 3899 b = cli->binding_handle; 3900 3901 status = dcerpc_srvsvc_NetSrvGetInfo(b, mem_ctx, 3902 NULL, 3903 101, 3904 &info, 3905 &werr); 3906 if (!NT_STATUS_IS_OK(status)) { 3907 errcode = W_ERROR_V(ntstatus_to_werror(status)); 3908 goto out; 3909 } 3910 if (!W_ERROR_IS_OK(werr)) { 3911 errcode = W_ERROR_V(werr); 3912 goto out; 3913 } 3914 3915 if (info.info101 == NULL) { 3916 errcode = W_ERROR_V(WERR_INVALID_PARAM); 3917 goto out; 3918 } 3919 3888 3920 if (uLevel != 20) { 3889 srvstr_push(NULL, 0, p, global_myname(), 16,3921 srvstr_push(NULL, 0, p, info.info101->server_name, 16, 3890 3922 STR_ASCII|STR_UPPER|STR_TERMINATE); 3891 }3923 } 3892 3924 p += 16; 3893 3925 if (uLevel > 0) { 3894 SCVAL(p,0,lp_major_announce_version()); 3895 SCVAL(p,1,lp_minor_announce_version()); 3896 SIVAL(p,2,lp_default_server_announce()); 3897 SIVAL(p,6,0); 3926 SCVAL(p,0,info.info101->version_major); 3927 SCVAL(p,1,info.info101->version_minor); 3928 SIVAL(p,2,info.info101->server_type); 3929 3930 if (mdrcnt == struct_len) { 3931 SIVAL(p,6,0); 3932 } else { 3933 SIVAL(p,6,PTR_DIFF(p2,*rdata)); 3934 if (mdrcnt - struct_len <= 0) { 3935 return false; 3936 } 3937 push_ascii(p2, 3938 info.info101->comment, 3939 MIN(mdrcnt - struct_len, 3940 MAX_SERVER_STRING_LENGTH), 3941 STR_TERMINATE); 3942 p2 = skip_string(*rdata,*rdata_len,p2); 3943 if (!p2) { 3944 return False; 3945 } 3946 } 3898 3947 } 3899 3948 … … 5583 5632 uint32_t totalentries, resume_handle = 0; 5584 5633 uint32_t count = 0; 5585 5586 #ifndef SRVSVC_SUPPORT5587 return False;5588 #endif5589 5634 5590 5635 if (!str1 || !str2 || !p) { -
src/router/samba36/source3/smbd/server_exit.c
r18451 r18454 133 133 134 134 if (am_parent) { 135 #ifdef WKSSVC_SUPPORT136 135 rpc_wkssvc_shutdown(); 137 #endif138 136 #ifdef ACTIVE_DIRECTORY 139 137 rpc_dssetup_shutdown(); … … 155 153 #endif 156 154 157 #ifdef SRVSVC_SUPPORT158 155 rpc_srvsvc_shutdown(); 159 #endif160 156 #ifdef WINREG_SUPPORT 161 157 rpc_winreg_shutdown(); … … 165 161 rpc_netlogon_shutdown(); 166 162 #endif 163 #ifdef SAMR_SUPPORT 167 164 rpc_samr_shutdown(); 165 #endif 168 166 rpc_lsarpc_shutdown(); 169 167 }
Note: See TracChangeset
for help on using the changeset viewer.
