summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc/dcerpc_util.c
AgeCommit message (Collapse)AuthorFilesLines
2012-11-01s4-librpc: try a 2nd logon for more error casesAndrew Tridgell1-3/+10
not all servers give LOGON_FAILURE on authentication failures, so we need to do the retry with a new ticket on a wider range of error types Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2012-11-01s4-librpc: use cli_credentials_failed_kerberos_login to cope with stale ticketsAndrew Tridgell1-1/+15
This allows our RPC client code to cope with a kerberos server changing password while we have a valid service ticket Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-22s4-rpc: show binding string in failed rpc bindsAndrew Tridgell1-1/+2
this makes debugging some RPC auth issues easier
2011-03-11s4:librpc/rpc: s/struct dcerpc_connection/struct dcecli_connection/gStefan Metzmacher1-2/+2
The name 'struct dcerpc_connection' will be used in the new generic dcerpc code. It will be used for client and server. metze
2011-02-24build: moved librpc/rpc/*.c into a rpccommon libraryAndrew Tridgell1-0/+1
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Feb 24 02:42:37 CET 2011 on sn-devel-104
2010-09-07Add unique IP address binding for client connections (EPM and ncacn_ip_tcp ↵Julien Kerihuel1-0/+1
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>
2010-08-12s4:librpc/rpc: add dcerpc_binding_handle dcerpc_pipe backendStefan Metzmacher1-2/+1
metze
2010-08-12s4:librpc/rpc: fix dcerpc_log_packet() prototypeStefan Metzmacher1-3/+3
metze
2010-08-02s4:librpc/rpc: avoid using DCERPC_NDR_REF_ALLOC for epm_Map()Stefan Metzmacher1-2/+2
metze
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell1-4/+4
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>
2010-07-13dcerpc: move dcerpc_pull_auth_trailer into a the common dcerpc_util.c fileSimo Sorce1-67/+0
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-3/+2
2010-04-02s4-rpc: fixed a talloc loop in continue_ntlmssp_connection()Andrew Tridgell1-0/+24
We were creating a memory loop which caused havoc when the connection was torn down.
2010-03-17s4:librpc/rpc: initialize p->binding_handle in dcerpc_secondary_context()Stefan Metzmacher1-0/+7
metze
2010-03-12s4:librpc/rpc/dcerpc_util.c: make use of use tevent_req based ↵Stefan Metzmacher1-10/+12
dcerpc_binding_handle stubs metze
2010-03-01s4:librpc/rpc: make use of explicit dcerpc_*_recv functionsStefan Metzmacher1-1/+1
metze
2010-02-17Revert "Got back to 16-byte padding on auth RPC. S3 clients and servers now ↵Jeremy Allison1-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.
2010-02-17Got back to 16-byte padding on auth RPC. S3 clients and servers now cope ↵Jeremy Allison1-4/+6
with this. Jeremy
2010-02-17s4-rpc: paranoid check for auth_lengthAndrew Tridgell1-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 :-)
2010-02-16s4-rpc: don't use auth padding in rpc bind requests as it breaks s3Andrew Tridgell1-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.
2010-02-14a4-dcerpc: another attempt at dcerpc auth paddingAndrew Tridgell1-3/+5
The last change broke net vampire against w2k8r2
2010-02-13s4-rpc: be more careful about DCERPC auth paddingAndrew Tridgell1-0/+60
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.
2009-09-17s4-rpc: added NDR64 supportAndrew Tridgell1-1/+1
This adds support for the nd464 binding string option
2009-06-12always enable RPC debugging with a debug level >= 100.Andrew Tridgell1-0/+4
This helps with tools where setting the binding string is not possible, such as net
2008-12-29s4:lib/tevent: rename structsStefan Metzmacher1-2/+2
list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
2008-11-02Add gensec_settings structure. This wraps loadparm_context for now, butJelmer Vernooij1-4/+11
should in the future only contain some settings required for gensec.
2008-11-02Remove another use of global_loadparm.Jelmer Vernooij1-3/+4
2008-07-23The SMB session key must not be more than 16 bytes in SAMR (andAndrew Bartlett1-2/+12
presumably LSA). Tests show that Vista requires the sesion key to be truncated for a domain join. Andrew Bartlett (This used to be commit af629a3738298d27eb2dbecf466ceb503cec9638)
2008-04-17Require passing in an event context to endpoint mapper utility function.Jelmer Vernooij1-13/+1
(This used to be commit 906b9fe158841c41789952601b36016af6621565)
2008-04-17Remove event context tracking from the credentials struct.Jelmer Vernooij1-1/+0
(This used to be commit 4d7fc946b2ec50e774689c9036423b6feef99b8e)
2008-04-15Split binding structure handling out into a separate file.Jelmer Vernooij1-695/+0
For easier synchronisation with Samba 3. (This used to be commit b9cac469f3c869a26f415a6c551cf6e8fbb06ed6)
2008-04-03Install libevents since it's required by samba-gtk.Jelmer Vernooij1-1/+1
(This used to be commit 2073346828ffa1d9c35105eadd7afddd3a76a045)
2008-04-02Install public header files again and include required prototypes.Jelmer Vernooij1-10/+11
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2008-02-21Remove more global_loadparm instance.sJelmer Vernooij1-1/+2
(This used to be commit a1280252ce924df69d911e597b7f65d8038abef9)
2008-01-02r26643: librpc: Remove uses of global_loadparm.Jelmer Vernooij1-1/+2
(This used to be commit 924c0890904266af8f50f69a25f89d36f971d710)
2007-12-21r26440: Remove more uses of global_loadparm.Jelmer Vernooij1-2/+2
(This used to be commit 8858cf39722f192865e531164c72039fd18d7a8d)
2007-12-21r26432: Require ndr_pull users to specify iconv_convenience.Jelmer Vernooij1-1/+1
(This used to be commit 28b1d36551b75241c1cf9fca5d74f45a6dc884ab)
2007-12-21r26431: Require ndr_push creators to specify a iconv_convenience context.Jelmer Vernooij1-2/+2
(This used to be commit 7352206f4450fdf881b95bda064cedd9d2477e4c)
2007-12-21r26382: Remove more uses of global_loadparm.Jelmer Vernooij1-1/+0
(This used to be commit 6d4c59853481855c232e7cf97264a391f40af2b5)
2007-12-21r26327: Explicit loadparm_context for RPC client functions.Jelmer Vernooij1-12/+20
(This used to be commit eeb2251d22b3d6e0379444a73af69d1014692b07)
2007-12-21r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)Stefan Metzmacher1-14/+15
lib/messaging/ lib/registry/ lib/ldb-samba/ librpc/rpc/ auth/auth_winbind.c auth/gensec/ auth/kerberos/ dsdb/repl/ dsdb/samdb/ dsdb/schema/ torture/ cluster/ctdb/ kdc/ ntvfs/ipc/ torture/rap/ ntvfs/ utils/getntacl.c ntptr/ smb_server/ libcli/wrepl/ wrepl_server/ libcli/cldap/ libcli/dgram/ libcli/ldap/ libcli/raw/ libcli/nbt/ libnet/ winbind/ rpc_server/ metze (This used to be commit 6223c7fddc972687eb577e04fc1c8e0604c35435)
2007-12-21r25828: don't ignore errorsStefan Metzmacher1-0/+7
metze (This used to be commit 2bd63ce9e53071dc81549e0f344a0e53737760b4)
2007-12-21r25824: - NT_STATUS_IS_ERR() is not the same as !NT_STATUS_IS_OK()Stefan Metzmacher1-3/+3
- make the success case some clear by returning NT_STATUS_OK metze (This used to be commit 2b570f96fcf537c1269237e1067ea7801b563b7e)
2007-10-10r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij1-2/+2
(This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
2007-10-10r25175: Change to talloc_asprintf_append_buffer().Jeremy Allison1-7/+7
Jeremy. (This used to be commit 0844dbf597191b3e4d35a696695b229e986daec4)
2007-10-10r25026: Move param/param.h out of includes.hJelmer Vernooij1-0/+1
(This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
2007-10-10r24908: we should not set s = NULL as we set it to talloc_strdup("") beforeStefan Metzmacher1-3/+2
metze (This used to be commit 2246c018b6b99ae38a4a612309069fc919350ba6)
2007-10-10r24763: Allow users to leave out the transport in DCE/RPC binding strings. ↵Jelmer Vernooij1-5/+13
If the transport is not specified, it will be retrieved from the remote endpoint mapper or the IDL file. This means that 'smbtorture localhost RPC-WINREG' works now. (This used to be commit b7fa0859d2e4236112075604281410ba037b1076)
2007-10-10r24755: Use common code for finding the RPC binding in the torture tests.Jelmer Vernooij1-2/+4
(This used to be commit e3310e773924ddd2129e8ca1a86e23d0f713c19c)
2007-10-10r24753: Allow host name in binding string without transport.Jelmer Vernooij1-26/+35
(This used to be commit f7051d3a84486ed9d0a1689c10a693521ec63528)