summaryrefslogtreecommitdiff
path: root/source4/rpc_server/srvsvc
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-12-30 17:01:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:46 -0500
commit8da7a605576bf7dc4f96759b65f1387c6a52467d (patch)
treef03c92ab3058db1db7f8a3e5a086aadf3f4609cc /source4/rpc_server/srvsvc
parent3450ed666c50ec908557213672ff6b1b4534e9c1 (diff)
downloadsamba-8da7a605576bf7dc4f96759b65f1387c6a52467d.tar.gz
samba-8da7a605576bf7dc4f96759b65f1387c6a52467d.tar.bz2
samba-8da7a605576bf7dc4f96759b65f1387c6a52467d.zip
r4414: Various bits&pieces:
* Implement samr_search_domain, filter out all elements with no "objectSid" attribute and all objects outside a specified domain sid. * Minor cleanups in dcerpc_samr.c due to that. * Implement srvsvc_NetSrvGetInfo level 100. A quick hack to get usrmgr.exe one step further. * Same for samr_info_DomInfo1. Volker (This used to be commit cdec89611355fb75d253ecf5b658d0e23de8e440)
Diffstat (limited to 'source4/rpc_server/srvsvc')
-rw-r--r--source4/rpc_server/srvsvc/dcesrv_srvsvc.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source4/rpc_server/srvsvc/dcesrv_srvsvc.c b/source4/rpc_server/srvsvc/dcesrv_srvsvc.c
index 8909fc17a7..12dcf5b738 100644
--- a/source4/rpc_server/srvsvc/dcesrv_srvsvc.c
+++ b/source4/rpc_server/srvsvc/dcesrv_srvsvc.c
@@ -666,7 +666,16 @@ static WERROR srvsvc_NetShareCheck(struct dcesrv_call_state *dce_call, TALLOC_CT
static WERROR srvsvc_NetSrvGetInfo(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct srvsvc_NetSrvGetInfo *r)
{
- DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+ if (r->in.level != 100)
+ return WERR_UNKNOWN_LEVEL;
+
+ r->out.info.info100 = talloc_p(mem_ctx, struct srvsvc_NetSrvInfo100);
+ if (r->out.info.info100 == NULL)
+ return WERR_NOMEM;
+
+ r->out.info.info100->platform_id = 500; /* W2k3 returns this */
+ r->out.info.info100->server_unc = lp_netbios_name();
+ return WERR_OK;
}