Julien Kerihuel
e5e5a1110f
Add unique IP address binding for client connections (EPM and ncacn_ip_tcp 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-09-07 09:55:14 +10:00
Stefan Metzmacher
7eef08cc63
s4:librpc/rpc: add dcerpc_binding_handle dcerpc_pipe backend
...
metze
2010-08-12 14:31:17 +02:00
Stefan Metzmacher
2828318743
s4:librpc/rpc: fix dcerpc_log_packet() prototype
...
metze
2010-08-12 14:31:17 +02:00
Stefan Metzmacher
31782e5295
s4:librpc/rpc: avoid using DCERPC_NDR_REF_ALLOC for epm_Map()
...
metze
2010-08-02 17:42:50 +02:00
Andrew Tridgell
6b266b85cf
s4-loadparm: 2nd half of lp_ to lpcfg_ conversion
...
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-16 18:24:27 +10:00
Simo Sorce
e340aa40d1
dcerpc: move dcerpc_pull_auth_trailer into a the common dcerpc_util.c file
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:10 +02:00
Jelmer Vernooij
f9ca9e46ad
Finish removal of iconv_convenience in public API's.
2010-05-18 11:45:30 +02:00
Andrew Tridgell
7d692f970a
s4-rpc: fixed a talloc loop in continue_ntlmssp_connection()
...
We were creating a memory loop which caused havoc when the connection
was torn down.
2010-04-02 19:44:02 +11:00
Stefan Metzmacher
04221518da
s4:librpc/rpc: initialize p->binding_handle in dcerpc_secondary_context()
...
metze
2010-03-17 18:26:15 +01:00
Stefan Metzmacher
7b76c118ad
s4:librpc/rpc/dcerpc_util.c: make use of use tevent_req based dcerpc_binding_handle stubs
...
metze
2010-03-12 15:25:48 +01:00
Stefan Metzmacher
8ba2128e1e
s4:librpc/rpc: make use of explicit dcerpc_*_recv functions
...
metze
2010-03-01 16:11:55 +01:00
Jeremy Allison
9abce9f7c9
Revert "Got back to 16-byte padding on auth RPC. S3 clients and servers now 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-17 19:42:49 -08:00
Jeremy Allison
38c50c7027
Got back to 16-byte padding on auth RPC. S3 clients and servers now cope with this. Jeremy
2010-02-17 16:43:11 -08:00
Andrew Tridgell
eb8800e611
s4-rpc: paranoid check for auth_length
...
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-17 10:54:05 +11:00
Andrew Tridgell
e3a272c3f2
s4-rpc: don't use auth padding in rpc bind requests as it breaks s3
...
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-16 22:42:59 +11:00
Andrew Tridgell
259129e8f4
a4-dcerpc: another attempt at dcerpc auth padding
...
The last change broke net vampire against w2k8r2
2010-02-14 18:44:21 +11:00
Andrew Tridgell
da86f08605
s4-rpc: be more careful about DCERPC auth padding
...
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.
2010-02-13 23:12:29 +11:00
Andrew Tridgell
c9b0b89cc0
s4-rpc: added NDR64 support
...
This adds support for the nd464 binding string option
2009-09-17 15:19:27 -07:00
Andrew Tridgell
bbe758d55b
always enable RPC debugging with a debug level >= 100.
...
This helps with tools where setting the binding string is not
possible, such as net
2009-06-12 12:23:45 +10:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
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-12-29 20:46:40 +01:00
Jelmer Vernooij
b034c519f5
Add gensec_settings structure. This wraps loadparm_context for now, but
...
should in the future only contain some settings required for gensec.
2008-11-02 02:05:48 +01:00
Jelmer Vernooij
dccf1b2c9f
Remove another use of global_loadparm.
2008-11-02 00:26:04 +01:00
Andrew Bartlett
768515f4ad
The SMB session key must not be more than 16 bytes in SAMR (and
...
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-07-23 16:19:54 +10:00
Jelmer Vernooij
f875669314
Require passing in an event context to endpoint mapper utility function.
...
(This used to be commit 906b9fe158841c41789952601b36016af6621565)
2008-04-17 01:09:33 +02:00
Jelmer Vernooij
1efbd5fbf6
Remove event context tracking from the credentials struct.
...
(This used to be commit 4d7fc946b2ec50e774689c9036423b6feef99b8e)
2008-04-17 01:03:18 +02:00
Jelmer Vernooij
b708a3d1e7
Split binding structure handling out into a separate file.
...
For easier synchronisation with Samba 3.
(This used to be commit b9cac469f3c869a26f415a6c551cf6e8fbb06ed6)
2008-04-15 18:03:09 +02:00
Jelmer Vernooij
adc0985742
Install libevents since it's required by samba-gtk.
...
(This used to be commit 2073346828ffa1d9c35105eadd7afddd3a76a045)
2008-04-03 02:28:31 +02:00
Jelmer Vernooij
afe3e8172d
Install public header files again and include required prototypes.
...
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2008-04-02 04:53:27 +02:00
Jelmer Vernooij
10169a2030
Remove more global_loadparm instance.s
...
(This used to be commit a1280252ce924df69d911e597b7f65d8038abef9)
2008-02-21 17:54:24 +01:00
Jelmer Vernooij
37b822e49f
r26643: librpc: Remove uses of global_loadparm.
...
(This used to be commit 924c0890904266af8f50f69a25f89d36f971d710)
2008-01-02 09:06:06 -06:00
Jelmer Vernooij
e31abef15f
r26440: Remove more uses of global_loadparm.
...
(This used to be commit 8858cf39722f192865e531164c72039fd18d7a8d)
2007-12-21 05:50:08 +01:00
Jelmer Vernooij
d1e716cf43
r26432: Require ndr_pull users to specify iconv_convenience.
...
(This used to be commit 28b1d36551b75241c1cf9fca5d74f45a6dc884ab)
2007-12-21 05:50:02 +01:00
Jelmer Vernooij
61873ce94c
r26431: Require ndr_push creators to specify a iconv_convenience context.
...
(This used to be commit 7352206f4450fdf881b95bda064cedd9d2477e4c)
2007-12-21 05:50:00 +01:00
Jelmer Vernooij
f055893ca5
r26382: Remove more uses of global_loadparm.
...
(This used to be commit 6d4c59853481855c232e7cf97264a391f40af2b5)
2007-12-21 05:49:17 +01:00
Jelmer Vernooij
4c4323009f
r26327: Explicit loadparm_context for RPC client functions.
...
(This used to be commit eeb2251d22b3d6e0379444a73af69d1014692b07)
2007-12-21 05:48:41 +01:00
Stefan Metzmacher
529763a9aa
r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)
...
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-21 05:45:02 +01:00
Stefan Metzmacher
a1ce0635ec
r25828: don't ignore errors
...
metze
(This used to be commit 2bd63ce9e53071dc81549e0f344a0e53737760b4)
2007-12-21 05:44:16 +01:00
Stefan Metzmacher
f549a5ddc8
r25824: - NT_STATUS_IS_ERR() is not the same as !NT_STATUS_IS_OK()
...
- make the success case some clear by returning NT_STATUS_OK
metze
(This used to be commit 2b570f96fcf537c1269237e1067ea7801b563b7e)
2007-12-21 05:44:14 +01:00
Jelmer Vernooij
37d53832a4
r25398: Parse loadparm context to all lp_*() functions.
...
(This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
2007-10-10 15:07:25 -05:00
Jeremy Allison
9a012df08e
r25175: Change to talloc_asprintf_append_buffer().
...
Jeremy.
(This used to be commit 0844dbf597191b3e4d35a696695b229e986daec4)
2007-10-10 15:06:46 -05:00
Jelmer Vernooij
ffeee68e4b
r25026: Move param/param.h out of includes.h
...
(This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
2007-10-10 15:05:38 -05:00
Stefan Metzmacher
5de430441f
r24908: we should not set s = NULL as we set it to talloc_strdup("") before
...
metze
(This used to be commit 2246c018b6b99ae38a4a612309069fc919350ba6)
2007-10-10 15:03:36 -05:00
Jelmer Vernooij
64e98b0324
r24763: Allow users to leave out the transport in DCE/RPC binding strings. 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-10 15:03:06 -05:00
Jelmer Vernooij
3e7203d0b3
r24755: Use common code for finding the RPC binding in the torture tests.
...
(This used to be commit e3310e773924ddd2129e8ca1a86e23d0f713c19c)
2007-10-10 15:03:03 -05:00
Jelmer Vernooij
53d10b44fa
r24753: Allow host name in binding string without transport.
...
(This used to be commit f7051d3a84486ed9d0a1689c10a693521ec63528)
2007-10-10 15:03:03 -05:00
Stefan Metzmacher
f14bd1a90a
r24557: rename 'dcerpc_table_' -> 'ndr_table_'
...
metze
(This used to be commit 84651aee81aaabbebf52ffc3fbcbabb2eec6eed5)
2007-10-10 15:02:15 -05:00
Stefan Metzmacher
b8cdadced4
r24551: rename dcerpc_interface_table -> ndr_interface_table
...
rename dcerpc_interface_list -> ndr_interface_list
and move them to libndr.h
metze
(This used to be commit 4adbebef5df2f833d2d4bfcdda72a34179d52f5c)
2007-10-10 15:02:12 -05:00
Stefan Metzmacher
698e7c5f2a
r24535: rename struct dcerpc_interface_call -> struct ndr_interface_call
...
and move it to librpc/ndr/libndr.h
metze
(This used to be commit abd5551aabae1820baaa52a963e8c7aa9605914e)
2007-10-10 15:02:11 -05:00
Stefan Metzmacher
ce84ab9a83
r24532: rename struct dcerpc_syntax_id into struct ndr_syntax_id
...
and move it into misc.idl
The goal is to get rid a all dcerpc specific stuff in the
generated ndr layer.
metze
(This used to be commit 2ed014cfb894cccab1654e3f7d5876393e2b52d7)
2007-10-10 15:02:11 -05:00
Andrew Tridgell
0479a2f1cb
r23792: convert Samba4 to GPLv3
...
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)
2007-10-10 14:59:12 -05:00