Interprocess communication with samba

Andrew Bartlett abartlet at samba.org
Tue Nov 11 20:19:23 GMT 2008


On Tue, 2008-11-11 at 23:13 +0530, priya sehgal wrote:
> Hi,
> 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.

I'm presuming here that you are talking about Samba4 (from the context
of your question).  The 'irpc' mechanism is the correct way to
communicate between Samba4 processes. 

> 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.

No, instead you must do it with non-blocking IRPC.  

Andrew Bartlett

-- 
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20081112/4fd31466/attachment.bin


More information about the samba-technical mailing list