summaryrefslogtreecommitdiffstats
path: root/source4/librpc/rpc
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* s4-smb: declare root_fid as a file handleAndrew Tridgell2009-10-151-1/+1
| | | | | | In order to implement root_fid in the s4 SMB server we need to declare it as a handle type, just as for other fnum values in SMB. This required some extensive (but simple) changes in many bits of code.
* s4: fix various warnings (not "const" related ones)Matthias Dieter Wallnöfer2009-10-021-1/+1
|
* s4-resolve: fixed a crash bug on timeoutAndrew Tridgell2009-09-191-1/+1
| | | | | | | We were creating the name resolution context as a child of lp_ctx, which meant when we gave up on a connection the timer on name resolution kept running, and when it timed out the callback crashed as the socket was already removed.
* s4-rpc: added NDR64 supportAndrew Tridgell2009-09-175-7/+31
| | | | This adds support for the nd464 binding string option
* s4:librpc/rpc: fix DEBUG() messageStefan Metzmacher2009-08-181-1/+1
| | | | metze
* fixed several places that unnecessarily take a reference to the event contextAndrew Tridgell2009-08-071-1/+1
| | | | | | | | | | | | | | | These references were triggering the ambiguous talloc_free errors from the recent talloc changes when the server is run using the 'standard' process model instead of the 'single' process model. I am aiming to move the build farm to use the 'standard' process model soon, as part of an effort to make our test environment better match the real deployment of Samba4. The references are not needed as the way that the event context is used is as the 'top parent', so when the event context is freed then all of the structures that were taking a reference to the event context were actually freed as well, thus making the references redundent.
* A rather strange varient of talloc_unlinkAndrew Tridgell2009-07-011-1/+1
| | | | | | A dcerpc request may have a reference from a still completing async callback, but we now consider the request to be complete. We want to lose the main parent, leaving just the reference, if any.
* fixed rpc smb code to not reply on talloc_free being a function pointerAndrew Tridgell2009-07-012-2/+13
| | | | | | The upcoming talloc_free/talloc_reference changes change talloc_free to be a macro. These two bits of code relied on it being a function pointer
* s4:libnet Allow 'net password change' to work on expired passwordsAndrew Bartlett2009-06-182-2/+4
| | | | | | | | | 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
* always enable RPC debugging with a debug level >= 100.Andrew Tridgell2009-06-122-0/+8
| | | | | This helps with tools where setting the binding string is not possible, such as net
* Fix more unresolved symbols.Jelmer Vernooij2009-06-021-2/+1
|
* s4:librpc/rpc: pass async as argument to dcerpc_ndr_request_send()Stefan Metzmacher2009-04-202-8/+9
| | | | | | The caller should decide if async is desired it should be harcoded per call. metze
* s4:librpc/rpc: remove async argument from the sync dcerpc_request() functionStefan Metzmacher2009-04-203-4/+2
| | | | metze
* s4:librpc/rpc: only use smb_trans for sync rpc callsStefan Metzmacher2009-04-201-2/+16
| | | | | | | | Over named pipes we can only do one smb_trans at a time, otherwise we're getting NT_STATUS_PIPE_BUSY. Async rpc calls need to use smb_read/write only. metze
* s4:librpc/rpc: ask for 0x2000 bytes in the ioctl case to match all othercasesStefan Metzmacher2009-04-201-1/+1
| | | | metze
* Rework Samba4 to use the new common libcli/auth codeAndrew Bartlett2009-04-141-8/+10
| | | | | | | In particular, this is the rename from creds_ to netlogon_creds_, as well as other links to use the new common crypto. Andrew Bartlett
* s4:pyrpc: fix compiler warningsStefan Metzmacher2009-02-051-3/+5
| | | | metze
* s4:libcliraw: s/private/private_dataStefan Metzmacher2009-02-021-8/+8
| | | | metze
* s4:librpc/rpc: s/private/private_dataStefan Metzmacher2009-02-023-11/+11
| | | | metze
* pyrpc: Raise proper NDR error codes with matching strings rather than mappingJelmer Vernooij2009-01-261-1/+1
| | | | to NTSTATUS first.
* Add prototypes required by samba-gtk.Jelmer Vernooij2009-01-251-0/+2
|
* Add derpc_transport_string_by_transport(), apply some constVolker Lendecke2009-01-091-1/+2
|