diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-08-29 04:15:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:34:53 -0500 |
commit | 1a316fd8c50e501b5d69bb47ff5d1d483b02b04e (patch) | |
tree | 6d918494b792378aae795ecdc9aad101b63d9529 /source4/torture/rpc | |
parent | 14ebeffc463426b969acfb611033ff57a18916d6 (diff) | |
download | samba-1a316fd8c50e501b5d69bb47ff5d1d483b02b04e.tar.gz samba-1a316fd8c50e501b5d69bb47ff5d1d483b02b04e.tar.bz2 samba-1a316fd8c50e501b5d69bb47ff5d1d483b02b04e.zip |
r9727: A simplier test I can aim at passing when I get the cracknames code done.
Andrew Bartlett
(This used to be commit b1b0e26e537677793a92af02464ff1e83fce9610)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/drsuapi.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/source4/torture/rpc/drsuapi.c b/source4/torture/rpc/drsuapi.c index f4c608eb8c..4e72a0f9b3 100644 --- a/source4/torture/rpc/drsuapi.c +++ b/source4/torture/rpc/drsuapi.c @@ -1306,3 +1306,40 @@ BOOL torture_rpc_drsuapi(void) return ret; } + +BOOL torture_rpc_drsuapi_cracknames(void) +{ + NTSTATUS status; + struct dcerpc_pipe *p; + TALLOC_CTX *mem_ctx; + BOOL ret = True; + struct DsPrivate priv; + + mem_ctx = talloc_init("torture_rpc_drsuapi"); + + status = torture_rpc_connection(mem_ctx, + &p, + DCERPC_DRSUAPI_NAME, + DCERPC_DRSUAPI_UUID, + DCERPC_DRSUAPI_VERSION); + if (!NT_STATUS_IS_OK(status)) { + talloc_free(mem_ctx); + return False; + } + + printf("Connected to DRAUAPI pipe\n"); + + ZERO_STRUCT(priv); + + ret &= test_DsBind(p, mem_ctx, &priv); + + ret &= test_DsGetDCInfo(p, mem_ctx, &priv); + + ret &= test_DsCrackNames(p, mem_ctx, &priv); + + ret &= test_DsUnbind(p, mem_ctx, &priv); + + talloc_free(mem_ctx); + + return ret; +} |