summaryrefslogtreecommitdiff
path: root/source4/torture
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r1009: Make all users of NT and LM passwords use the samr_Password structure.Andrew Bartlett2-6/+6
This includes the netlogon pipe, for the machine account password change system. Andrew Bartlett (This used to be commit 49d545a82057ee8b60d50aa55e908efe59875150)
2007-10-10r1005: there was one NTLMSSP_STATE left in:-(Stefan Metzmacher1-1/+1
...fix the build metze (This used to be commit 49118189444e020b4d3159b6edbc6f7559dbb1a6)
2007-10-10r995: - renamed many of our crypto routines to use the industry standardAndrew Tridgell2-13/+17
names rather than our crazy naming scheme. So DES is now called des_crypt() rather than smbhash() - added the code from the solution of the ADS crypto challenge that allows Samba to correctly handle a 128 bit session key in all of the netr_ServerAuthenticateX() varients. A huge thanks to Luke Howard from PADL for solving this one! - restructured the server side rpc authentication to allow for other than NTLMSSP sign and seal. This commit just adds the structure, the next commit will add schannel server side support. - added 128 bit session key support to our client side code, and testing against w2k3 with smbtorture. Works well. (This used to be commit 729b2f41c924a0b435d44a14209e6dacc2304cee)
2007-10-10r976: - added -W for workgroup to locktestAndrew Tridgell1-7/+16
- retry connections a few times when reconnecting (This used to be commit d0d0734845e37a2639ade2545bccef1615e17d63)
2007-10-10r963: Tridge, according to ethereal this is an 'Acct Ctrl' field. My tests alsoVolker Lendecke1-1/+1
indicate this although I could not find any consistent pattern. I found this as 'net rpc group list local' in Samba3 sets this to 250 and only gets a fixed, but incomplete list of groups out of W2k3. I tried to correlate the results I got from w2k3 with the LDAP contents of the corresponding entries, but I could not find anything. Ethereal only decodes the lower byte, but to get all it seems necessary to have 0xffff here. If you have time, could you might want to spend some of it decoding the bits for SAMR completeness.... Volker (This used to be commit 74e59c45603a9f897a24e37fc7626cf8ffc81403)
2007-10-10r962: convert 'unsigned' and 'unsigned int' to uint_tStefan Metzmacher10-60/+60
metze (This used to be commit 57151e80eb1090281401930c8fe25b20a8cf3a38)
2007-10-10r961: convert 'uchar' to 'uint8_t'Stefan Metzmacher2-13/+13
metze (This used to be commit 9f914e4af99e18b469d4cf9d8b1514a2bd28ddec)
2007-10-10r960: convert 'unsigned int' to uint_t in the most placesStefan Metzmacher1-5/+5
metze (This used to be commit 18062d2ed9fc9224c43143c10efbf2f6f1f5bbe0)
2007-10-10r950: - added netr_ServerAuthenticate3(). This is used by WinXP clients who ↵Andrew Tridgell1-10/+93
try to login to Samba4, as WinXP sees us as an ADS server. Unfortunately WinXP also uses a set of negotiate_flags that we don't support yet. Some crypto work needed. (This used to be commit 2d740b65706fb5b4ebc138587472a885d680517f)
2007-10-10r946: Updated attribute only oplock tester to cover more cases.Jeremy Allison1-5/+37
Jeremy. (This used to be commit 6c9d32173b26353e8ae00f7f6b666290651883e6)
2007-10-10r943: change samba4 to use 'uint8_t' instead of 'unsigned char'Stefan Metzmacher4-8/+8
metze (This used to be commit b5378803fdcb3b3afe7c2932a38828e83470f61a)
2007-10-10r937: - added a simple QuerySecurity implementation in samr serverAndrew Tridgell2-0/+32
- moved some sec desc defines into misc.idl - fixed pw_len field in UserInfo26 - made some pipes available on TCP - added netr_DsrEnumerateDomainTrusts() to netlogon - added templates for remaining netlogon IDL calls (from ethereal) - added a unistr_noterm vs unistr error detector in ndr basic decoder - added torture test for netr_DsrEnumerateDomainTrusts() (This used to be commit ae5a5113fb83640dcb9ae4642c1b9eaf28487956)
2007-10-10r919: - added lsa_QueryInfoPolicy2() to IDL, test suite and serverAndrew Tridgell1-0/+38
- added lsa_OpenPolicy2() to server - added guid handling in samdb - added a couple more info policy levels in lsa server - added some DNS info in the provisioning template and script With the above changes WinXP professional can join a Samba4 domain (This used to be commit d6dca96352144d6061175c964069ed54d942b9c2)
2007-10-10r917: - added the start of a LSA server to samba4.Andrew Tridgell2-12/+13
- added start of QueryDomainInfo in samr server "net rpc info" from samba3 now works against a samba4 server. I suspect join will work fairly soon. (This used to be commit 0a2c6a1062d0e364356853001f5f39bdb542f453)
2007-10-10r902: added torture tests for sending rubbish in the domain name field of ↵Andrew Tridgell1-2/+29
GetDomPwInfo (This used to be commit 00096609978e829b5da36040c15afa087e71eaa5)
2007-10-10r892: Actually add the NTLMSSP self-check torture code this time...Andrew Bartlett3-3/+60
Andrew Bartlett (This used to be commit 9df5cbbd7694202c17a7c47ed0469d6f80412c54)
2007-10-10r890: convert samba4 to use [u]int8_t instead of [u]int8Stefan Metzmacher7-23/+23
metze (This used to be commit 2986c5f08c8f0c26a2ea7b6ce20aae025183109f)
2007-10-10r889: convert samba4 to use [u]int16_t instead of [u]int16Stefan Metzmacher15-73/+73
metze (This used to be commit af6f1f8a01bebbecd99bc8c066519e89966e65e3)
2007-10-10r884: convert samba4 to use [u]int32_t instead of [u]int32Stefan Metzmacher21-131/+131
metze (This used to be commit 0e5517d937a2eb7cf707991d1c7498c1ab456095)
2007-10-10r882: - create TORTURE_AUTH SUBSYSTEMStefan Metzmacher3-3/+15
- fix the build because of the missing torture/ntlmssp.c - this file should go into torture/auth/ ! metze (This used to be commit ad662fddcd1082d040b7c06ce809e0b4c441c1df)
2007-10-10r874: This patch is a pile of work on NTLMSSP:Andrew Bartlett3-4/+7
Samba's NTLMSSP code is now fully talloc based, which should go a long way to cleaning up the memory leaks in this code. This also avoids a lot of extra copies of data, as we now allocate the 'return' blobs on a caller-supplied context. I have also been doing a lot of work towards NTLM2 signing and sealing. I have this working for sealing, but not for the verifier (MD5 integrity check on the stream) which is still incorrect. (I can aim a rpcecho sinkdata from a Win2k3 box to my server, and the data arrives intact, but the signature check fails. It does however match the test values I have...). The new torture test is cludged in - when we get a unit test suite back, I'll happliy put it in the 'right' place.... Andrew Bartlett (This used to be commit 399e2e2b1149b8d1c070aa7f0d5131c0b577d2b9)
2007-10-10r873: converted samba4 to use real 64 bit integers instead ofAndrew Tridgell12-68/+62
structures. This was suggested by metze recently. I checked on the build farm and all the machines we have support 64 bit ints, and support the LL suffix for 64 bit constants. I suspect some won't support strtoll() and related functions, so we will probably need replacements for those. (This used to be commit 9a9244a1c66654c12abe4379661cba83a73c4c21)
2007-10-10r866: convert the rest of the binaries to config.mk filesStefan Metzmacher2-0/+43
metze (This used to be commit 0f8c193ac35572862b0d653dc02a71ebc71e88a8)
2007-10-10r865: Regression test for attribute-only opens not causing an oplock break.Jeremy Allison1-0/+29
Samba3 server used to get this wrong. Jeremy. (This used to be commit 4120b3bdf6668909efa0af97b2c63adea22c35da)
2007-10-10r863: Added test to ensure an open and locked file can be truncated by a ↵Jeremy Allison1-0/+72
second open. This was something the Samba3 server previously got wrong. Jeremy. (This used to be commit 2cb4ed271b87a5c145a5f3f64c7f82c9e73753a1)
2007-10-10r860: convert SUBSYSTEM TORTURE to a config.mk fileStefan Metzmacher2-57/+99
metze (This used to be commit 485eefcc0d0b6f599ec9bbb97d6d86a29dd5b762)
2007-10-10r821: prompt user for password if not given by -U user%passStefan Metzmacher1-3/+15
and not as torture:password in smb.conf metze (This used to be commit 9de377a914292be19cdffd1020d613d50df7f4e6)
2007-10-10r816: - Make use of tridge's new samdb_result_sid_prefix() helper function.Andrew Bartlett1-8/+5
- Remove legacy sid_to_string (which contained a memleak) - Remove some unused parts of lib/util_sid.c Andrew Bartlett (This used to be commit 7c69a85984e47c004ddfd9bb5eadcb3191b56f9d)
2007-10-10r782: added torture test for level 6 logon level in netr_LogonSamLogonAndrew Tridgell1-104/+112
(This used to be commit 770322bfdfad7d7d33de0c5bc95bb0f51f7409c7)
2007-10-10r754: Implement the SetPassword operation on the netlogon pipe.Andrew Bartlett1-0/+2
This involves allowing the password set code in samdb to take an already hashed password, and some fixes to our torture code. Andrew Bartlett (This used to be commit f9f581b5804a20785df06cde157b23c952edc2ce)
2007-10-10r752: Remove debugging hack (make sure the cleanup test account after weAndrew Bartlett1-2/+5
leave) and test that the password change actually worked. Andrew Bartlett (This used to be commit a93c70154ac7126a7d6e638dcfdeef49d2966308)
2007-10-10r743: Start on a NETLOGON server in Samba4.Andrew Bartlett2-18/+27
Currently this only authentiates the machine, not real users. As a consequence of running the Samba4 NETLOGON test against Samba4, I found a number of issues in the SAMR server, which I have addressed. There are more templates in the provison.ldif for this reason. I also added some debug to our credentials code, and fixed some bugs in the auth_sam module. The static buffer in generate_random_string() bit me badly, so I removed it in favor of a talloc based system. Andrew Bartlett (This used to be commit 94624e519b66def97758b8a48a01ffe9029176f0)
2007-10-10r741: Test from Volker in RAW-OPEN for truncating a file containing locks.Jeremy Allison2-1/+109
Also added the same ad-hoc test is LOCK7. Jeremy. (This used to be commit 6cb21ccda3cb420171e2d5afb3842a6be4bd4d18)
2007-10-10r739: Implement GetNumRecords() call from eventlog pipe, including a torture ↵Jelmer Vernooij2-8/+81
test (This used to be commit 6a254e26f17c2b3175023764c02dc73615d585d6)
2007-10-10r719: Follow the trend - remove more unused functions.Andrew Bartlett1-2/+1
Andrew Bartlett (This used to be commit 62eef851fd79b2739b93b4ed7829514a3dcbf1d0)
2007-10-10r713: added a NetShareGetInfo torture test (thanks to abartlet for pointingAndrew Tridgell1-0/+45
out that this was missing) (This used to be commit 00916f236d3437a9080614d20a3ab589be6f9196)
2007-10-10r684: Note the fact that NTLMv2 provides a weath of futher testcases...Andrew Bartlett1-0/+1
Andrew Bartlett (This used to be commit d75558cdcbbb89dbe66287d7461b7abae14a8d36)
2007-10-10r665: merge over the new build system from my tmp branchStefan Metzmacher1-24/+56
to the main SAMBA_4_0 tree. NOTE: that it's not completely ready, but it's functional:-) metze (This used to be commit c78a2ddb28ec50d6570a83b1f66f18a5c3621731)
2007-10-10r623: setUserInfo level 24 (password set) now works in the SAMR server. This ↵Andrew Tridgell1-1/+2
includes all of the password complexity, password history and other password restrictions. (This used to be commit cb070b9084d95cf5178edbef951b75eab62b7220)
2007-10-10r615: Implement samr_OpenGroup, samr_QueryGroupInfo, samr_SetGroupInfo,Volker Lendecke1-0/+4
samr_DeleteDomainGroup. I've added the hidden attribute numMembers that must be maintained by Add/DelGroupMember for the GroupInfoAll query. Volker (This used to be commit 945d7478605c1bd67e4162ebb0635ab7da11faaf)
2007-10-10r613: Fix the RPC-SAMR torture test, for my session_key changes.Andrew Bartlett1-16/+18
Andrew Bartlett (This used to be commit a04b074c049db832f4c02a35d951d40875fce6d1)
2007-10-10r611: Fix breakage from my last commit:Andrew Bartlett1-4/+4
Now that all session keys are DATA_BLOBs, fix the callers. This assumes some things about the behaviour of certain crypto algorithms, without the ability to test it on session keys != 16 bytes in length. We will just need to retest when we get the KRB5 support in (DES keys are 8 bytes). Andrew Bartlett (This used to be commit e4355a7ec1eba92bdecef8cc478272897276dbae)
2007-10-10r610: - Merge the Samba3 'ntlm_auth --diagnostics' testsuite to Samba4.Andrew Bartlett1-55/+657
- This required using NETLOGON_NEG_AUTH2_FLAGS for the SetupCredentials2 negotiation flags, which is what Samba3 does, because otherwise the server uses different crypto. - This tests the returned session keys, which we decrypt. - Update the Samba4 notion of a 'session key' to be a DATA_BLOB in most places. - Fix session key code to return NT_STATUS_NO_SESSION_KEY if none is available. - Remove a useless argument to SMBsesskeygen_ntv1 - move netr_CredentialState from the .idl to the new credentials.h Andrew Bartlett (This used to be commit 44f8b5b53e6abd4de8a676f78d729988fadff320)
2007-10-10r582: added the LMSessKey in SamInfo and SamInfo2, thanks to work by abartletAndrew Tridgell1-14/+18
added test code for SamLogon validation level 2 and 3, so we test both SamInfo and SamInfo2 (This used to be commit 321dbb61cc0743379ceb6b8fff6a0ca37f308bc2)
2007-10-10r577: extended the LookupNames test to check for correct handling of ↵Andrew Tridgell1-5/+21
unmapped names (This used to be commit e3b31625f476cb1b8a4d5003dee2c574582c9b46)
2007-10-10r457: added some more samr tests to help me work out the right error codesAndrew Tridgell1-1/+27
in our new samr server (This used to be commit 0f2503111498e809237e0155962db55dfde8cbfb)
2007-10-10r420: added nicer names for the field bits in userinfo21Andrew Tridgell1-13/+129
added tests for the level 23 and 25 password change methods (This used to be commit d49f7a6a0d1895de3d654a5b46c6aec3a57fde76)
2007-10-10r389: added a test for set user info level 26 (set password extended)Andrew Tridgell1-1/+56
thanks to Luke Howard for this test (This used to be commit 891653e7d40f581016085e2c32e2802eea7e7ade)
2007-10-10r386: Another torture test to survive.Volker Lendecke1-0/+66
Believe it or not, w2k3 returns ERRSRV:ERRbaduid DOS error code if you pass in a wrong vuid. We (Samba 3) currently return NT_STATUS_NETWORK_ACCESS_DENIED. Volker (This used to be commit 37221b81f124887ab3cb652f237067ff4b56151e)
2007-10-10r372: automatically create a fake BDC machine account and delete itAndrew Tridgell2-25/+191
afterwards for the RPC-NETLOGON test. This makes it much simpler to run the test and also means that it doesn't distrurb any existing domain join you might have. (This used to be commit feac996794d5cc16e3612fb2901668a9b1e1d274)