2007-11-27 11:51:22 +01:00
/*
2004-04-08 19:06:37 +00:00
Unix SMB / CIFS implementation .
endpoint server for the wkssvc pipe
Copyright ( C ) Stefan ( metze ) Metzmacher 2004
2007-11-27 11:51:22 +01:00
2004-04-08 19:06:37 +00:00
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
2007-07-10 02:07:03 +00:00
the Free Software Foundation ; either version 3 of the License , or
2004-04-08 19:06:37 +00:00
( at your option ) any later version .
2007-11-27 11:51:22 +01:00
2004-04-08 19:06:37 +00:00
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
2007-11-27 11:51:22 +01:00
2004-04-08 19:06:37 +00:00
You should have received a copy of the GNU General Public License
2007-07-10 02:07:03 +00:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2004-04-08 19:06:37 +00:00
*/
# include "includes.h"
2004-11-02 07:42:47 +00:00
# include "rpc_server/dcerpc_server.h"
2004-11-01 10:30:34 +00:00
# include "librpc/gen_ndr/ndr_wkssvc.h"
2010-11-27 19:16:00 +01:00
# include "librpc/gen_ndr/ndr_srvsvc.h"
2004-04-08 19:06:37 +00:00
# include "rpc_server/common/common.h"
2010-10-21 17:12:31 +11:00
# include "rpc_server/common/share.h"
2008-11-01 15:50:52 +01:00
# include "param/param.h"
2004-04-08 19:06:37 +00:00
2007-11-27 11:51:22 +01:00
/*
wkssvc_NetWkstaGetInfo
2004-04-08 19:06:37 +00:00
*/
2007-01-17 14:49:36 +00:00
static WERROR dcesrv_wkssvc_NetWkstaGetInfo ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
2004-04-08 19:06:37 +00:00
struct wkssvc_NetWkstaGetInfo * r )
{
struct dcesrv_context * dce_ctx = dce_call - > conn - > dce_ctx ;
2010-07-16 14:32:42 +10:00
struct dcerpc_server_info * server_info = lpcfg_dcerpc_server_info ( mem_ctx , dce_ctx - > lp_ctx ) ;
2004-04-08 19:06:37 +00:00
/* NOTE: win2k3 ignores r->in.server_name completly so we do --metze */
switch ( r - > in . level ) {
2004-12-31 02:48:11 +00:00
case 100 :
{
struct wkssvc_NetWkstaInfo100 * info100 ;
2007-11-27 11:51:22 +01:00
2005-01-27 07:08:20 +00:00
info100 = talloc ( mem_ctx , struct wkssvc_NetWkstaInfo100 ) ;
2004-12-31 02:48:11 +00:00
W_ERROR_HAVE_NO_MEMORY ( info100 ) ;
info100 - > platform_id = dcesrv_common_get_platform_id ( mem_ctx , dce_ctx ) ;
2004-12-31 03:32:36 +00:00
info100 - > server_name = dcesrv_common_get_server_name ( mem_ctx , dce_ctx , NULL ) ;
W_ERROR_HAVE_NO_MEMORY ( info100 - > server_name ) ;
2010-03-10 14:10:13 +01:00
info100 - > domain_name = server_info - > domain_name ;
2008-11-01 15:50:52 +01:00
info100 - > version_major = server_info - > version_major ;
info100 - > version_minor = server_info - > version_minor ;
2004-12-31 02:48:11 +00:00
2005-12-06 03:53:51 +00:00
r - > out . info - > info100 = info100 ;
2004-12-31 02:48:11 +00:00
return WERR_OK ;
}
case 101 :
{
struct wkssvc_NetWkstaInfo101 * info101 ;
2005-01-27 07:08:20 +00:00
info101 = talloc ( mem_ctx , struct wkssvc_NetWkstaInfo101 ) ;
2004-12-31 02:48:11 +00:00
W_ERROR_HAVE_NO_MEMORY ( info101 ) ;
info101 - > platform_id = dcesrv_common_get_platform_id ( mem_ctx , dce_ctx ) ;
2004-12-31 03:32:36 +00:00
info101 - > server_name = dcesrv_common_get_server_name ( mem_ctx , dce_ctx , NULL ) ;
W_ERROR_HAVE_NO_MEMORY ( info101 - > server_name ) ;
2010-03-10 14:10:13 +01:00
info101 - > domain_name = server_info - > domain_name ;
2008-11-01 15:50:52 +01:00
info101 - > version_major = server_info - > version_major ;
info101 - > version_minor = server_info - > version_minor ;
2004-12-31 02:48:11 +00:00
info101 - > lan_root = dcesrv_common_get_lan_root ( mem_ctx , dce_ctx ) ;
2005-12-06 03:53:51 +00:00
r - > out . info - > info101 = info101 ;
2004-12-31 02:48:11 +00:00
return WERR_OK ;
}
case 102 :
{
return WERR_ACCESS_DENIED ;
}
case 502 :
{
return WERR_ACCESS_DENIED ;
}
2004-05-04 06:07:52 +00:00
default :
return WERR_UNKNOWN_LEVEL ;
2004-04-08 19:06:37 +00:00
}
}
2007-11-27 11:51:22 +01:00
/*
wkssvc_NetWkstaSetInfo
2004-04-08 19:06:37 +00:00
*/
2007-01-17 14:49:36 +00:00
static WERROR dcesrv_wkssvc_NetWkstaSetInfo ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
2004-04-08 19:06:37 +00:00
struct wkssvc_NetWkstaSetInfo * r )
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 11:51:22 +01:00
/*
2005-12-06 03:53:51 +00:00
wkssvc_NetWkstaEnumUsers
2004-04-08 19:06:37 +00:00
*/
2007-01-17 14:49:36 +00:00
static WERROR dcesrv_wkssvc_NetWkstaEnumUsers ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
2005-12-06 03:53:51 +00:00
struct wkssvc_NetWkstaEnumUsers * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 09:41:50 +01:00
/*
wkssvc_NetrWkstaUserGetInfo
2004-04-08 19:06:37 +00:00
*/
2007-11-27 09:41:50 +01:00
static WERROR dcesrv_wkssvc_NetrWkstaUserGetInfo ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrWkstaUserGetInfo * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 10:25:48 +01:00
/*
wkssvc_NetrWkstaUserSetInfo
2004-04-08 19:06:37 +00:00
*/
2007-11-27 10:25:48 +01:00
static WERROR dcesrv_wkssvc_NetrWkstaUserSetInfo ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrWkstaUserSetInfo * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 11:51:22 +01:00
/*
wkssvc_NetWkstaTransportEnum
2004-04-08 19:06:37 +00:00
*/
2007-01-17 14:49:36 +00:00
static WERROR dcesrv_wkssvc_NetWkstaTransportEnum ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
2004-04-08 19:06:37 +00:00
struct wkssvc_NetWkstaTransportEnum * r )
{
2007-11-27 09:58:18 +01:00
switch ( r - > in . info - > level ) {
2004-05-04 06:07:52 +00:00
case 0 :
2007-11-27 09:58:18 +01:00
r - > out . info - > ctr . ctr0 = talloc ( mem_ctx , struct wkssvc_NetWkstaTransportCtr0 ) ;
W_ERROR_HAVE_NO_MEMORY ( r - > out . info - > ctr . ctr0 ) ;
2004-04-19 18:21:53 +00:00
2007-11-27 09:58:18 +01:00
r - > out . info - > ctr . ctr0 - > count = 0 ;
r - > out . info - > ctr . ctr0 - > array = NULL ;
2004-04-19 18:21:53 +00:00
2004-05-04 06:07:52 +00:00
return WERR_NOT_SUPPORTED ;
2004-04-19 18:21:53 +00:00
default :
2004-05-04 06:07:52 +00:00
return WERR_UNKNOWN_LEVEL ;
2004-04-19 18:21:53 +00:00
}
2004-04-08 19:06:37 +00:00
}
2007-11-27 09:58:18 +01:00
/*
wkssvc_NetrWkstaTransportAdd
2004-04-08 19:06:37 +00:00
*/
2007-11-27 09:58:18 +01:00
static WERROR dcesrv_wkssvc_NetrWkstaTransportAdd ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrWkstaTransportAdd * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 09:58:18 +01:00
/*
wkssvc_NetrWkstaTransportDel
2004-04-08 19:06:37 +00:00
*/
2007-11-27 09:58:18 +01:00
static WERROR dcesrv_wkssvc_NetrWkstaTransportDel ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrWkstaTransportDel * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 10:18:00 +01:00
/*
wkssvc_NetrUseAdd
2004-04-08 19:06:37 +00:00
*/
2007-11-27 10:18:00 +01:00
static WERROR dcesrv_wkssvc_NetrUseAdd ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrUseAdd * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 10:23:24 +01:00
/*
wkssvc_NetrUseGetInfo
2004-04-08 19:06:37 +00:00
*/
2007-11-27 10:23:24 +01:00
static WERROR dcesrv_wkssvc_NetrUseGetInfo ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrUseGetInfo * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 10:18:00 +01:00
/*
wkssvc_NetrUseDel
2004-04-08 19:06:37 +00:00
*/
2007-11-27 10:18:00 +01:00
static WERROR dcesrv_wkssvc_NetrUseDel ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrUseDel * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 10:07:00 +01:00
/*
wkssvc_NetrUseEnum
2004-04-08 19:06:37 +00:00
*/
2007-11-27 10:07:00 +01:00
static WERROR dcesrv_wkssvc_NetrUseEnum ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrUseEnum * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 11:20:34 +01:00
/*
wkssvc_NetrMessageBufferSend
2004-04-08 19:06:37 +00:00
*/
2007-11-27 11:20:34 +01:00
static WERROR dcesrv_wkssvc_NetrMessageBufferSend ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrMessageBufferSend * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 11:14:51 +01:00
/*
wkssvc_NetrWorkstationStatisticsGet
2004-04-08 19:06:37 +00:00
*/
2007-11-27 11:14:51 +01:00
static WERROR dcesrv_wkssvc_NetrWorkstationStatisticsGet ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrWorkstationStatisticsGet * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 10:29:19 +01:00
/*
wkssvc_NetrLogonDomainNameAdd
2004-04-08 19:06:37 +00:00
*/
2007-11-27 10:29:19 +01:00
static WERROR dcesrv_wkssvc_NetrLogonDomainNameAdd ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrLogonDomainNameAdd * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 10:29:19 +01:00
/*
wkssvc_NetrLogonDomainNameDel
2004-04-08 19:06:37 +00:00
*/
2007-11-27 10:29:19 +01:00
static WERROR dcesrv_wkssvc_NetrLogonDomainNameDel ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrLogonDomainNameDel * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 11:51:22 +01:00
/*
2007-11-27 12:11:49 +01:00
wkssvc_NetrJoinDomain
2004-04-08 19:06:37 +00:00
*/
2007-11-27 12:11:49 +01:00
static WERROR dcesrv_wkssvc_NetrJoinDomain ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrJoinDomain * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 11:51:22 +01:00
/*
2007-11-27 12:11:49 +01:00
wkssvc_NetrUnjoinDomain
2004-04-08 19:06:37 +00:00
*/
2007-11-27 12:11:49 +01:00
static WERROR dcesrv_wkssvc_NetrUnjoinDomain ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrUnjoinDomain * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 11:49:51 +01:00
/*
wkssvc_NetrRenameMachineInDomain
2004-04-08 19:06:37 +00:00
*/
2007-11-27 11:49:51 +01:00
static WERROR dcesrv_wkssvc_NetrRenameMachineInDomain ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrRenameMachineInDomain * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 10:34:53 +01:00
/*
wkssvc_NetrValidateName
2004-04-08 19:06:37 +00:00
*/
2007-11-27 10:34:53 +01:00
static WERROR dcesrv_wkssvc_NetrValidateName ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrValidateName * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 11:51:22 +01:00
/*
2007-11-27 12:08:01 +01:00
wkssvc_NetrGetJoinInformation
2004-04-08 19:06:37 +00:00
*/
2007-11-27 12:08:01 +01:00
static WERROR dcesrv_wkssvc_NetrGetJoinInformation ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrGetJoinInformation * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 11:51:22 +01:00
/*
2007-11-27 12:18:23 +01:00
wkssvc_NetrGetJoinableOus
2004-04-08 19:06:37 +00:00
*/
2007-11-27 12:18:23 +01:00
static WERROR dcesrv_wkssvc_NetrGetJoinableOus ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrGetJoinableOus * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 11:51:22 +01:00
/*
WKSSVC_NETRJOINDOMAIN2
2004-04-08 19:06:37 +00:00
*/
2007-01-17 14:49:36 +00:00
static WERROR dcesrv_wkssvc_NetrJoinDomain2 ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
2005-12-06 03:53:51 +00:00
struct wkssvc_NetrJoinDomain2 * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 11:51:22 +01:00
/*
WKSSVC_NETRUNJOINDOMAIN2
2004-04-08 19:06:37 +00:00
*/
2007-01-17 14:49:36 +00:00
static WERROR dcesrv_wkssvc_NetrUnjoinDomain2 ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
2005-12-06 03:53:51 +00:00
struct wkssvc_NetrUnjoinDomain2 * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 11:49:51 +01:00
/*
wkssvc_NetrRenameMachineInDomain2
2004-04-08 19:06:37 +00:00
*/
2007-01-17 14:49:36 +00:00
static WERROR dcesrv_wkssvc_NetrRenameMachineInDomain2 ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
2005-12-06 03:53:51 +00:00
struct wkssvc_NetrRenameMachineInDomain2 * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 10:34:53 +01:00
/*
wkssvc_NetrValidateName2
2004-04-08 19:06:37 +00:00
*/
2007-11-27 10:34:53 +01:00
static WERROR dcesrv_wkssvc_NetrValidateName2 ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrValidateName2 * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 11:51:22 +01:00
/*
2007-11-27 12:18:23 +01:00
wkssvc_NetrGetJoinableOus2
2004-04-08 19:06:37 +00:00
*/
2007-11-27 12:18:23 +01:00
static WERROR dcesrv_wkssvc_NetrGetJoinableOus2 ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrGetJoinableOus2 * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 11:04:51 +01:00
/*
wkssvc_NetrAddAlternateComputername
2004-04-08 19:06:37 +00:00
*/
2007-01-17 14:49:36 +00:00
static WERROR dcesrv_wkssvc_NetrAddAlternateComputerName ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
2005-12-06 03:53:51 +00:00
struct wkssvc_NetrAddAlternateComputerName * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 11:04:51 +01:00
/*
wkssvc_NetrRemoveAlternateComputername
2004-04-08 19:06:37 +00:00
*/
2007-01-17 14:49:36 +00:00
static WERROR dcesrv_wkssvc_NetrRemoveAlternateComputerName ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
2005-12-06 03:53:51 +00:00
struct wkssvc_NetrRemoveAlternateComputerName * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 11:31:09 +01:00
/*
wkssvc_NetrSetPrimaryComputername
2004-04-08 19:06:37 +00:00
*/
2007-11-27 11:31:09 +01:00
static WERROR dcesrv_wkssvc_NetrSetPrimaryComputername ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrSetPrimaryComputername * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
2007-11-27 10:42:50 +01:00
/*
wkssvc_NetrEnumerateComputerNames
2004-04-08 19:06:37 +00:00
*/
2007-11-27 10:42:50 +01:00
static WERROR dcesrv_wkssvc_NetrEnumerateComputerNames ( struct dcesrv_call_state * dce_call , TALLOC_CTX * mem_ctx ,
struct wkssvc_NetrEnumerateComputerNames * r )
2004-04-08 19:06:37 +00:00
{
2004-05-25 03:04:26 +00:00
DCESRV_FAULT ( DCERPC_FAULT_OP_RNG_ERROR ) ;
2004-04-08 19:06:37 +00:00
}
/* include the generated boilerplate */
# include "librpc/gen_ndr/ndr_wkssvc_s.c"