1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

43 Commits

Author SHA1 Message Date
Andrew Bartlett
9c8483dd12 r9878: This is getting a bit out of control, but a few more tests.
Andrew Bartlett
(This used to be commit a6597181f62e5b0ec95232a2dd69b5d85de845b8)
2007-10-10 13:36:19 -05:00
Andrew Bartlett
cf9b91668a r9861: I need to convert this to table-driven, but anyway...
More CrackNames testing

Andrew Bartlett
(This used to be commit 0913dec6a98e735e5e3157a2fceec94f57dd706c)
2007-10-10 13:36:18 -05:00
Andrew Bartlett
24dd21c498 r9778: Test for particular error returns, rather than just OK/not OK.
Andrew Bartlett
(This used to be commit fccbc15555871059e62bf720f115b2307a171667)
2007-10-10 13:35:00 -05:00
Andrew Bartlett
4b94118968 r9733: Test conversion from known sids in CrackNames.
Andrew Bartlett
(This used to be commit ad60d4571568d5b3edd98199462812a2f30c36cd)
2007-10-10 13:34:55 -05:00
Andrew Bartlett
1a316fd8c5 r9727: A simplier test I can aim at passing when I get the cracknames code done.
Andrew Bartlett
(This used to be commit b1b0e26e537677793a92af02464ff1e83fce9610)
2007-10-10 13:34:53 -05:00
Andrew Bartlett
69578c8b8c r9547: A pile more completeness testing for DsCrackNames.
Andrew Bartlett
(This used to be commit 01c4a970ec22b3915b8017da018bd500b4fffcbc)
2007-10-10 13:34:26 -05:00
Andrew Bartlett
42d692efe7 r9516: Try a full-on matrix test of all the combinations in DRSUAPI
CrackNames.

Andrew Bartlett
(This used to be commit a82a419579872fc78b02c29972eaf55da22088c1)
2007-10-10 13:34:25 -05:00
Stefan Metzmacher
64ad915111 r6109: nicer way to handle compression in the torture test
metze
(This used to be commit a3cec189e1f5d137ba2f2829def03b060b59f0e2)
2007-10-10 13:11:19 -05:00
Stefan Metzmacher
3ec2c008b8 r6000: add some notes about the cases where compression (or what ever this is)
is used, in the reply.

metze
(This used to be commit 618dadb7ef092af0f2c13c2e67874041f54f4e98)
2007-10-10 13:11:14 -05:00
Stefan Metzmacher
220f82e570 r5999: ups, remove the testvalue that I used against my w2k3 server
metze
(This used to be commit 3d3e09af16c4f9a6bc8f6ae615f744a04f352ed0)
2007-10-10 13:11:14 -05:00
Stefan Metzmacher
01ab1128ce r5998: I was wrong with the highwater mark...
I think I now understand how it works:-)

metze
(This used to be commit f8add2e66a56896d9bb18991091e1b17c29910b1)
2007-10-10 13:11:14 -05:00
Stefan Metzmacher
1bb3e99d06 r5949: give things more meaning, and reuse structs where it is possible
to make things more clear

metze
(This used to be commit adefeeb4f362dba06cddacf6f58194ef1f967ec9)
2007-10-10 13:11:11 -05:00
Andrew Bartlett
645711c602 r5941: Commit this patch much earlier than I would normally prefer, but metze needs a working tree...
The main volume of this patch was what I started working on today:
 - Cleans up memory handling around DCE/RPC pipes, to have a parent talloc context.
 - Uses sepereate inner loops for some of the DCE/RPC tests

The other and more important part of this patch fixes issues
surrounding the new credentials framwork:

This makes the struct cli_credentials always a talloc() structure,
rather than on the stack.  Parts of the cli_credentials code already
assumed this.

There were other issues, particularly in the DCERPC over SMB handling,
as well as little things that had to be tidied up before test_w2k3.sh
would start to pass.

Andrew Bartlett
(This used to be commit 0453f9d05d2e336fba1f85dbf2718d01fa2bf778)
2007-10-10 13:11:11 -05:00
Stefan Metzmacher
c638a8380d r5830: start to analyse the attribute values, depending on the attribute type
metze
(This used to be commit 63229b9503950847fbecd6ec22171d8c18d7ac91)
2007-10-10 13:11:05 -05:00
Stefan Metzmacher
cead12981f r5799: more DsGetNCChanges updates, I'm starting to understand it...
also add a really simple torture test for DsGetNCChanges

metze
(This used to be commit bcde67a7eff9ad82919e90fd64c02a17610c6f0e)
2007-10-10 13:11:04 -05:00
Stefan Metzmacher
4b83366b6c r5742: - add torture test and idl for DsReplicaUpdateRefs()
(the torture test currently only tests if the idl is correct)

- add start for idl for DsGetNCChanges()
  (if someone didn't noticed the current ethereal trunk code can
   successful decrypt DCERPC and LDAP gsskrb5 encrypted blobs,
   when you provide a keytab and have compiled against heimdal :-)

- add a view bitmaps and enum's for better debugging

metze
(This used to be commit cf7c1352ab2857b80256e02f70ab3fbd5177d596)
2007-10-10 13:11:01 -05:00
Andrew Tridgell
75ddf59ea1 r5308: trimmed back a lot of the old macros from smb_macros.h
(This used to be commit bf43c9bdcf9e654d123f6a2b29feb9189ca9e561)
2007-10-10 13:09:40 -05:00
Andrew Tridgell
759da3b915 r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
large commit. I thought this was worthwhile to get done for
consistency.
(This used to be commit ec32b22ed5ec224f6324f5e069d15e92e38e15c0)
2007-10-10 13:09:15 -05:00
Andrew Tridgell
3dd17f1288 r5034: - added a type mapping function in pidl, so the type names in our IDL
files don't need to match the type names in the generated headers

- with this type mapping we no longer need definitions for the
  deprecated "int32", "uint8" etc form of types. We can now force
  everyone to use the standard types int32_t, uint8_t etc.

- fixed all the code that used the deprecated types

- converted the IDL types "int64" and "uint64" to "dlong" and
  "udlong". These are the 4 byte aligned 64 bit integers that
  Microsoft internally define as two 32 bit integers in a
  structure. After discussions with Ronnie Sahlberg we decided that
  calling these "int64" was confusing, as it implied a true 8 byte
  aligned type

- fixed all the cases where we incorrectly used things like
  "NTTIME_hyper" in our C code. The generated API now uses a NTTIME for
  those. The fact that it is hyper-aligned on the wire is not relevant
  to the API, and should remain just a IDL property
(This used to be commit f86521677d7ff16bdc4815f9524e5286026f10f3)
2007-10-10 13:09:15 -05:00
Stefan Metzmacher
00c7f9eed8 r4422: make lp_set_cmdline("torture:dangerous", "Yes") a bool parameter
metze
(This used to be commit 19482a2245abbf9154423ca8997957b56333fba2)
2007-10-10 13:07:47 -05:00
Stefan Metzmacher
3483fb70e9 r4180: use the same syntax as the other torture tests
metze
(This used to be commit 00395ffcc3cc94216619ca827ff6a09b0cc28de1)
2007-10-10 13:07:23 -05:00
Stefan Metzmacher
15581d3e1e r4179: - nicer code layout
- and disable DsReplicaSync by default it kill lsass.exe
  on my w2k box

metze
(This used to be commit 8373b2d4c7decd49a361637e03b24b311aed302c)
2007-10-10 13:07:23 -05:00
Stefan Metzmacher
985e86b04d r4176: I just remeber that I have already implement STR_CONFORMANT
so use it in DsReplicaSync()

metze
(This used to be commit ca610da1fc3c059d35e17238e8cac5e5b38790c3)
2007-10-10 13:07:23 -05:00
Stefan Metzmacher
e08e2645de r4172: commit a DsReplicaSync() torture test
this not make much sense as we don't send the correct nc_name
but it shows that doesn't get a NDR_FAULT anymore,
we just need handle the conformant strings in pidl

metze
(This used to be commit be449f628faf85a163852d18bc724984d3afefd2)
2007-10-10 13:07:22 -05:00
Stefan Metzmacher
57314e0df3 r4087: - add idl and torture tests for drsuapi_DsReplicaGetInfo()
(NOTE: that the drsuapi_DsReplicaObjMetaData2 struct is not corrently parsed yet
 and there're some unknown fields left in someother infotypes)

metze
(This used to be commit 4fd57d5e7cff085a8c003ea82f282e26dc1346d9)
2007-10-10 13:06:25 -05:00
Stefan Metzmacher
2f39a9fe62 r3920: - it seem that we need to send a magic bind_guid in DsBind()
to make DsWriteAccountSpn() work

- add idl and torture test for DsWriteAccountSpn()

metze
(This used to be commit 625826ad9050c68407ae5e8abfee13699986303c)
2007-10-10 13:06:06 -05:00
Stefan Metzmacher
ded4440335 r3915: a few updates to the DsCrackNames() torture test
metze
(This used to be commit 62d26e0b91703d667e94d016e7943b6883130579)
2007-10-10 13:06:05 -05:00
Stefan Metzmacher
e0e6e0f99d r3512: - support DsCrackName GUID strings ('{faedf4f9-0de8-4582-b8b6-c475efefbe5a}')
- resolve the GUID's we got in DsGetDomainControllerInfo in the DsCrackNames test

metze
(This used to be commit f6310695821a7e750dd37936a6145232d81ab413)
2007-10-10 13:05:23 -05:00
Andrew Tridgell
90067934cd r3428: switched to using minimal includes for the auto-generated RPC code.
The thing that finally convinced me that minimal includes was worth
pursuing for rpc was a compiler (tcc) that failed to build Samba due
to reaching internal limits of the size of include files. Also the
fact that includes.h.gch was 16MB, which really seems excessive. This
patch brings it back to 12M, which is still too large, but
better. Note that this patch speeds up compile times for both the pch
and non-pch case.

This change also includes the addition iof a "depends()" option in our
IDL files, allowing you to specify that one IDL file depends on
another. This capability was needed for the auto-includes generation.
(This used to be commit b8f5fa8ac8e8725f3d321004f0aedf4246fc6b49)
2007-10-10 13:05:09 -05:00
Andrew Tridgell
ba6d5fcb97 r3324: made the smbtorture code completely warning free
(This used to be commit 7067bb9b52223cafa28470f264f0b60646a07a01)
2007-10-10 13:04:55 -05:00
Stefan Metzmacher
1890e6a659 r2992: drsuapi uses WERROR not NTSTATUS
metze
(This used to be commit 757f67c08b0b1309d8a0b900539111c7bc430b0e)
2007-10-10 12:59:55 -05:00
Stefan Metzmacher
f4e4989cb7 r2991: add drsuapi_DsGetDomainControllerInfo() idl and torture test
metze
(This used to be commit 98ca7640c59aa8694abde03f5661b8908cf088bb)
2007-10-10 12:59:55 -05:00
Stefan Metzmacher
20ed511c1b r2971: fix DsBind idl
metze
(This used to be commit 9e50b3214b9de84811640296c19d6068936dfd54)
2007-10-10 12:59:53 -05:00
Stefan Metzmacher
64344b88d1 r2970: - give somefields names and typdef enums for the possible values
- do more crackname tests in the torture test

- move server code for cracknames to a different file

metze
(This used to be commit 18050ea6037b3c0c7cfe975eb9c872368b9e3328)
2007-10-10 12:59:53 -05:00
Stefan Metzmacher
78e29c0491 r2952: add idl and torture test for DsCrackNames
(I need to find out what the fields mean but it works)

metze
(This used to be commit eff51fc623f2e7b57e7e53eb81760684815db2f4)
2007-10-10 12:59:51 -05:00
Stefan Metzmacher
594082233f r2888: - add 'Ds' prefix to Bind and Unbind call on drsuapi
- rename handle -> bind_handle

- change function types to NTSTATUS

metze
(This used to be commit de73676342be8dbf39df8d3fe68817932ee71ccb)
2007-10-10 12:59:42 -05:00
Stefan Metzmacher
8f85b3f771 r2442: remove unused event_loop_once() call
metze
(This used to be commit 3cd63030b1433ddc3ae89e2f45c6f7a27b7d1756)
2007-10-10 12:58:53 -05:00
Stefan Metzmacher
7b65585eed r2387: fix segfault
seems that [in,out,ref] vars should be initialize
the [in] and [out] part

metze
(This used to be commit 47e613a5a1063d8e93e831252db03f19cdb08590)
2007-10-10 12:58:47 -05:00
Andrew Tridgell
df2ed66bb0 r2382: considerably improved the Bind and Unbind IDL and test code. We can
now do these two calls successfully against w2k3.

note that you must use ncacn_ip_tcp, and must enable dcerpc sealing,
otherwise w2k3 refuses the first DRSUAPI call.
(This used to be commit 7d3e34742277f264e41739721dbf08036eebb598)
2007-10-10 12:58:46 -05:00
Andrew Tridgell
e7f36ff1a5 r2100: rework the dcerpc client side library so that it is async. We now
generate a separate *_send() async function for every RPC call, and
there is a single dcerpc_ndr_request_recv() call that processes the
receive side of any rpc call. The caller can use
dcerpc_event_context() to get a pointer to the event context for the
pipe so that events can be waited for asynchronously.

The only part that remains synchronous is the initial bind
calls. These could also be made async if necessary, although I suspect
most applications won't need them to be.
(This used to be commit f5d004d8eb8c76c03342cace1976b27266cfa1f0)
2007-10-10 12:58:24 -05:00
Stefan Metzmacher
6766809ba8 r1961: print out the dcerpc fault code, when we got NT_STATUS_NET_WRITE_FAULT
(this need to be done more generic for all dcerpc calls,
 but for now I just need it in this 2 places)

metze
(This used to be commit d965f84f69ada2a10e9159aa1743c0bee7790488)
2007-10-10 12:58:13 -05:00
Stefan Metzmacher
a0cb701b6f r1649: do a join as dc and run this test as the machine account
metze
(This used to be commit 59de2b1f528fb82fbfcf9c3783dd733a36d3fb6c)
2007-10-10 12:57:47 -05:00
Stefan Metzmacher
bfd8bded8e r1481: add idl file and torture test dummies
for DRSUapi (the Active Directory Replication Protocol)

I'll try to fill the idl file as part of a study project
together with some other students...

metze
(This used to be commit 3fc9abcad712c4cc5c9879df0acaa5a19a3d8718)
2007-10-10 12:57:34 -05:00