summaryrefslogtreecommitdiffstats
path: root/source4/librpc/rpc
Commit message (Collapse)AuthorAgeFilesLines
* Add unique IP address binding for client connections (EPM and ncacn_ip_tcp ↵Julien Kerihuel2010-09-075-7/+28
| | | | | | | | | | | | | levels) This allows for binding strings like this: ncacn_ip_tcp:host[localaddress=192.168.2.1,seal] which will force the connection to be locally bound to the specified IP address Signed-off-by: Andrew Tridgell <tridge@samba.org>
* librpc/rpc: add dcerpc_binding_handle_set_timeout()Stefan Metzmacher2010-09-041-0/+3
| | | | metze
* s4:librpc/rpc: implement dcerpc_bh_set_timeout()Stefan Metzmacher2010-09-041-0/+18
| | | | metze
* librpc/rpc: add set_timeout() to dcerpc_binding_handle_opsStefan Metzmacher2010-09-041-0/+2
| | | | metze
* pidl: Keep only a single copy of samba.dcerpc.base.ClientConnection.Jelmer Vernooij2010-09-034-198/+221
|
* pyrpc: Add py_check_dcerpc_type().Jelmer Vernooij2010-08-272-0/+89
| | | | | | | This function checks whether the type of a PyObject matches a DCE/RPC Python type. Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
* s4-pyrpc: use s4_event_context_init()Andrew Tridgell2010-08-231-1/+1
| | | | | | | This fixes a crash when using kerberos and the python dcercpc interface, which requires event nesting Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* pidl: give the varible name for bad type in python callsAndrew Tridgell2010-08-221-1/+1
| | | | | This makes it much clearer which argument to a function had the wrong type
* librpc/rpc: move dcerpc_read_ncacn_packet_send/recv() to dcerpc_util.cStefan Metzmacher2010-08-201-0/+9
| | | | metze
* s4:librpc/rpc: make struct dcerpc_binding_handle privateStefan Metzmacher2010-08-121-10/+0
| | | | metze
* s4:librpc/rpc: add dcerpc_binding_handle dcerpc_pipe backendStefan Metzmacher2010-08-123-4/+411
| | | | metze
* librpc/rpc: add dcerpc_binding_handle abstrationStefan Metzmacher2010-08-121-2/+113
| | | | metze
* s4:librpc/rpc: fix dcerpc_log_packet() prototypeStefan Metzmacher2010-08-122-6/+6
| | | | metze
* s4:librpc/rpc: autodetect the need of async call logicStefan Metzmacher2010-08-122-8/+6
| | | | metze
* s4:librpc/rpc: avoid using DCERPC_NDR_REF_ALLOC for epm_Map()Stefan Metzmacher2010-08-021-2/+2
| | | | metze
* s4:librpc/rpc: use the correct ndr flags in dcerpc_ndr_validate_in()Stefan Metzmacher2010-07-311-0/+16
| | | | metze
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-164-20/+20
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* dcerpc: move dcerpc_pull_auth_trailer into a the common dcerpc_util.c fileSimo Sorce2010-07-131-67/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s4-dcerpc: move some util functions up to main librpc directory.Günther Deschner2010-07-131-30/+0
| | | | | | | Guenther Signed-off-by: Simo Sorce <idra@samba.org> Signed-off-by: Günther Deschner <gd@samba.org>
* s4-python: python is not always in /usr/binAndrew Tridgell2010-06-241-1/+1
| | | | | | | | Using "#!/usr/bin/env python" is more portable. It still isn't ideal though, as we should really use the python path found at configure time. We do that in many places already, but some don't. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* pyrpc: Fix reference counting when using secondary connections.Jelmer Vernooij2010-06-192-18/+43
|
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-185-29/+20
|
* s4:librpc/rpc/pyrpc.c: map NT_STATUS_NET_WRITE_FAULT to the matching ↵Stefan Metzmacher2010-04-151-7/+3
| | | | | | NT_STATUS_RPC_* code metze
* librpc/rpc: add dcerpc_fault_to_nt_status()Stefan Metzmacher2010-04-151-0/+1
| | | | | | | For now this only handles fault codes with we've seen yet and for which we have explicit torture checks. metze
* s4:librpc/rpc: the python bindings should use !NT_STATUS_IS_OK instead of ↵Stefan Metzmacher2010-04-131-4/+4
| | | | | | | | NT_STATUS_IS_ERR Everything but NT_STATUS_OK is an error here. metze
* s4:librpc/rpc: make PyErr_SetDCERPCStatus() staticStefan Metzmacher2010-04-132-3/+3
| | | | metze
* s4:librpc/rpc: correctly initialize last_fault_code for bind and ↵Stefan Metzmacher2010-04-091-0/+9
| | | | | | alter_context requests metze
* pynet: Create a net class.Jelmer Vernooij2010-04-081-2/+2
|
* s4-rpc: fixed a talloc loop in continue_ntlmssp_connection()Andrew Tridgell2010-04-021-0/+24
| | | | | We were creating a memory loop which caused havoc when the connection was torn down.
* pyrpc: do the pipe connect on a real memory contextAndrew Tridgell2010-04-021-1/+1
|
* s4:librpc/rpc/pyrpc.h: librpc/rpc/dcerpc.h isn't needed anymoreStefan Metzmacher2010-03-231-1/+0
| | | | metze
* s4:librpc/rpc: add NCACN_INTERNAL from s3Stefan Metzmacher2010-03-191-1/+1
| | | | metze
* s4:librpc/rpc: let pyrpc make use of dcerpc_binding_handle stubsStefan Metzmacher2010-03-183-4/+7
| | | | metze
* s4:librpc/rpc: initialize p->binding_handle in dcerpc_secondary_context()Stefan Metzmacher2010-03-171-0/+7
| | | | metze
* s4:librpc/rpc/dcerpc_util.c: make use of use tevent_req based ↵Stefan Metzmacher2010-03-121-10/+12
| | | | | | dcerpc_binding_handle stubs metze
* s4:librpc/rpc/dcerpc_schannel.c: make use of use tevent_req based ↵Stefan Metzmacher2010-03-121-16/+22
| | | | | | dcerpc_binding_handle stubs metze
* s4:librpc/rpc: add very basic dcerpc_binding_handle infrastructureStefan Metzmacher2010-03-122-0/+19
| | | | metze
* s4-rpc: don't use s->credentials after it is freedAndrew Tridgell2010-03-051-2/+1
|
* s4:librpc/rpc: make use of explicit dcerpc_*_recv functionsStefan Metzmacher2010-03-012-3/+3
| | | | metze
* Revert "Got back to 16-byte padding on auth RPC. S3 clients and servers now ↵Jeremy Allison2010-02-171-6/+4
| | | | | | | | | | | cope with this. Jeremy" This reverts commit 38c50c7027d2a2a9a3df060b74b2a2efce4d9e6f. As tridge requested, we need this to work with older S3 servers, not just for smbtorture4. Jeremy.
* Got back to 16-byte padding on auth RPC. S3 clients and servers now cope ↵Jeremy Allison2010-02-171-4/+6
| | | | with this. Jeremy
* s4-rpc: paranoid check for auth_lengthAndrew Tridgell2010-02-171-0/+11
| | | | | This is not strictly needed as the ndr_pull_advance() checks it a few lines further down, but I want to save Jeremy getting more grey hairs :-)
* s4-rpc: don't use auth padding in rpc bind requests as it breaks s3Andrew Tridgell2010-02-161-0/+7
| | | | | | | | | | The s3 RPC server returns a bind_nak if it gets a rpc bind with auth padding. This change forces a padding length of zero to maximimise compatibility with s3 servers. I've left the padding code in as a #if 0 to make it easier for us to test/fix the s3 server code, which should be changed to correctly handle arbitrary auth padding in all rpc requests with auth trailers.
* s4-dcerpc: fixed auth padding to be relative to the stub, not packetAndrew Tridgell2010-02-161-5/+7
| | | | | | | The recent dcerpc padding changes made our padding relative to the packet header, instead of the start of the stub. Surprisingly, this broke w2k8r2 doing a dcpromo join to a s4 server. It seems that w2k8r2 is very fussy about the padding it gets in some circumstances.
* a4-dcerpc: another attempt at dcerpc auth paddingAndrew Tridgell2010-02-142-11/+16
| | | | The last change broke net vampire against w2k8r2
* s4-rpc: be more careful about DCERPC auth paddingAndrew Tridgell2010-02-132-52/+83
| | | | | | Cope with a wider range of auth padding in dcerpc bind_ack and alter_context packets. We now use a helper function that calculates the right auth padding.
* s4:Remove "Py_RETURN_NONE" compatibility codeMatthias Dieter Wallnöfer2010-02-091-4/+0
| | | | This was needed only by Python 2.3 which we no longer support.
* Change uint_t to unsigned int in source4Matt Kraai2010-02-021-2/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:dcerpc - fix DEBUG output warningMatthias Dieter Wallnöfer2009-11-061-3/+4
|
* s4-python: we need to include Python.h firstAndrew Tridgell2009-10-231-1/+1
| | | | | If we don't include Python.h first then we get a pile of warnings due to broken redefines of XOPEN_SOURCE in the Python includes.