summaryrefslogtreecommitdiff
path: root/source3/rpc_client
AgeCommit message (Collapse)AuthorFilesLines
2008-01-15Apply const to rpccli_lsa_query_info_policy() and ↵Günther Deschner1-3/+5
rpccli_lsa_query_info_policy2(). Guenther (This used to be commit 7a3fe68bef7acde9d9f8a7a44ce7e9432f3c5a95)
2008-01-14Remove old lsa set info policy call.Günther Deschner1-35/+0
Guenther (This used to be commit b37b2b77edec72fc3f53b3461aa1c210e4366c1b)
2008-01-14Remove some more hand written LSA rpc.Günther Deschner1-108/+0
(rpccli_lsa_open_trusted_domain, rpccli_lsa_query_trusted_domain_info, cli_lsa_query_domain_info_policy). Guenther (This used to be commit 5bfb33f1c5a16d10f77cb76962df4a949626a062)
2008-01-14Start removing hand-written lsa marshalling code (namelyGünther Deschner1-111/+0
rpccli_lsa_open_trusted_domain_by_name, rpccli_lsa_query_trusted_domain_info_by_sid and rpccli_lsa_query_trusted_domain_info_by_name). Guenther (This used to be commit f2fb3473455f20e7314a9d33f5a1c923d3057d97)
2007-12-28Remove static zerosVolker Lendecke1-4/+6
(This used to be commit dbcc213710a9af31b6094d4741a6f68f573dcdad)
2007-12-21Kill fstring in getdcname & getanydcname return.Günther Deschner1-6/+8
Guenther (This used to be commit b7383818168863a7ba43c2456f8c44e96e76707a)
2007-12-18Fix a debug message: add missing space.Michael Adam1-2/+2
Michael (This used to be commit 6a7f2a59fc370e226ddacb195059155f28c6c157)
2007-12-17Do not close netlogon pipe in get_schannel_session_key_common().Michael Adam1-1/+0
This removes one forgotten call of cli_rpc_pipe_close(netlogon_pipe). Correction of e77c4022cfbb868e608edcb06b676658b0e201ad. Michael (This used to be commit 7f6593cddef048dd05140b05d306c708d8134f0e)
2007-12-15Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke1-1/+2
(This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
2007-12-13Refactoring out get_schannel_session_key logic.Michael Adam1-53/+39
Refactor the actual retrieval of the session key through the established netlogon pipe out of get_schannel_session_key() and get_schannel_session_key_auth_ntlmssp() into a new function get_schannel_session_key_common(). (To avoid code duplication.) Michael (This used to be commit e77c4022cfbb868e608edcb06b676658b0e201ad)
2007-12-13Rename get_trust_pw() to get_trust_pw_hash().Michael Adam1-2/+4
Michael (This used to be commit 0cde7ac9cb39a0026a38ccf66dbecefc12931074)
2007-12-13Let get_trust_pw() determine the machine_account_name to use.Michael Adam1-32/+6
Up to now each caller used its own logic. This eliminates code paths where there was a special treatment of the following situation: the domain given is not our workgroup (i.e. our own domain) and we are not a DC (i.e. it is not a typical trusted domain situation). In situation the given domain name was previously used as the machine account name, resulting in an account name of DOMAIN\\DOMAIN$, which does not seem very reasonable to me. get_trust_pw would not have obtained a password in this situation anyways. I hope I have not missed an important point here! Michael (This used to be commit 6ced4a7f88798dc449a667d63bc29bf6c569291f)
2007-12-11Replace "unknown" with access_mask when calling samr_CreateUser2().Günther Deschner1-2/+2
Guenther (This used to be commit cfc6e7a2e657ee55364b739d9fe0093e4f7c8b27)
2007-12-10Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison1-1/+1
them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
2007-12-03Fix winreg callers.Günther Deschner1-5/+5
Guenther (This used to be commit 677d9e6d86997a1ae10266e9bab3b18c3fdd2890)
2007-11-29Remove the explicit TALLOC_CTX * from cli_struct.Jeremy Allison1-31/+4
Make us very explicit about how long a talloc ctx should last. Jeremy. (This used to be commit ba9e2be2b5a59684e854609f9d82ea1633448c62)
2007-11-27Remove pstrings from everything except srv_spoolss_nt.c.Jeremy Allison3-29/+29
Jeremy. (This used to be commit 0002a9e96b0ef78316295a6eb94ff29b64e2f988)
2007-11-20More pstring elimination.Jeremy Allison2-7/+8
Jeremy. (This used to be commit 15074de938539e7a9c527d9a6d81792adc2ac3d0)
2007-11-09ndr: change NTSTAUS into enum ndr_err_code (samba3 callers)Stefan Metzmacher1-6/+7
lib/messages_local.c rpc_client/ndr.c smbd/notify_internal.c utils/net_rpc_registry.c metze (This used to be commit c2645d2164c05976a98bafed980b6029baf89977)
2007-10-25Fix a mismatched interface where we were usingJeremy Allison1-5/+5
uint32 instead of enum lsa_SidType. Jeremy. (This used to be commit 2df8252ff76406bfe57cd76e9927b5056e89e6ae)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison3-23/+23
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter3-241/+693
(This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
2007-10-10r25407: Revert Longhorn join patch as it is not correct for the 3.2 tree.Gerald Carter1-2/+2
The translate_name() used by cli_session_setup_spnego() cann rely Winbindd since it is needed by the join process (and hence before Winbind can be run). (This used to be commit 00a93ed336c5f36643e6e33bd277608eaf05677c)
2007-10-10r25400: Windows 2008 (Longhorn) Interop fixes for AD specific auth2 flags,Gerald Carter1-2/+2
and client fixes. Patch from Todd Stetcher <todd.stetcher@isilon.com>. (This used to be commit 8304ccba7346597425307e260e88647e49081f68)
2007-10-10r25313: dd HKEY_CURRENT_USER to rpccli_winreg_Connect().Günther Deschner1-0/+4
Guenther (This used to be commit eb311cafbb446abf8e29faf6501cf5b82593a36f)
2007-10-10r25294: Tidy up callers of unistr2_to_ascii() to pass sizeof(target_area) toMichael Adam1-4/+4
the maxeln parameter instead of sizeof(target_area) - 1 (or even sizeof(fstring) - 1 in some places. I hope these were really all there were. Michael (This used to be commit 9a28be220df622322857dfe102fa35e108f932dc)
2007-10-10r25254: Add my C - MichaelMichael Adam1-0/+1
(This used to be commit 3246be8cf05a867b74b4b96697c99cc62f13c2a9)
2007-10-10r25247: Rename the rpccli_lsa_lookup_sids_all() function to ↵Michael Adam1-120/+12
rpccli_lsa_lookup_sids() and remove the old rpccli_lsa_lookup_sids() function. The old function would fail due to server limits when requesting to resolve too many sids at once (20480 for W2k3). The new version passes the list of sids in hunks to the server. It has up to now been used (and tested) in the winbindd_ads lookup_groupmem() function, and I think the time has come to replace the actual function with this correct version. Michael (This used to be commit 1194d4f36ef720747e62dde31881c295e44e4a76)
2007-10-10r25226: Get rid of more red bars...Michael Adam1-96/+96
(This used to be commit aa603bcc6c848de67ea07d6028ab841a8401d9ad)
2007-10-10r25225: Add a debug message.Michael Adam1-0/+3
Michael (This used to be commit 7238884c2cb25dd9279703004ffab6618715a275)
2007-10-10r25224: Fix a potential segfault in lsa_lookupsids client code due toMichael Adam1-1/+4
uninitialized data. Michael (This used to be commit b4fff6d09d17a18eae61e8ca789f128cd094ba09)
2007-10-10r25223: Fix behaviour of rpccli_lsa_lookupsids_all() whenMichael Adam1-5/+11
rpccli_lsa_lookupsids_noalloc() returns an error for one hunk of SIDs: free all allocated arrays and return the error code returned by the hunk lookup. Michael (This used to be commit 2c68ebd6934206186dc6e635401f66c2fd1e1234)
2007-10-10r24949: Remove some static buffersVolker Lendecke1-2/+2
(This used to be commit df648d47ff3c4e24f439fda839653bda98323100)
2007-10-10r24784: Initialize uninitalized data to prevent segfaults.Michael Adam1-0/+5
Thanks to Volker for the hint! Michael (This used to be commit 3b7ed3ea881dc59b77a067d5d3738e9e03b6c538)
2007-10-10r24594: pass down the ndr_interface_table in the samba3 client bindingsStefan Metzmacher1-5/+10
instead of the pull and push functions metze (This used to be commit 5e3d4df9bca069708d72f548dc5ddfc7708ac122)
2007-10-10r23850: Fix whitespacing in DEBUG output.Michael Adam1-1/+1
(This used to be commit 918aad0d8b4b0c2caa8830726a17d3ad4d19f72a)
2007-10-10r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell2-4/+2
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell8-16/+8
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison10-10/+10
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r23627: Allow to pass down the lookup-level to rpccli_lsa_lookup_names().Günther Deschner1-1/+2
Guenther (This used to be commit e9a7512a9f630340004913f1379452eea8a9b6ae)
2007-10-10r23400: Fix lsa crash bug #4683. The "names" enum structJeremy Allison1-13/+7
in a lookup_sidX reply isn't optional - like the lookup_sidX query it needs to be defined in the struct. All this will go away with PIDL (thank goodness....). Jerry - I think this is a showstopper to be merged for 3.0.25b. I'll be watching the build farm to see if anything broke. Jeremy. (This used to be commit 9300b92f7a51eb80fdc039d8dad23ea9ce82aa8f)
2007-10-10r23380: netr_getdcname returns WERROR not NTSTATUS.Günther Deschner1-7/+7
Guenther (This used to be commit 5e75ea7f2b568d76c8ced5f43171741532cc97c2)
2007-10-10r23271: merge service control pidl change for CloseServiceHandle() from ↵Gerald Carter1-24/+0
SAMBA_3_0_26 (This used to be commit 0b1bc3521fac52f3164b6cc9e053abc3ceabf5e7)
2007-10-10r23219: Two warningsVolker Lendecke1-1/+2
(This used to be commit eccd50abdaed3e4e06cc5da5473ca1beeb3fc49a)
2007-10-10r23210: Very funny, we thought to use netr_GetDcName (e.g. in winbind) but ↵Günther Deschner1-23/+23
were using netr_GetDcAnyName all the time (which is the correct thing to do). Fix the naming and opcode mixup in all branches. Guenther (This used to be commit def6464c872a5939f0028837254f2c019d2d71c8)
2007-10-10r23127: Fill in some more netlogon dsgetdcname flavours (netr_DsRGetDCNameEx,Günther Deschner1-61/+177
netr_DsRGetDCNameEx2) and add new ds request and reply flags, also add some more WERROR codes. Guenther (This used to be commit 37ae7f419702c563bcd0d9c27c02bde7efd34dd7)
2007-10-10r23091: Add rpccli_netlogon_sam_network_logon_ex, fix its parsing. This does notVolker Lendecke1-0/+92
use the credential chain and only works over netlogon, but it would allow multiple outstanding auth requests for a single workstation account. (This used to be commit 123290d0947191abca4a3b3d81718c823c1bc4a0)
2007-10-10r23082: Ooops - that portion of the last checkin was by accident.Michael Adam1-2/+2
Before comitting that, I have to verify that it does not break anything... Michael (This used to be commit 55ea93d47e72d13b7e6d6900eea5da1e9a49ff8d)
2007-10-10r23081: Reorder the lsa_lookup_sids functions so that the order makes more ↵Michael Adam1-113/+113
sense... (This used to be commit 374dea8c6f5192224ee46e0c3c9b63221028858e)
2007-10-10r23073: In the internal rpccli_lsa_lookup_sids_noalloc(), use a temporaryMichael Adam1-8/+16
talloc context for use with the actual rpc query and response. So the the parent context does not get flooded by the posslibly large amount of response data (when looking up a lot of sids). Note: It not possible, to simply use the names and domains arrays as talloc contexts for the talloc_strdup calls, because from rpccli_lsa_lookup_sids_all, this is called with names + offset and domains + offset where names and domains are talloced arraye for the complete response. (This used to be commit 8e60900c5c5fccbe1718b805b6b1628d32b920d0)