summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/librpc/idl/drsuapi.idl54
-rw-r--r--source4/torture/rpc/autoidl.c8
-rw-r--r--source4/torture/rpc/drsuapi.c32
3 files changed, 47 insertions, 47 deletions
diff --git a/source4/librpc/idl/drsuapi.idl b/source4/librpc/idl/drsuapi.idl
index 93a7caa48c..74ed5ed1e8 100644
--- a/source4/librpc/idl/drsuapi.idl
+++ b/source4/librpc/idl/drsuapi.idl
@@ -17,108 +17,108 @@ interface drsuapi
[size_is(length)] uint8 data[];
} drsuapi_BindInfo;
- NTSTATUS drsuapi_Bind(
+ NTSTATUS drsuapi_DsBind(
[in] GUID *server_guid,
[in] uint32 unknown,
[out] drsuapi_BindInfo *info,
- [out,ref] policy_handle *handle
+ [out,ref] policy_handle *bind_handle
);
/*****************/
/* Function 0x01 */
- NTSTATUS drsuapi_Unbind(
- [in,out,ref] policy_handle *handle
+ NTSTATUS drsuapi_DsUnbind(
+ [in,out,ref] policy_handle *bind_handle
);
/*****************/
/* Function 0x02 */
- void DRSUAPI_REPLICA_SYNC();
+ NTSTATUS DRSUAPI_REPLICA_SYNC();
/*****************/
/* Function 0x03 */
- void DRSUAPI_GET_NC_CHANGES();
+ NTSTATUS DRSUAPI_GET_NC_CHANGES();
/*****************/
/* Function 0x04 */
- void DRSUAPI_UPDATE_REFS();
+ NTSTATUS DRSUAPI_UPDATE_REFS();
/*****************/
/* Function 0x05 */
- void DRSUAPI_REPLICA_ADD();
+ NTSTATUS DRSUAPI_REPLICA_ADD();
/*****************/
/* Function 0x06 */
- void DRSUAPI_REPLICA_DEL();
+ NTSTATUS DRSUAPI_REPLICA_DEL();
/*****************/
/* Function 0x07 */
- void DRSUAPI_REPLICA_MODIFY();
+ NTSTATUS DRSUAPI_REPLICA_MODIFY();
/*****************/
/* Function 0x08 */
- void DRSUAPI_VERIFY_NAMES();
+ NTSTATUS DRSUAPI_VERIFY_NAMES();
/*****************/
/* Function 0x09 */
- void DRSUAPI_GET_MEMBERSHIPS();
+ NTSTATUS DRSUAPI_GET_MEMBERSHIPS();
/*****************/
/* Function 0x0a */
- void DRSUAPI_INTER_DOMAIN_MOVE();
+ NTSTATUS DRSUAPI_INTER_DOMAIN_MOVE();
/*****************/
/* Function 0x0b */
- void DRSUAPI_GET_NT4_CHANGELOG();
+ NTSTATUS DRSUAPI_GET_NT4_CHANGELOG();
/*****************/
/* Function 0x0c */
- void DRSUAPI_CRACKNAMES();
+ NTSTATUS DRSUAPI_CRACKNAMES();
/*****************/
/* Function 0x0d */
- void DRSUAPI_WRITE_SPN();
+ NTSTATUS DRSUAPI_WRITE_SPN();
/*****************/
/* Function 0x0e */
- void DRSUAPI_REMOVE_DS_SERVER();
+ NTSTATUS DRSUAPI_REMOVE_DS_SERVER();
/*****************/
/* Function 0x0f */
- void DRSUAPI_REMOVE_DS_DOMAIN();
+ NTSTATUS DRSUAPI_REMOVE_DS_DOMAIN();
/*****************/
/* Function 0x10 */
- void DRSUAPI_DOMAIN_CONTROLLER_INFO();
+ NTSTATUS DRSUAPI_DOMAIN_CONTROLLER_INFO();
/*****************/
/* Function 0x11 */
- void DRSUAPI_ADD_ENTRY();
+ NTSTATUS DRSUAPI_ADD_ENTRY();
/*****************/
/* Function 0x12 */
- void DRSUAPI_EXECUTE_KCC();
+ NTSTATUS DRSUAPI_EXECUTE_KCC();
/*****************/
/* Function 0x13 */
- void DRSUAPI_GET_REPL_INFO();
+ NTSTATUS DRSUAPI_GET_REPL_INFO();
/*****************/
/* Function 0x14 */
- void DRSUAPI_ADD_SID_HISTORY();
+ NTSTATUS DRSUAPI_ADD_SID_HISTORY();
/*****************/
/* Function 0x15 */
- void DRSUAPI_GET_MEMBERSHIPS2();
+ NTSTATUS DRSUAPI_GET_MEMBERSHIPS2();
/*****************/
/* Function 0x16 */
- void DRSUAPI_REPLICA_VERIFY_OBJECTS();
+ NTSTATUS DRSUAPI_REPLICA_VERIFY_OBJECTS();
/*****************/
/* Function 0x17 */
- void DRSUAPI_GET_OBJECT_EXISTENCE();
+ NTSTATUS DRSUAPI_GET_OBJECT_EXISTENCE();
/*****************/
/* Function 0x18 */
- void DRSUAPI_QUERY_SITES_BY_COST();
+ NTSTATUS DRSUAPI_QUERY_SITES_BY_COST();
}
diff --git a/source4/torture/rpc/autoidl.c b/source4/torture/rpc/autoidl.c
index 44e0edb1c3..8ec4a19787 100644
--- a/source4/torture/rpc/autoidl.c
+++ b/source4/torture/rpc/autoidl.c
@@ -32,14 +32,14 @@ static BOOL get_policy_handle(struct dcerpc_pipe *p,
struct policy_handle *handle)
{
NTSTATUS status;
- struct drsuapi_Bind r;
+ struct drsuapi_DsBind r;
ZERO_STRUCT(r);
- r.out.handle = handle;
+ r.out.bind_handle = handle;
- status = dcerpc_drsuapi_Bind(p, mem_ctx, &r);
+ status = dcerpc_drsuapi_DsBind(p, mem_ctx, &r);
if (!NT_STATUS_IS_OK(status)) {
- printf("drsuapi_Bind failed - %s\n", nt_errstr(status));
+ printf("drsuapi_DsBind failed - %s\n", nt_errstr(status));
return False;
}
diff --git a/source4/torture/rpc/drsuapi.c b/source4/torture/rpc/drsuapi.c
index 309427048f..907183083b 100644
--- a/source4/torture/rpc/drsuapi.c
+++ b/source4/torture/rpc/drsuapi.c
@@ -25,46 +25,46 @@
#define TEST_MACHINE_NAME "torturetest"
-static BOOL test_Bind(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
- struct policy_handle *handle)
+static BOOL test_DsBind(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
+ struct policy_handle *bind_handle)
{
NTSTATUS status;
- struct drsuapi_Bind r;
+ struct drsuapi_DsBind r;
BOOL ret = True;
ZERO_STRUCT(r);
- r.out.handle = handle;
+ r.out.bind_handle = bind_handle;
- status = dcerpc_drsuapi_Bind(p, mem_ctx, &r);
+ status = dcerpc_drsuapi_DsBind(p, mem_ctx, &r);
if (!NT_STATUS_IS_OK(status)) {
const char *errstr = nt_errstr(status);
if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) {
errstr = dcerpc_errstr(mem_ctx, p->last_fault_code);
}
- printf("drsuapi_Bind level failed - %s\n", errstr);
+ printf("drsuapi_DsBind failed - %s\n", errstr);
ret = False;
}
return ret;
}
-static BOOL test_Unbind(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
- struct policy_handle *handle)
+static BOOL test_DsUnbind(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
+ struct policy_handle *bind_handle)
{
NTSTATUS status;
- struct drsuapi_Unbind r;
+ struct drsuapi_DsUnbind r;
BOOL ret = True;
- r.in.handle = handle;
- r.out.handle = handle;
+ r.in.bind_handle = bind_handle;
+ r.out.bind_handle = bind_handle;
- status = dcerpc_drsuapi_Unbind(p, mem_ctx, &r);
+ status = dcerpc_drsuapi_DsUnbind(p, mem_ctx, &r);
if (!NT_STATUS_IS_OK(status)) {
const char *errstr = nt_errstr(status);
if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) {
errstr = dcerpc_errstr(mem_ctx, p->last_fault_code);
}
- printf("drsuapi_Unbind level failed - %s\n", errstr);
+ printf("drsuapi_DsUnbind failed - %s\n", errstr);
ret = False;
}
@@ -77,7 +77,7 @@ BOOL torture_rpc_drsuapi(int dummy)
struct dcerpc_pipe *p;
TALLOC_CTX *mem_ctx;
BOOL ret = True;
- struct policy_handle handle;
+ struct policy_handle bind_handle;
status = torture_rpc_connection(&p,
DCERPC_DRSUAPI_NAME,
@@ -91,11 +91,11 @@ BOOL torture_rpc_drsuapi(int dummy)
mem_ctx = talloc_init("torture_rpc_drsuapi");
- if (!test_Bind(p, mem_ctx, &handle)) {
+ if (!test_DsBind(p, mem_ctx, &bind_handle)) {
ret = False;
}
- if (!test_Unbind(p, mem_ctx, &handle)) {
+ if (!test_DsUnbind(p, mem_ctx, &bind_handle)) {
ret = False;
}