summaryrefslogtreecommitdiffstats
path: root/source4/libnet/libnet_rpc.c
Commit message (Collapse)AuthorAgeFilesLines
* s4:libnet: use helper functions to access dcerpc_binding->target_hostnameStefan Metzmacher2014-02-131-8/+2
| | | | | | | If possible also specify the already known address as dcerpc_binding->host. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s4:libnet: make use of dcerpc_binding_set_flags()Stefan Metzmacher2014-02-131-2/+4
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s4:libnet: make use of dcerpc_binding_get_*() in libnet_rpc.cStefan Metzmacher2014-02-131-26/+28
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s4:libnet: use dcerpc_binding_dup() in continue_epm_map_binding_send()Stefan Metzmacher2014-02-111-5/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s4:libnet: avoid using dcecli_connection->event_ctxStefan Metzmacher2014-01-161-1/+1
| | | | | | | | | | We should avoid per connection tevent_contexts, the one per libnet_context isn't much better, but a start. Note the pointers have the same value. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s4:libnet: keep a dcerpc_binding_handle for samr and lsaStefan Metzmacher2014-01-161-1/+4
| | | | | | | This completes commit a3ae9802d47f7a39030be089d15fc42f8e8917e6. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s4-libnet: Don't call talloc_get_type() for the same struct twice.Andreas Schneider2012-12-121-2/+2
| | | | | | | Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* s4-libnet: Skip calling lsarpc functions over a wrong pipe.Andreas Schneider2012-07-061-0/+9
|
* s4:libnet/libnet_rpc.c - quiet an enum warningMatthias Dieter Wallnöfer2011-06-091-0/+4
| | | | | | Other enum types have been checked before. Reviewed-by: Tridge
* s4-rpc: added target_principal binding handle optionAndrew Tridgell2010-10-011-1/+1
| | | | | | this allows you to specify a target SPN for a connection Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-libnet: force IDL printing for high debug levelsAndrew Tridgell2010-09-151-0/+4
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-libnet: converted finddcs call to tevent_reqAndrew Tridgell2010-09-151-8/+8
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:libnet_rpc: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE instead of ↵Stefan Metzmacher2010-04-151-1/+1
| | | | | | NT_STATUS_NET_WRITE_FAULT metze
* s4:libnet: don't include librpc/rpc/dcerpc.h directlyStefan Metzmacher2010-03-231-1/+0
| | | | metze
* s4:libnet/libnet_rpc.c: make use of use tevent_req based ↵Stefan Metzmacher2010-03-121-24/+31
| | | | | | dcerpc_binding_handle stubs metze
* s4:libnet: keep a dcerpc_binding_handle for samr and lsaStefan Metzmacher2010-03-121-0/+2
| | | | metze
* s4:libnet: make use of explicit dcerpc_*_recv functionsStefan Metzmacher2010-03-011-3/+3
| | | | metze
* s4:libnet: use talloc_strdup() instead of talloc_reference()Stefan Metzmacher2009-07-311-1/+1
| | | | metze
* use a talloc_reparent in a very ugly wayAndrew Tridgell2009-07-011-2/+11
| | | | this works around some terrible use of talloc in the libnet code
* s4:libnet Allow 'net password change' to work on expired passwordsAndrew Bartlett2009-06-181-4/+15
| | | | | | | | | We need to pass down flags to the DCE/RPC layer to allow fallback to anonymous connections, as we can't log in with an expired password. The anonymous connection can then change the password with SAMR. Andrew Bartlett
* s4-lsa: merge lsa_QueryInfoPolicy/{2} from s3 lsa idl.Günther Deschner2008-10-271-4/+8
| | | | Guenther
* Install public header files again and include required prototypes.Jelmer Vernooij2008-04-021-0/+1
| | | | (This used to be commit 47ffbbf67435904754469544390b67d34c958343)
* Report binding in libnet failure message.Andrew Bartlett2008-03-131-1/+4
| | | | | Andrew Bartlett (This used to be commit def46f6852075e1efe2bb7c5a7cffa5defdbb4ee)
* r26327: Explicit loadparm_context for RPC client functions.Jelmer Vernooij2007-12-211-2/+3
| | | | (This used to be commit eeb2251d22b3d6e0379444a73af69d1014692b07)
* r24557: rename 'dcerpc_table_' -> 'ndr_table_'Stefan Metzmacher2007-10-101-7/+7
| | | | | metze (This used to be commit 84651aee81aaabbebf52ffc3fbcbabb2eec6eed5)
* r24051: more monitor function calls and monitor msg namesRafal Szczesniak2007-10-101-8/+8
| | | | | | | convention change. rafal (This used to be commit 6ab10b2ed256fa3c55d1af8ddcc9dfdaf4598a1e)
* r23959: add more monitor messages support that's been sitting around on myRafal Szczesniak2007-10-101-34/+139
| | | | | | | laptop for a while. rafal (This used to be commit c257363adbc2e8ab577bb86a5b4dbef3caf802ef)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r22944: fix bug #4618:Stefan Metzmacher2007-10-101-3/+3
| | | | | | | rename private -> private_data metze (This used to be commit 58551f2f28fce8f1fcd04736c47ecd7458f32ea2)
* r22672: use composite_create calls instead of talloc_zero.Rafal Szczesniak2007-10-101-12/+6
| | | | | rafal (This used to be commit 969b175c739ca29b04c15a26a05f317703eed656)
* r19937: fix sending monitor message (spotted by metze).Rafal Szczesniak2007-10-101-4/+4
| | | | | rafal (This used to be commit 16f1f075fb5c1afb959511a075e59fd908ca4b03)
* r19933: something is really wrong here...Stefan Metzmacher2007-10-101-1/+1
| | | | | | | mimir: please take a look! metze (This used to be commit 0b4da84d7044c31a84491c4d61dcdfff38177f44)
* r19759: Allow a join to occour against ncacn_ip_tcp again (useful for tortureAndrew Bartlett2007-10-101-7/+28
| | | | | | | | | | | | | tests). The issue is that Win2k3 SP1 will not answer many LSA requests on that port (I think this is as a security measure). In this case, we need to skip ahead in the composite functions. We were also checking the wrong variable to determine sucess/failure of the LsaOpenPolicy2. Andrew Bartlett (This used to be commit 67c191305fa97470017e7e8a5b55fc0949d432ad)
* r19587: Fix indentation and correctly set error string when completingRafal Szczesniak2007-10-101-3/+5
| | | | | | | a composite call - don't leave it unset. rafal (This used to be commit 8bd57beca19bd2c76d58b64ddd12553b0adce595)
* r19266: Add a target_hostname element to the binding struct. This allows usAndrew Bartlett2007-10-101-23/+37
| | | | | | | | | | | to perform a lookup once, resolve the name to an IP, while still communicating the full name to the lower layers, for kerberos etc. This fixes 'net samdump', which was failing due to the schannel target name being *smbserver. Andrew Bartlett (This used to be commit 0546f487f4cc99b5549dc1e457ea243d4bd66333)
* r17670: 1) Refactor libnet context structure a bit, to have rpc connectionRafal Szczesniak2007-10-101-8/+10
| | | | | | | | | | | properties more consistently reflected. 2) Add domain open routine for lsa pipe - this is needed for ongoing name resolve function. Tests (still neglected) and comments to follow. rafal (This used to be commit fe5652c2b8121bbe3b9932c43164035355478611)
* r17472: Remove unused variable.Rafal Szczesniak2007-10-101-1/+0
| | | | | rafal (This used to be commit 04c94e4a52b9253c6d2ae6e8376338f0b20dd070)
* r17079: Remove an attempt to connect on ncacn_ip_tcp transport after failureRafal Szczesniak2007-10-101-38/+0
| | | | | | | | on ncacn_np, as abartlet suggested. Also, named pipe remains the default transport for all kinds of servers to be contacted. rafal (This used to be commit 76888c74a66317a9888ea4c0965f0d33124c222f)
* r17026: Make rpc connect routine a bit smarter. Try to connect againRafal Szczesniak2007-10-101-7/+86
| | | | | | | | | | | | using different transport and possibly address type, when the first attempt fails (only if it makes any sense, of course). This may be especially useful when connecting DCs and PDCs in mixed environments. Also, add monitor messages issuing. rafal (This used to be commit d69b31230dd01efadd9c0cc6ef31c794c6165881)
* r16694: Store lsa rpc pipe pointer in a right place.Rafal Szczesniak2007-10-101-7/+12
| | | | | rafal (This used to be commit fa6b52dbf7321d1a7f0fdea32ab2605951c2b35a)
* r16226: Fixes for various segfault bugs found against a buggy Samba4. WithAndrew Bartlett2007-10-101-0/+13
| | | | | | | | | | the current API we need to check both that the RPC didn't fault, and that the query succeeded. Also print the right things in debug messages. Andrew Bartlett (This used to be commit d18e515391f8f5038e9aaaba596099052011b53a)
* r15858: - initialize s->r.outStefan Metzmacher2007-10-101-13/+23
| | | | | | | | | - don't check for mem_ctx, ctx and r, we should crash when they're wrong as it's a programmer error! - pass the error string to the caller metze (This used to be commit 5f65447f5dfafa6771a532c86fe2f87287c5467d)
* r15625: Partial commit of my current work. It makes libnet api functionsRafal Szczesniak2007-10-101-3/+28
| | | | | | | | | | | | | | | | | a bit more smart and more aware of what libnet_context can offer. The context is a help when some of the arguments are not passed (programmer counts on using sensible defaults) and stores some of results so that similar subsequent calls don't need to reopen some of policy handles, pipes, etc. again. It also helps to hide some of details the library user don't really want to know much about. Also, change domain open function to be part of public api, as it is going to be used in ejsnet interface. Note, this is work in progress. Comments are welcome. rafal (This used to be commit 1ed80c594c2f466e364a11194d6fdc30ac4a8f27)
* r15487: More comments and a few minor changes (not even fixes).Rafal Szczesniak2007-10-101-13/+31
| | | | | rafal (This used to be commit 12d0faf9bc4c97b61879e8f7bb0419f4553bb340)
* r15459: Add forgotten guid retrieval among other data and thus preventRafal Szczesniak2007-10-101-1/+4
| | | | | | | | from returning uninitialised structure member. Thank heavens for build farm and valgrind :) rafal (This used to be commit daca283990c7a8b6efc952c9308c43b68dd49f06)
* r15439: Reorder the code a bit to be like in other calls. More commentsRafal Szczesniak2007-10-101-142/+170
| | | | | | | and comment-fixes. rafal (This used to be commit d35f1e07bed594dfae5421209c4318fe5e66a5aa)
* r15435: Turn libnet_RpcConnectDCInfo into another level of libnet_RpcConnectRafal Szczesniak2007-10-101-166/+272
| | | | | | | | and make it async. Also, update any other usages of old function. Build goes fine and so do tests, comments to follow. rafal (This used to be commit aef0a2de9d2f01a6f619e3fccc8715288f5c37a3)
* r14591: More comments.Rafal Szczesniak2007-10-101-1/+27
| | | | | rafal (This used to be commit 44b89cd47a1eb635f09ef97e6a828c40962c2322)
* r14568: Remove unused function.Rafal Szczesniak2007-10-101-10/+0
| | | | | rafal (This used to be commit 473d6c8e685a0c730c57534cfa079e465de9b233)
* r14566: Remove unnecessary headers.Rafal Szczesniak2007-10-101-3/+0
| | | | | rafal (This used to be commit 1ba4245fcbe808b4537eff74792d1bc7b94108b9)