summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/testjoin.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r20115: from Julien Kerihuel <j.kerihuel@openchange.org>, thanks!:Stefan Metzmacher1-4/+14
Here is a patch that adds a torture:dc_binding parametric option to torture_create_testuser in testjoin.c. This patch is used in OpenChange torture tests when the AD is different from the Exchange Server. This generic option could also be used for later 'member server' tests in Samba4. metze (This used to be commit 9ddabfc60e1a4f5e471991253141ce458c9a683d)
2007-10-10r20113: Update the DRSUAPI CrackNames test to explore a few more cases, and inAndrew Bartlett1-0/+18
particular to verify more expected results. Also return more details from the join process. Now we also return the machine account's GUID. Andrew Bartlett (This used to be commit 5b32f102af1fc7acb56bf7eaa40068d60a1ee396)
2007-10-10r20093: some documentation updatesStefan Metzmacher1-3/+8
metze (This used to be commit 314308c0bf8eeb168d59dab2a867e6bf5f51266b)
2007-10-10r20065: make it possible to get the dns domain name and netbios domain nameStefan Metzmacher1-0/+18
of the join account metze (This used to be commit 45da80888f18f0fe10d1aeb9089a695125b184e1)
2007-10-10r20039: things which need to be done for unbecoming a dcStefan Metzmacher1-1/+121
metze (This used to be commit 73f7e2d5b3b3ae767644b96ff9783642aac153d0)
2007-10-10r20038: document first rootdse searchStefan Metzmacher1-0/+35
metze (This used to be commit da6415363b2694961a59385437d34d16a932e77b)
2007-10-10r20002: finish requests on the first LDAP connectionStefan Metzmacher1-2/+48
metze (This used to be commit c5efd061c5457fb4d344daa2e40dada9c0c37e79)
2007-10-10r20000: 20000Stefan Metzmacher1-0/+1
metze (This used to be commit a3202714a34d49af30435dc3d2935e053e141853)
2007-10-10r19999: add section for adding the server objectStefan Metzmacher1-0/+12
metze (This used to be commit f2db31f41dc1727375a560fdc6eaad2c037bf5da)
2007-10-10r19998: add section for finding details about the new_dc server objectStefan Metzmacher1-0/+26
metze (This used to be commit cd534dc93646a5981c4d2f0bc27ba9d3259024eb)
2007-10-10r19997: section about finding the new_dc computer accountStefan Metzmacher1-0/+15
metze (This used to be commit 757ed019c219fd215cae23d80281d0b221e495e1)
2007-10-10r19996: add section about finding site detailsStefan Metzmacher1-0/+26
metze (This used to be commit 500113ca5756933de15537b44ccc834ea32307b3)
2007-10-10r19995: add section about finding details of the RID Manager fSMORoleOwnerStefan Metzmacher1-0/+53
metze (This used to be commit ce671ff6c13e71c5b54ba8f14d81af45a3e796a9)
2007-10-10r19994: complete section about finding details about theStefan Metzmacher1-0/+41
Infrastructure fSMORoleOwner metze (This used to be commit adbff0d696237efac27f260c115678169b8646d8)
2007-10-10r19988: the first LDAP calls for becoming a ads dcStefan Metzmacher1-0/+94
metze (This used to be commit 2e355f84888ebea1376151bcba4013980da08c15)
2007-10-10r19987: some more notes about how to w2k3 becomes a dcStefan Metzmacher1-14/+54
the strange thing is the DsGetNCChanges() calls are on their on DRSUAPI connection, but use a bind_handle (policy handle from another connection) metze (This used to be commit a9c7d6e7f353e85234b93f26973969b157b1e7f1)
2007-10-10r19969: split become ads dc TODO lists into W2K and W2K3 sectionsStefan Metzmacher1-0/+45
metze (This used to be commit 88818b3c0822cfb71b08c8f06c48443b26116a07)
2007-10-10r19968: add some more notes about what's needed for becoming a ads dcStefan Metzmacher1-6/+46
metze (This used to be commit 09b492c450596b18a12cefa99c56f62504a519d7)
2007-10-10r19831: Big ldb_dn optimization and interfaces enhancement patchSimo Sorce1-2/+2
This patch changes a lot of the code in ldb_dn.c, and also removes and add a number of manipulation functions around. The aim is to avoid validating a dn if not necessary as the validation code is necessarily slow. This is mainly to speed up internal operations where input is not user generated and so we can assume the DNs need no validation. The code is designed to keep the data as a string if possible. The code is not yet 100% perfect, but pass all the tests so far. A memleak is certainly present, I'll work on that next. Simo. (This used to be commit a580c871d3784602a9cce32d33419e63c8236e63)
2007-10-10r19641: ldap_delete() is only allowed as user, we need to give credentials ↵Stefan Metzmacher1-0/+2
to the ildap backend metze (This used to be commit a996d2633600d32b2c2c04edebd0b901c627f00b)
2007-10-10r19507: Merge my DSO fixes branch. Building Samba's libraries as shared ↵Jelmer Vernooij1-3/+3
libraries works again now, by specifying --enable-dso to configure. (This used to be commit 7a01235067a4800b07b8919a6a475954bfb0b04c)
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 Vernooij1-1/+0
* 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-10r14860: create libcli/security/security.hStefan Metzmacher1-1/+1
metze (This used to be commit 9ec706238c173992dc938d537bdf1103bf519dbf)
2007-10-10r14470: Remove some unnecessary headers.Jelmer Vernooij1-1/+0
(This used to be commit f7312dab3b9aba2b2b82e8a6e0c483a32a03a63a)
2007-10-10r14464: Don't include ndr_BASENAME.h files unless strictly required, insteadJelmer Vernooij1-0/+1
try to include just the BASENAME.h files (containing only structs) (This used to be commit 3dd477ca5147f28a962b8437e2611a8222d706bd)
2007-10-10r14402: Generate seperate headers for RPC client functions.Jelmer Vernooij1-0/+1
(This used to be commit 7054ebf0249930843a2baf4d023ae8f62cedb109)
2007-10-10r14379: Build torture/rpc/ as a seperate smbtorture module. Move helperJelmer Vernooij1-3/+2
functions for rpc out of torture/torture.c (This used to be commit 1d2d970f3b8aef3f36c2befb94b5dd72c0086639)
2007-10-10r14363: Remove credentials.h from the global includes.Jelmer Vernooij1-0/+1
(This used to be commit 98c4c3051391c6f89df5d133665f51bef66b1563)
2007-10-10r13924: Split more prototypes out of include/proto.h + initial work on headerJelmer Vernooij1-0/+2
file dependencies (This used to be commit 122835876748a3eaf5e8d31ad1abddab9acb8781)
2007-10-10r13551: Add an accessor function for the user sid.Andrew Bartlett1-0/+5
Andrew Bartlett (This used to be commit 273cb8fd4288f7bf15e0bcad9f6a4cbf4f142b24)
2007-10-10r13479: Return the joined domain SID and user SID as structures, not strings.Andrew Bartlett1-9/+9
Andrew Bartlett (This used to be commit e1de45bce47292eef1f9c56ea5576c0436e6151d)
2007-10-10r13346: use private proto header files for the torture testsStefan Metzmacher1-0/+1
metze (This used to be commit 67837dbd2bcff8ec1917ba02884ee2eaa0776b46)
2007-10-10r12694: Move some headers to the directory of the subsystem they belong to.Jelmer Vernooij1-0/+1
(This used to be commit c722f665c90103f3ed57621c460e32ad33e7a8a3)
2007-10-10r12693: Move core data structures out of smb.h into core.hJelmer Vernooij1-0/+1
torture prototypes in seperate header (This used to be commit 73610639b23ca3743077193fa0b1de7c7f65944d)
2007-10-10r12608: Remove some unused #include lines.Jelmer Vernooij1-1/+0
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10r12510: Change the DCE/RPC interfaces to take a pointer to aJelmer Vernooij1-3/+1
dcerpc_interface_table struct rather then a tuple of interface name, UUID and version. This removes the requirement for having a global list of DCE/RPC interfaces, except for these parts of the code that use that list explicitly (ndrdump and the scanner torture test). This should also allow us to remove the hack that put the authservice parameter in the dcerpc_binding struct as it can now be read directly from dcerpc_interface_table. I will now modify some of these functions to take a dcerpc_syntax_id structure rather then a full dcerpc_interface_table. (This used to be commit 8aae0f168e54c01d0866ad6e0da141dbd828574f)
2007-10-10r11407: Push 'recreate account' logic into libnet/libnet_join.c. We don'tAndrew Bartlett1-15/+0
return the pesky USER_EXISTS 'error' code any more, and it is much easier to handle this inline. Andrew Bartlett (This used to be commit a7eb796cf544db3fe16986d8e233d2defe7a7d1b)
2007-10-10r11406: Clean up uninitialised value warnings found by -01.Andrew Bartlett1-23/+17
The warnings were caused by the structure assignements, which we don't need to do. The actual values are filled in by the NDR layer later. Andrew Bartlett (This used to be commit f140117535c3281f0a0a7970ea4127498737d112)
2007-10-10r10800: IndentAndrew Bartlett1-2/+2
(This used to be commit 057cede8b44e1b53f5d94a7270e9b6a90d50de4c)
2007-10-10r10702: Fix a silly error that caused a rejoin/delete in the torture code to ↵Andrew Bartlett1-2/+2
fault... Andrew Bartlett (This used to be commit 0fa6d040f287dbf6b0588e3507d53037a04f85d4)
2007-10-10r10697: Change the torture join code to return a credentials structure, asAndrew Bartlett1-5/+47
that is what most of the callers want anyway. Remove and re-add the account for the torture case, rather than just modify it. Test with a user account (needs work to change the password). Andrew Bartlett (This used to be commit 38bebef02454164cbe882347d80e03abee656205)
2007-10-10r10564: Make the RPC-SCHANNEL test use the libnet_join code via ↵Andrew Bartlett1-2/+30
torture_join_domain Handle error cases in torture_create_testuser, where we can't connect to the target server (we were segfaulting due to an untested error path). Andrew Bartlett (This used to be commit 7afe14becbcfa8742740431884f9de92b72ed3e1)
2007-10-10r10563: a null 'join' is a no-op.Andrew Bartlett1-0/+3
Andrew Bartlett (This used to be commit cd70e8baf5bccfd11ade342f6692ea7f7bf2eef4)
2007-10-10r10486: This is a merge of Brad Henry's 'net join' rework, to better performAndrew Bartlett1-14/+135
an ADS join, particularly as a DC. This represents the bulk of his Google SOC work, and I'm very pleased to intergrate it into the tree. (Metze will intergrate the DRSUAPI work later). Both metze and myself have also put a lot of time into this patch, and in mentoring Brad in general. In return, Brad has been a very good student, and has taken the comments well. Since it's last appearance on samba-technical@, I have made correctness and valgrind fixups, as well as adding a new 'BINDING' mode to the libnet_rpc routines. This allows the exact binding string to be passed down from the torture code, including options and exact target host. Andrew Bartlett (This used to be commit d6fa105fdabbeb83a9b0e50dad49d1649afdb2a4)
2007-10-10r9422: Include crypto.h header.Andrew Bartlett1-0/+1
Andrew Bartlett (This used to be commit 340955220443533cc70dcb0ef9bae4815f30e6c5)
2007-10-10r8232: remove samr_String and netr_String as they are the same as lsa_StringStefan Metzmacher1-4/+4
metze (This used to be commit e601042c07d7b6eed0dc34e5b136d9266b8a0f81)
2007-10-10r6321: added IDL and test suite for NBT dgram 'sam logon' request (sent byAndrew Tridgell1-0/+11
clients when a user tries to login) (This used to be commit 08ded62156b387457bc56b5910e1ddc813b375bd)
2007-10-10r5941: Commit this patch much earlier than I would normally prefer, but ↵Andrew Bartlett1-5/+2
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-10r5902: A rather large change...Andrew Bartlett1-1/+5
I wanted to add a simple 'workstation' argument to the DCERPC authenticated binding calls, but this patch kind of grew from there. With SCHANNEL, the 'workstation' name (the netbios name of the client) matters, as this is what ties the session between the NETLOGON ops and the SCHANNEL bind. This changes a lot of files, and these will again be changed when jelmer does the credentials work. I also correct some schannel IDL to distinguish between workstation names and account names. The distinction matters for domain trust accounts. Issues in handling this (issues with lifetime of talloc pointers) caused me to change the 'creds_CredentialsState' and 'struct dcerpc_binding' pointers to always be talloc()ed pointers. In the schannel DB, we now store both the domain and computername, and query on both. This should ensure we fault correctly when the domain is specified incorrectly in the SCHANNEL bind. In the RPC-SCHANNEL test, I finally fixed a bug that vl pointed out, where the comment claimed we re-used a connection, but in fact we made a new connection. This was achived by breaking apart some of the dcerpc_secondary_connection() logic. The addition of workstation handling was also propogated to NTLMSSP and GENSEC, for completeness. The RPC-SAMSYNC test has been cleaned up a little, using a loop over usernames/passwords rather than manually expanded tests. This will be expanded further (the code in #if 0 in this patch) to use a newly created user account for testing. In making this test pass test_rpc.sh, I found a bug in the RPC-ECHO server, caused by the removal of [ref] and the assoicated pointer from the IDL. This has been re-added, until the underlying pidl issues are solved. (This used to be commit 824289dcc20908ddec957a4a892a103eec2da9b9)