diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-01-15 19:36:16 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-01-16 14:10:42 +1100 |
commit | 5bfeed89da6177adf9dfa49471adcbc25c7d0e7a (patch) | |
tree | e8d79664ecff7d4d172a82b88ff916917b3c33e5 /source4/rpc_server/drsuapi | |
parent | 22d92157e35240b8b2f653a688dffd68a4b0e330 (diff) | |
download | samba-5bfeed89da6177adf9dfa49471adcbc25c7d0e7a.tar.gz samba-5bfeed89da6177adf9dfa49471adcbc25c7d0e7a.tar.bz2 samba-5bfeed89da6177adf9dfa49471adcbc25c7d0e7a.zip |
s4-drs: framework for DsGetReplInfo(), includes the DS_REPL_INFO_NEIGHBORS infoType.
This patch includes the framework for the implementation of all infoTypes of
the DsGetReplInfo() call, and includes the implementation for the first one,
the DS_REPL_INFO_NEIGHBORS.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/rpc_server/drsuapi')
-rw-r--r-- | source4/rpc_server/drsuapi/dcesrv_drsuapi.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source4/rpc_server/drsuapi/dcesrv_drsuapi.c b/source4/rpc_server/drsuapi/dcesrv_drsuapi.c index df25929157..38d043c4e4 100644 --- a/source4/rpc_server/drsuapi/dcesrv_drsuapi.c +++ b/source4/rpc_server/drsuapi/dcesrv_drsuapi.c @@ -743,7 +743,17 @@ static WERROR dcesrv_drsuapi_DsExecuteKCC(struct dcesrv_call_state *dce_call, TA static WERROR dcesrv_drsuapi_DsReplicaGetInfo(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct drsuapi_DsReplicaGetInfo *r) { - DRSUAPI_UNSUPPORTED(drsuapi_DsReplicaGetInfo); + WERROR status; + status = drs_security_level_check(dce_call, "DsReplicaGetInfo"); + + if (!W_ERROR_IS_OK(status)) { + return status; + } + + dcesrv_irpc_forward_rpc_call(dce_call, mem_ctx, r, NDR_DRSUAPI_DSREPLICAGETINFO, + &ndr_table_drsuapi, "kccsrv", "DsReplicaGetInfo"); + + return WERR_OK; } |