summaryrefslogtreecommitdiff
path: root/source4/rpc_server/dcom/oxidresolver.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-11-09 00:30:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:40 -0500
commitb3ef49946f9c064f05e387d8786112809d2f2da6 (patch)
tree0625e123dcbdec168c2482932dba2b66ce81b98d /source4/rpc_server/dcom/oxidresolver.c
parente056ed97d79c046a7f4b9562ad785fc54719a8ce (diff)
downloadsamba-b3ef49946f9c064f05e387d8786112809d2f2da6.tar.gz
samba-b3ef49946f9c064f05e387d8786112809d2f2da6.tar.bz2
samba-b3ef49946f9c064f05e387d8786112809d2f2da6.zip
r3629: A bit of work on the DCOM server architecture, small fixes
(This used to be commit e7b67ff22fe0a76afc93ee522b253eaf5dccb11d)
Diffstat (limited to 'source4/rpc_server/dcom/oxidresolver.c')
-rw-r--r--source4/rpc_server/dcom/oxidresolver.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/source4/rpc_server/dcom/oxidresolver.c b/source4/rpc_server/dcom/oxidresolver.c
index 213802fade..a3f65b62e5 100644
--- a/source4/rpc_server/dcom/oxidresolver.c
+++ b/source4/rpc_server/dcom/oxidresolver.c
@@ -89,21 +89,30 @@ static WERROR ServerAlive(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ct
*/
static WERROR ResolveOxid2(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ResolveOxid2 *r)
{
+ ZERO_STRUCT(r->out);
+ r->out.ComVersion.MajorVersion = COM_MAJOR_VERSION;
+ r->out.ComVersion.MinorVersion = COM_MINOR_VERSION;
return WERR_NOT_SUPPORTED;
}
+struct DUALSTRINGARRAY *dcom_server_generate_dual_string(TALLOC_CTX *mem_ctx, struct dcesrv_call_state *state)
+{
+ return NULL; /* FIXME */
+}
/*
ServerAlive2
*/
static WERROR ServerAlive2(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ServerAlive2 *r)
{
- return WERR_NOT_SUPPORTED;
+ ZERO_STRUCT(r->out);
+ r->out.info.version.MajorVersion = COM_MAJOR_VERSION;
+ r->out.info.version.MinorVersion = COM_MINOR_VERSION;
+ r->out.dualstring = *dcom_server_generate_dual_string(mem_ctx, dce_call);
+ return WERR_OK;
}
-/* FIXME: Regularly ping objects in use by local programs on
- * remote servers */
-
+/* FIXME: Garbage collect objects that haven't been pinged */
/* include the generated boilerplate */
#include "librpc/gen_ndr/ndr_oxidresolver_s.c"