summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r17988: Add 'not for Samba4' hacks into the RPC-NETLOGON torture test.Andrew Bartlett1-0/+56
Andrew Bartlett (This used to be commit 2aa0e6a1bf977d60a14314d5d82d176824751d00)
2007-10-10r17956: LSA Cleanup!Andrew Bartlett2-15/+97
This commit cleans up a number of aspects of the LSA interface. Firstly, we do 2 simple searches on opening the LSA policy, to obtain the basic information we need. This also avoids us searching for dnsDomain (an invented attribute). While I was at it, I added and tested new LSA calls, including the enumTrustedDomainsEx call. I have also merged the identical structures lsa_DomainInformation and lsa_DomainList. Also in this commit: Fix netlogon use of uninitialised variables. Andrew Bartlett (This used to be commit 3f3fa7f466df56612064029143fbae8effb668aa)
2007-10-10r17954: Avoid including \n in error strings (left over from DEBUG() conversion).Andrew Bartlett1-2/+2
Make it easier to debug CrackNames failures. Andrew Bartlett (This used to be commit 5dd07074db0b25ea2e929bbdcf89f26e3665bd1c)
2007-10-10r17930: Merge noinclude branch:Jelmer Vernooij4-4/+1
* Move dlinklist.h, smb.h to subsystem-specific directories * Clean up ads.h and move what is left of it to dsdb/ (only place where it's used) (This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
2007-10-10r17827: Fix an error messageVolker Lendecke1-2/+2
(This used to be commit 4242309d54d201b35e9cc96c0359ded64cf7485a)
2007-10-10r17826: Add line numbers to the d_printfsVolker Lendecke1-19/+28
(This used to be commit 8df16dce4d67c17a24aba934f0d656aa5670e539)
2007-10-10r17787: ifdef out unused macros and generate a smb_panic()Stefan Metzmacher1-2/+24
when the wrong macro is used on a field. metze (This used to be commit dd0f692d19416c82f237661710b814ba20163605)
2007-10-10r17624: Samba3 does not yet do getprinterinfo level 6Volker Lendecke1-0/+5
(This used to be commit 9455b0340f634afa25a5af5ed4ea385212cf95a7)
2007-10-10r17442: print out credentials on the "secret" objectClass and "trustedDomain"Stefan Metzmacher1-0/+18
objectclass metze (This used to be commit af1efa0c790a86f68bd7f761b22478895bfdaaea)
2007-10-10r17256: fix 2 crash bugs, which are introduced by making parametersStefan Metzmacher1-0/+3
ref pointers! I'm sure there're more places and more care is needed when idl files are changed. Hopefully testing against windows in the build farm find such bugs in future... Why is in the client library this no more possible: NTSTATUS foo([in,out,ref] uint8 *foo); and then just r.in.foo = &foo; status = dcerpc_foo(p, mem_ctx, &r); and r.out.foo will set to r.in.foo via pidl magic, that worked some time ago... metze (This used to be commit d8952f00c77ba59e0806b0de802ac28ac977779c)
2007-10-10r17205: Even if this makes me look foolish, at least start to scratch on the ↵Volker Lendecke2-24/+308
surface of spoolss. If snum is to be removed, then we should make at least the attempt to walk parts of the code before and after the changes. This walks GetPrinterInfo level 0-7. Volker (This used to be commit 0c05f571a0eda2412896f340b7c751cf7cbdbd2a)
2007-10-10r17187: Beginnings of a little lsa walker for Samba3, if only to prevent theVolker Lendecke2-0/+78
regression we had in 3.0.23... Volker (This used to be commit 0236f3b41a4f9015f8551ffb67db59fa48212bf5)
2007-10-10r17104: Rename function parameters and variables to avoid shadowing globalAndrew Bartlett1-10/+10
declarations. Andrew Bartlett (This used to be commit 15dd43b77328c4d56438bdb34b3e8139c5a83878)
2007-10-10r17085: reuse the existing sec_desc_buf structStefan Metzmacher1-1/+1
metze (This used to be commit 22463cbcdd159657d04657071451738e768d0b2a)
2007-10-10r17082: Add a test that walks and tests denying tconX access via the share ↵Volker Lendecke3-19/+293
security descriptor. This is something that W2k3 does _not_ pass and probably is not expected to, it seems the don't check access at tconX time. Thanks to metze for the hint how in the srvsvc_NetShareInfo1501 struct the length of the sd can be encoded in idl. As metze says, there's probably more to the share secdesc, this needs more testing. This one is here to walk the samba3 code. Volker (This used to be commit 67185508229a8d7f144c22cb194f573c932d6de5)
2007-10-10r17074: Extend the rpc-samba3-getusername test: This creates a normal user ↵Volker Lendecke1-49/+275
and we check if we can actually see the user SID on a fresh sessionsetup. This also gives us the simple create_user, which can lead to more fun tests :-) Volker (This used to be commit 92afe1156915ab6c7e21380000bdad93414d0829)
2007-10-10r17069: Make us pass RPC-NETLOGSAMBA3 against w2k3 againVolker Lendecke1-2/+5
(This used to be commit 963878a5f394234229af5835b2ccdd6d4b369466)
2007-10-10r17065: NT4 does not like "0" here, W2k3 does not care...Volker Lendecke1-1/+1
(This used to be commit 4f13b7d53c0f177cfd2a0d00ee14de3fce12d9bf)
2007-10-10r17064: lsa_GetUserName needs to return the name for S-1-5-7 on an anonymous ↵Volker Lendecke2-23/+265
login. Found that because I want to play around with setsharesecurity, for this I need the "whoami" call figuring out the SID of the currently connected user. Not activating this test yet until the build farm has picked up the new samba4 revision. Volker (This used to be commit 5603db30e7dfbb3d5c4599d36a50007a2b3cac75)
2007-10-10r16958: We also do level 1501 on NetShareGetInfoVolker Lendecke1-1/+1
(This used to be commit 656d8337c474374014ac681914fa761916a9bc3c)
2007-10-10r16956: Walk some of the samba3 srvsvc codeVolker Lendecke2-1/+122
(This used to be commit bd84fde777366899391d122e0aa5034ba0b80037)
2007-10-10r16860: Fix (and reactivate) the RPC-SAMR test. We need to allow these sidsAndrew Bartlett1-14/+60
to be created as foreign, even if they are in a local domain. Also we do need the user to exist for the life of the test, as we add it to a group. Andrew Bartlett (This used to be commit ae470ff7014e52b55d88e9fe12e2322e069daf9d)
2007-10-10r16851: Put a clue in as to which domain might have failed, due to the lengthAndrew Bartlett1-0/+4
of this test. Andrew Bartlett (This used to be commit b4d75f01d9cb2d1c9d5facfd5eb39c8a062886d4)
2007-10-10r16847: Add the parts of the SAMR test that pass back into 'make test'.Andrew Bartlett2-162/+240
I still need to figure out what causes the rest to fail... Andrew Bartlett (This used to be commit aa34bd46cb1446b9fb6fd8f1b8ffca5f81b3c052)
2007-10-10r16827: Factor out some code into common samdb functions:Andrew Bartlett1-6/+31
- creation of ForeignSecurityPrincipals - template duplication code Rework much of the LSA server to pass the RPC-LSA test. Much of the server code was untested. In implementing the LSA Accounts feature, I have opted to have it only create entires when privilages are applied, and not to delete entries, but to delete the privilages. We skip some parts of the test, but it is much better than not testing it at all. Andrew Bartlett (This used to be commit 10eeea6da465564ed9f785d06e2d2ed06cfe29a4)
2007-10-10r16826: Ensure we don't segfault if the remote server fails to set a passwordAndrew Bartlett1-5/+34
in RPC-SAMR test. Andrew Bartlett (This used to be commit 08ec74d620ffe613655f28d002e60ca8201fadd9)
2007-10-10r16794: Make Samba4 pass it's own RPC-SAMR test, at least in part. There areAndrew Bartlett1-12/+67
still a couple of unimplemented functions, but this is far better than not testing this at all. In particular, this exercises the password_hash module. Specific changes: - Add support for SetDomainInfo - Add many more info levels to QueryDomainInfo - Set a domain comment in RPC-SAMR, and verify it is kept - Refactor QueryUserInfo not to always serach for all attributes - Add QueryDiplayInfo3 and QueryDomainInfo2 as aliased calls - Make OemChangePassword2 search under the samdb_base_dn(), so it finds the user when partitions are active. - Skip SetSecurity, DisplayIndex, MemberAttributesOfGroup and 'Multiple' alias operations in RPC-SAMR for Samba4 - Add RPC-SAMR as a 'slow' RPC test (it is quite slow) Andrew Bartlett (This used to be commit 01d25c9d6ca8d036d40040e5ee87a330e5b84d55)
2007-10-10r16770: Get closer to having Samba4 pass some of the RPC-SAMR test, byAndrew Bartlett1-1/+18
skipping some checks. These should be removed, and the code fixed, but currently we are loosing quality because the test isn't run by default. Andrew Bartlett (This used to be commit 1306f60c97562a71ae15f0ab257ddcd5e0af36d4)
2007-10-10r16741: add a RPC-LSA-GETUSER test,Stefan Metzmacher2-9/+32
which is very useful for analysing a windows machine remotely with this I found that vista-beta2 doesn't have an 'administrator' account and mapps any not known user to MACHINENAME\Guest metze (This used to be commit 97ae93627527f65b6ecded9884a26d4cffa1409d)
2007-10-10r16331: Split out registering of multi fn tests, fix typo in name of pac suite.Jelmer Vernooij1-40/+40
(This used to be commit 9e8574ac6cd38d1ff388f0c9ff37d86b316a431e)
2007-10-10r16304: Improve testing UI API. This now allows registering the fullJelmer Vernooij1-27/+9
test suite tree, looks a bit more like other unit testing API's, fixes some memory responsibility issues, introduces testcases, and removes the need for tests to call torture_ok(). (This used to be commit 0445b1a56a02552f895f400960b9ced39244a144)
2007-10-10r16140: How on earth does this work on most build farm machines.... ?Volker Lendecke1-1/+1
(This used to be commit f8bae84e89bb2fe8deea7795ad59fbefa9c98e79)
2007-10-10r16123: Samba3 in the buildfarm will happily create (faked(!!)) users ↵Volker Lendecke1-4/+10
anonymously. Disable that test for now. (This used to be commit 9015713d62558ba76d693c5e8a4c23e3fd3ccab5)
2007-10-10r16059: Remove accidential commitVolker Lendecke1-1/+0
(This used to be commit e980066111cf442102b849b04a411c3f2df8e05b)
2007-10-10r16058: Test a Join using SetUserInfo level 25, as XP does if the user did notVolker Lendecke1-13/+86
exist. Samba3 right now fails to transfer the acb_info in the info21 sub-part to the passdb backend, rendering the workstation locked. Thanks to Tom Bork for finding this one. Now working on a fix :-) Volker (This used to be commit 6613093e69f273f32bdafde0d0c8f122e8466dc0)
2007-10-10r16045: RPC-SAMBA3SESSIONKEY tests the different variants of joins ↵Volker Lendecke2-10/+154
(anon/auth smb, anon/auth bind). Jeremy, this is the little test I promised to you that shows the places where we need the SystemLibraryDTC key. Volker (This used to be commit 9164c24d8741384ff5173fbf6cf3337f42d80e70)
2007-10-10r16044: Create a samba3 specific file in torture/rpc. The tests in there surviveVolker Lendecke3-127/+994
against W2k3, but they are designed to walk existing Samba3 code paths. It might be possible that I add something like that to other subdirs like raw/. RPC-BINDSAMBA3 excercises the bind variants that samba3 supports right now. RPC-NETLOGSAMBA3 does a samba3 style join, does some schannel-protected netlogon operations and leaves again. Samba3 right now does not survive this, I'm about to fix it soon. I'll also post a *VERY* dirty hack (fake users in sys_getpwnam()) to be able to run this in the build farm. Volker (This used to be commit 60b45bf8b6d0d2bb216e319891d50d0e07ab3010)
2007-10-10r15950: another printf() crash on solarisAndrew Tridgell1-84/+84
(This used to be commit 5a065b9225f7a7fe221c61e26a08abc0d29f3bb9)
2007-10-10r15930: Attempt to fix the buildfarm segfaults -- thanks Tridge for the hintsVolker Lendecke1-0/+4
(This used to be commit e363020115fc17caee6c3230d46fff41670a27d4)
2007-10-10r15916: Modify RPC-AUTHCONTEXT so that it can be anabled in samba3 make testVolker Lendecke1-1/+1
(This used to be commit 4298fde656ac72a2f0fae9f25e3b5b1f3948f8f5)
2007-10-10r15912: Run an rpc request with an invalid uid and make sure ↵Volker Lendecke2-0/+128
NT_STATUS_INVALID_HANDLE is returned. Volker (This used to be commit 0ef6ecda1dd009174c2c684a1dd3adabf4772daf)
2007-10-10r15902: more test code that should be using d_printf()Andrew Tridgell1-3/+3
(This used to be commit b52adaa04564afb7133f442b6f997d99b74dcaa3)
2007-10-10r15898: use d_printf() in some more places to fix more torture seg faults onAndrew Tridgell1-7/+7
solaris (This used to be commit dd1ef82560c62c8c10e9d43b8d1d68512fe0aae5)
2007-10-10r15779: Remove keepref from atsvc and efs.Jelmer Vernooij1-4/+4
(This used to be commit b44a8c32d35bcd0dc7339793c34cb84dd6981366)
2007-10-10r15776: Don't generate ref pointers in Samba4-generated code. There is no pointJelmer Vernooij1-1/+1
in having pointers for outgoing data when you can already modify the top-level element. This can be overridden (temporarily) by specifying the new "keepref" attribute. Once we've removed keepref from all IDL files, I'll remove this attribute as well. (This used to be commit bdc6dd37503ced8322a671d225122ccffbb8bfec)
2007-10-10r15507: if we change the idl, we need to change the calling code too:-)Stefan Metzmacher1-3/+3
is it possible to run the RPC-UNIXINFO test in samba4's make test? metze (This used to be commit a00063eeb308dae8396e3b79ed5dd7884652f1ba)
2007-10-10r15504: Revert -r 15500 and -r 15503 until I'm awake, and can get my headAndrew Bartlett1-1/+1
around the mess that is composite functions... Async might be all the rage, but it's bloody painful to debug. Andrew Bartlett (This used to be commit 756e1dad7ce54b83f8170db3434bfcfc4afe7e65)
2007-10-10r15502: Typo fix.Rafal Szczesniak1-1/+1
rafal (This used to be commit f076041ff16cbc3f58d0d6244fc0857b34533dda)
2007-10-10r15500: Add support for interactive prompting on bad passwords to the RPC ↵Andrew Bartlett1-1/+1
libraries. This support requires that the bind_ack and alter_ack recv functions also be send the DCE/RPC fault. This would be best done by having the ack run as a normal RPC reply callback, but this isn't easily possible for now. Andrew Bartlett (This used to be commit be6dde22fe728d64d47875699d3421c6d8d872a4)
2007-10-10r15499: This test can't run if the remote server won't let us open a policy ↵Andrew Bartlett1-1/+4
handle. Andrew Bartlett (This used to be commit ca0ffb1218f3c2482b6b04463e627accd03d8cf9)