summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-12-04 12:03:01 +0100
committerStefan Metzmacher <metze@samba.org>2008-12-04 12:48:44 +0100
commit9d44600470e2f2444a09d91d5d6b36515454c919 (patch)
treec1901fa1973734ca4783016d64c50ec395164650 /source4
parent885a1be8b932a212b6234a2a0c990975eb16e9e8 (diff)
downloadsamba-9d44600470e2f2444a09d91d5d6b36515454c919.tar.gz
samba-9d44600470e2f2444a09d91d5d6b36515454c919.tar.bz2
samba-9d44600470e2f2444a09d91d5d6b36515454c919.zip
s4:netlogon: for now implement netr_GetAnyDCName() as wrapper of netr_GetDcName()
metze
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/netlogon/dcerpc_netlogon.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c
index 2854980284..2806802e63 100644
--- a/source4/rpc_server/netlogon/dcerpc_netlogon.c
+++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c
@@ -856,7 +856,18 @@ static WERROR dcesrv_netr_LogonControl(struct dcesrv_call_state *dce_call, TALLO
static WERROR dcesrv_netr_GetAnyDCName(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct netr_GetAnyDCName *r)
{
- DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+ struct netr_GetDcName r2;
+ WERROR werr;
+
+ ZERO_STRUCT(r2);
+
+ r2.in.logon_server = r->in.logon_server;
+ r2.in.domainname = r->in.domainname;
+ r2.out.dcname = r->out.dcname;
+
+ werr = dcesrv_netr_GetDcName(dce_call, mem_ctx, &r2);
+
+ return werr;
}