Interprocess communication with samba

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Nov 11 19:38:01 GMT 2008


On Tue, Nov 11, 2008 at 11:13:59PM +0530, priya sehgal wrote:
> Can anyone tell me, how can other processes running on the same machine
> as the samba server/proxy communicate with it? 
> 
> I actually have a process(client/server) - which talks to the various
> CIFS clients and exchanges some encryption keys. I wish to pass this
> information to my samba proxy server - which will make use of it while
> talking to the backend server and retrieving and routing the information
> back to the client.
> 
> Here, the new process will have to communicate with samba
> proxy server, to achieve this. The "Samba Developer's
> Guide" mentions why threading is discouraged for various
> services provided by samba. So, I am not sure if I can
> implement a samba thread dedicated for communicating with
> this process.
> 
> Can I implement a samba module to perform this task ?
> 
> Please let me know alternative methods , if any.

At this moment we don't have a method for doing this in a
released version of Samba. But if you look into the master
branch that will at some point become Samba 3.4 or so, you
will see that we have implemented a named pipe mechanism
that allows a client to connect to a specific unix domain
socket on the server side via opening a named pipe file.
This is right now done to allow Samba 4 to provide MSRPC
services that come in on a Samba 3 smbd cifs server, but
there is nothing that prevents other daemons on the unix
host to provide the server side of the CreateNamedPipe API
under Windows.

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20081111/1db9d1c1/attachment.bin


More information about the samba-technical mailing list