diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-12-02 09:52:15 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-12-02 09:52:15 +0000 |
commit | 9ec42697604b46b7b43919c665e479f105a0226c (patch) | |
tree | 0c5f03cace388170a06bba401eabb32840004939 /source4/torture | |
parent | c290906b3f238ba0246624525046b6cdda214d27 (diff) | |
download | samba-9ec42697604b46b7b43919c665e479f105a0226c.tar.gz samba-9ec42697604b46b7b43919c665e479f105a0226c.tar.bz2 samba-9ec42697604b46b7b43919c665e479f105a0226c.zip |
added netr_AccountDeltas(), which w2k3 gives
"NT_STATUS_NOT_IMPLEMENTED" for
(This used to be commit aaf776a1c134d7b6112932f880e09ba497e8ebcf)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/netlogon.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index 81d9b2cdf9..07776026d0 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -358,6 +358,42 @@ static BOOL test_DatabaseDeltas(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) } +/* + try a netlogon AccountDeltas +*/ +static BOOL test_AccountDeltas(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) +{ + NTSTATUS status; + struct netr_AccountDeltas r; + struct netr_CredentialState creds; + BOOL ret = True; + + if (!test_SetupCredentials(p, mem_ctx, &creds)) { + return False; + } + + r.in.logonserver = talloc_asprintf(mem_ctx, "\\\\%s", dcerpc_server_name(p)); + r.in.computername = lp_netbios_name(); + ZERO_STRUCT(r.in.return_authenticator); + creds_client_authenticator(&creds, &r.in.credential); + ZERO_STRUCT(r.in.uas); + r.in.count=10; + r.in.level=0; + r.in.buffersize=100; + + printf("Testing AccountDeltas\n"); + + /* w2k3 returns "NOT IMPLEMENTED" for this call */ + status = dcerpc_netr_AccountDeltas(p, mem_ctx, &r); + if (!NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED)) { + printf("AccountDeltas - %s\n", nt_errstr(status)); + ret = False; + } + + return ret; +} + + BOOL torture_rpc_netlogon(int dummy) { NTSTATUS status; @@ -377,6 +413,11 @@ BOOL torture_rpc_netlogon(int dummy) p->flags |= DCERPC_DEBUG_PRINT_BOTH; + if (!test_AccountDeltas(p, mem_ctx)) { + ret = False; + } + return ret; + if (!test_LogonUasLogon(p, mem_ctx)) { ret = False; } |