mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
r6426: DCE/RPC bind string parsing is not needed anymore, as we use
lp_workgroup parameter as domain name to operate on. rafal (This used to be commit ea251d4f79c96145b4c14074d258aeb07c742f41)
This commit is contained in:
parent
0fc124d714
commit
f531686dc4
@ -225,17 +225,8 @@ BOOL torture_userinfo(void)
|
||||
DCERPC_SAMR_UUID,
|
||||
DCERPC_SAMR_VERSION);
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
return False;
|
||||
}
|
||||
if (!NT_STATUS_IS_OK(status)) return False;
|
||||
|
||||
status = dcerpc_parse_binding(mem_ctx, binding, &b);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
printf("failed to parse dcerpc binding '%s'\n", binding);
|
||||
talloc_free(mem_ctx);
|
||||
ret = False;
|
||||
goto done;
|
||||
}
|
||||
name.string = lp_workgroup();
|
||||
|
||||
if (!test_opendomain(p, mem_ctx, &h, &name, &sid)) {
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "librpc/gen_ndr/ndr_samr.h"
|
||||
#include "libnet/composite.h"
|
||||
|
||||
#define TEST_USERNAME "libnetuserinfotest"
|
||||
#define TEST_USERNAME "libnetusermantest"
|
||||
|
||||
|
||||
static BOOL test_opendomain(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
|
||||
@ -235,17 +235,7 @@ BOOL torture_useradd(void)
|
||||
DCERPC_SAMR_UUID,
|
||||
DCERPC_SAMR_VERSION);
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
return False;
|
||||
}
|
||||
|
||||
status = dcerpc_parse_binding(mem_ctx, binding, &b);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
printf("failed to parse dcerpc binding '%s'\n", binding);
|
||||
talloc_free(mem_ctx);
|
||||
ret = False;
|
||||
goto done;
|
||||
}
|
||||
if (!NT_STATUS_IS_OK(status)) return False;
|
||||
|
||||
domain_name.string = lp_workgroup();
|
||||
if (!test_opendomain(p, mem_ctx, &h, &domain_name)) {
|
||||
@ -290,17 +280,7 @@ BOOL torture_userdel(void)
|
||||
DCERPC_SAMR_UUID,
|
||||
DCERPC_SAMR_VERSION);
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
return False;
|
||||
}
|
||||
|
||||
status = dcerpc_parse_binding(mem_ctx, binding, &b);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
printf("failed to parse dcerpc binding '%s'\n", binding);
|
||||
talloc_free(mem_ctx);
|
||||
ret = False;
|
||||
goto done;
|
||||
}
|
||||
if (!NT_STATUS_IS_OK(status)) return False;
|
||||
|
||||
domain_name.string = lp_workgroup();
|
||||
if (!test_opendomain(p, mem_ctx, &h, &domain_name)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user