[PATCH] Unique IP address feature for client connections

Julien Kerihuel j.kerihuel at openchange.org
Tue Aug 24 07:13:27 MDT 2010


Hi Lists,

The attached patch (initially proposed by Brad Hards) adds a
localaddress ncacn option to DCERPC binding string and allow clients to
specify on which interface they have to bind to communicate with remote
host.

I have reworked the patch so localaddress becomes a member of the
ncacn_options array and have its own defined flag (1<<22). The patch
also alters EPM connections to use the correct interface.

Typical usage:
ncacn_ip_tcp:192.168.102.236[print,seal,localaddress=192.168.0.142]

Given that we have a local interface with IP 192.168.0.142 and another
one using 192.168.0.140, EPM and DCERPC connections will go through
192.168.0.142.

Also attached the openchange patch (for openchange developers) to test
it prior to any trunk merge. To test the openchange patch, apply it to
trunk, edit the OpenChange profile database and add the localaddress
attribute followed by a local interface IP address, similarly to:

localaddress: 192.168.0.142

If no localaddress parameter is defined, then Samba4 DCERPC stack
fallback to the default behavior (guess the best interface).

Cheers,
Julien.

-- 
Julien Kerihuel
j.kerihuel at openchange.org
OpenChange Project Manager

GPG Fingerprint: 0B55 783D A781 6329 108A  B609 7EF6 FE11 A35F 1F79

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0077-Add-unique-IP-address-binding-for-client-connections.patch
Type: text/x-patch
Size: 13242 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100824/5b97f2c5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unique_ip_address_openchange.diff
Type: text/x-patch
Size: 2011 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100824/5b97f2c5/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100824/5b97f2c5/attachment.pgp>


More information about the samba-technical mailing list