summaryrefslogtreecommitdiff
path: root/source4/libnet
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r7588: Fix lacking space in the comment.Rafal Szczesniak1-1/+1
rafal (This used to be commit cd89cf991923ee1184af41be4d48b372ca963062)
2007-10-10r7587: More comments.Rafal Szczesniak1-0/+41
rafal (This used to be commit 265b1ab0cc2597d277630c56553a1c6243f6994b)
2007-10-10r7490: Rename functions and prefices s/rpc_composite/libnet_rpc/Rafal Szczesniak5-43/+43
This makes more clear where the functions belong to. Also the rule will be that lowercased function names are not part of "official" libnet API (though it doesn't mean one absolutely cannot use them). rafal (This used to be commit f6ef7b882acc6ee07422944a417a8d9013c9d8d2)
2007-10-10r7381: Put more rpc specifics in libnet context.Rafal Szczesniak1-0/+7
rafal (This used to be commit 53ad20d46ba0db6a0a5dad78f996db8c0385d4f2)
2007-10-10r7380: Mistakenly put one file twice in command line. Here's source ofRafal Szczesniak1-33/+36
CreateUser call. It serves one level of call by now. Once any more is needed it can be placed, of course. rafal (This used to be commit 80e2f04ce154338fb0208c60b5fab4e96253bb04)
2007-10-10r7379: Simplify CreateUser function and io structure. Also, implementingRafal Szczesniak1-17/+8
it based on composite functions. Moving to fully async CreateUser on the way... rafal (This used to be commit 240409bc3cfa1426db15fc0537fcf0841f51ede0)
2007-10-10r7323: Complete composite domain open call.Rafal Szczesniak2-4/+106
rafal (This used to be commit 03a228477ea525dbe19d9661cd7c027e594f0fe1)
2007-10-10r7252: Formatting.Rafal Szczesniak1-1/+0
rafal (This used to be commit aea6d8c6946fcd5e0fd4f3b496f19cf1af728531)
2007-10-10r7251: Initial work on composite domain open call.Rafal Szczesniak1-1/+2
rafal (This used to be commit be3b283b20af0b17d8c9711f362b63b881ffbc1c)
2007-10-10r7250: Starting work on composite domain open call.Rafal Szczesniak2-0/+121
rafal (This used to be commit aa4cd8f9870b80954801ee588a36fdf286f59f0a)
2007-10-10r7247: User shorter and more convenient name for credentials inRafal Szczesniak2-2/+4
libnet context. rafal (This used to be commit 702a4dd2dcb776e18acb294c87b8f460516d1383)
2007-10-10r7204: Also fall back to different password set methods on WRITE_FAULT, asAndrew Bartlett1-1/+1
NT4 apparently returns this. Andrew Bartlett (This used to be commit 06b1416c3162a525eac9626957dd3e4adf1d257e)
2007-10-10r7203: Fill in the error message and fail if we can't open the secrets database.Andrew Bartlett1-0/+6
Andrew Bartlett (This used to be commit 27257170f4ad08c1a86be9c2a5edfa0b3da0b7a0)
2007-10-10r6963: Further definitions for share manipulation code. Untested.Rafal Szczesniak2-0/+3
Original patch provided by Gregory Leocadie <gleocadie@idealx.com> rafal (This used to be commit eb83a8210a939a0512f505a283148898ba6eceb1)
2007-10-10r6962: Severely simplified share functions. Removed call levels as we don'tRafal Szczesniak2-0/+232
seem to need them at the moment. Functions completely untested so assumed broken. Original patch submitted by Gregory Leocadie <gleocadie@idealx.com> My apologies if I have written your name incorrectly. rafal (This used to be commit 83460e01ee98267c1ae5f5cfca52ca8df4b30b0a)
2007-10-10r6933: Add a couple of helper functions for creating nbt names.Tim Potter1-3/+1
(This used to be commit b896daf11c3efb1b3ca939575da9dab82b395777)
2007-10-10r6928: Add support for printing trusted domain names, sids and passwords inAndrew Bartlett1-52/+188
the Samba4 'net samdump'. Andrew Bartlett (This used to be commit b7eeea53b2f0e7b3a25a739e6b4774e2505735d3)
2007-10-10r6927: Make it easier to program with the SamSync callback interface, performAndrew Bartlett1-35/+96
the decryption seperate to the callback functions. Andrew Bartlett (This used to be commit 4209f813add258bf7d805494fc0220696880a0b0)
2007-10-10r6848: Remove some dead/unused code.Tim Potter1-3/+0
(This used to be commit 14510a0ce9edeabbff99c234fd6fee8e2635a805)
2007-10-10r6718: Formatting fixes.Rafal Szczesniak1-3/+2
rafal (This used to be commit a784c46dd40ee2ea00fb67caeb358e76cdc0712f)
2007-10-10r6709: Add monitor messages to useradd composite useradd function.Rafal Szczesniak1-5/+15
rafal (This used to be commit b3fce5b94be2f9491a53673b1baecf0c8fe5b7c4)
2007-10-10r6677: Unused variables.Tim Potter1-5/+0
(This used to be commit 7417f6fa8be637ccf04f8608e67174d6d5624662)
2007-10-10r6624: I have put monitor function pointer into userinfo call, but I haven't putRafal Szczesniak1-5/+7
any possibility to pass such pointer from calling function... :) rafal (This used to be commit 08a8878436f3ba21666f43e9abafb27055a02e8a)
2007-10-10r6616: First (and totally untested) approach to monitoring userinfoRafal Szczesniak1-0/+13
composite call. rafal (This used to be commit 227c9fb45bdba5ac795ee14f7e51ccaa18a2a0e1)
2007-10-10r6603: More work on the samdump puzzle. This implements a function pointerAndrew Bartlett2-45/+124
callback interface, so we can start dumping into more than just stdout soon. Also use the enums instead of uint32 where possible and valid. Andrew Bartlett (This used to be commit f0c67a4a24dbd7fc32fc864d61a21eeee587178e)
2007-10-10r6573: Start on my project to implement an NT4 compatible BDC in Samba4.Andrew Bartlett4-1/+268
This brings in a compatability layer for Samba3 in Samba4 - where we will start to define file formats and similar details. The 'net samdump' command uses 'password server = ' for now, and performs a similar task to Samba3's 'net rpc samsync'. Andrew Bartlett (This used to be commit 550f17f9924fe783917318753de7d1a388423908)
2007-10-10r6525: Remove incorrect comment.Andrew Bartlett1-2/+0
Andrew Bartlett (This used to be commit 7c8a0d86d4c486198ed2cf52fad2a878ed635c8b)
2007-10-10r6440: Adding libcli composite functions dependency, as we need to locateRafal Szczesniak1-1/+1
a host and connect to its services prior to doing administrative tasks via rpc calls. rafal (This used to be commit 84f5836d9012fb66c8aa5706a57af575711693cf)
2007-10-10r6439: Clarify the comment.Rafal Szczesniak1-1/+1
rafal (This used to be commit 96c3838d51c71318fdda3d1691552eba1feafb7d)
2007-10-10r6425: Yet another comment.Rafal Szczesniak1-0/+9
rafal (This used to be commit de3409d6e5f7d199654e0511ed61a4b0808bf48d)
2007-10-10r6424: More comments and fixes to existing ones.Rafal Szczesniak1-4/+39
rafal (This used to be commit 25dd10cedb7247ec90dface59df8704c97e667b8)
2007-10-10r6419: Fix strange behaviour of NET-USERDEL where account doesn't actuallyRafal Szczesniak1-1/+3
gets deleted. rafal (This used to be commit f78d1e4b35c7cb3d983da0bcb2717627b787d9f9)
2007-10-10r6414: Added composite user del function. Slightly broken still, but I don'tRafal Szczesniak2-1/+197
want it to hang around not commited. rafal (This used to be commit 98d98b9bc7437e744e1e730fa8005b43fb1b672b)
2007-10-10r6390: A couple of changes in useradd function regarding pointers.Rafal Szczesniak1-5/+7
rafal (This used to be commit d40a6703f5b1987c08cf47f83ca0079dfcb4b151)
2007-10-10r6384: Formatting fixes.Rafal Szczesniak1-8/+7
rafal (This used to be commit ebf151ca6e740fb7939161de14a0adfc47f80010)
2007-10-10r6383: Add user management file to build.Rafal Szczesniak1-1/+2
rafal (This used to be commit c40e754700ff4068569ed2d3f8a8117d5d2f281c)
2007-10-10r6381: Started working on user account management functions.Rafal Szczesniak2-0/+189
rafal (This used to be commit 7f3aafca07126f2c42670041020b2b7dfb17fa5f)
2007-10-10r6165: fixed up the userinfo composite code. Fixes include:Andrew Tridgell2-66/+49
- talloc should always be done in the right context. For example, when creating the userinfo_state structure, place it inside the composite structure, not directly on the pipe. If this isn't done then correct cleanup can't happen on errors (as cleanup destroys the top level composite context only) - define private structures like userinfo_state in the userinfo.c code, not in the public header - only keep the parameters we need in the state structure. For example, the domain_handle is only needed in the first call, so we don't need to keep it around in the state structure, but the level is needed in later calls, so we need to keep it - always initialise [out,ref] parameters in RPC calls. The [ref] part means that the call assumes the pointer it has been given is valid. If you don't initialise it then you will get a segv on recv. This is why the code was dying. - don't use internal strucrure elements like the pipe pipe->conn->pending outside of the internal rpc implementation. That is an internal list, trying to use it from external code will cause crashes. - rpc calls assume that rpc call strucrures remain valid for the duration of the call. This means you need to keep the structures (such as "struct samr_Close") in the userinfo_state strucrure, otherwise it will go out of scope during the async processing - need to remember to change c->state to SMBCLI_REQUEST_DONE when the request has finished in the close handler, otherwise it will loop forever trying to close Mimir, please look at the diff carefully for more detailed info on the fixes (This used to be commit 01ea1e7762e214e87e74d6f28d6efeb6cdea9736)
2007-10-10r6164: More comments in the code.Rafal Szczesniak1-2/+49
rafal (This used to be commit 01cbed98b32c2050a665aec51a99288e4afb29c1)
2007-10-10r5988: Fix the -P option (use machine account credentials) to use the Samba4Andrew Bartlett1-2/+3
secrets system, and not the old system from Samba3. This allowed the code from auth_domain to be shared - we now only lookup the secrets.ldb in lib/credentials.c. In order to link the resultant binary, samdb_search() has been moved from deep inside rpc_server into lib/gendb.c, along with the existing gendb_search_v(). The vast majority of this patch is the simple rename that followed, (Depending on the whole SAMDB for just this function seemed pointless, and brought in futher dependencies, such as smbencrypt.c). Andrew Bartlett (This used to be commit e13c671619bd290a8b3cae8555cb281a9a185ee0)
2007-10-10r5983: Start support for being a domain member in Samba4.Andrew Bartlett1-2/+2
This adds the auth_domain module to the auth subsystem, and cleans up some small details around the join process (ensuring all the right info is in the DB). Andrew Bartlett (This used to be commit 858cbfb8210239aa85a01da95e5beb9546a998a5)
2007-10-10r5941: Commit this patch much earlier than I would normally prefer, but ↵Andrew Bartlett4-5/+6
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-10r5928: Use cli_credentials in:Jelmer Vernooij1-4/+1
- gtk+ (returned by GtkHostBindingDialog as well now) - torture/ - librpc/ - lib/com/dcom/ (This used to be commit ccefd782335e01e8e6ecb2bcd28a4f999c53b1a6)
2007-10-10r5924: Use cli_credentials in libnet/.Jelmer Vernooij2-8/+4
(This used to be commit e5bc6f4f1716568ae7022d61b5b35ee047b58414)
2007-10-10r5902: A rather large change...Andrew Bartlett1-6/+7
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)
2007-10-10r5900: Use flatname to specify the netbios domain name (matches what win2k3Andrew Bartlett1-3/+3
uses for trusted domain records) in the secrets join records. Andrew Bartlett (This used to be commit a6c502832c4ef471bd423b795f210abf3bb96ca5)
2007-10-10r5775: Remove some unused functions (unions are no longer as special as they ↵Jelmer Vernooij1-0/+1
used to be) Add oxid mapping table support in DCOM (This used to be commit e193555f0eec2dda8c8760e9668181200fef0a1e)
2007-10-10r5681: fix the build and compiler waningsStefan Metzmacher1-1/+2
metze (This used to be commit bb2622a0c94127a31855adc41d90289219a1ddd7)
2007-10-10r5677: Split structure definitions from implementation.Rafal Szczesniak2-21/+45
rafal (This used to be commit ec177c92266713e9a486e536c2d81af4eaa2425e)
2007-10-10r5585: LDB interfaces change:Simo Sorce1-1/+1
changes: - ldb_wrap disappears from code and become a private structure of db_wrap.c thanks to our move to talloc in ldb code, we do not need to expose it anymore - removal of ldb_close() function form the code thanks to our move to talloc in ldb code, we do not need it anymore use talloc_free() to close and free an ldb database - some minor updates to ldb modules code to cope with the change and fix some bugs I found out during the process (This used to be commit d58be9e74b786a11a57e89df36081d55730dfe0a)