Sequenced rpc pipes

Andrew Bartlett abartlet at samba.org
Mon Oct 31 23:20:42 GMT 2005


On Mon, 2005-10-31 at 22:55 +0100, Volker Lendecke wrote:
> Hi!
> 
> When implementing winbind I found that for example LSA is strictly sequenced.
> If you asynchronously send a second request on ncacn_np when there's still one
> unreplied request on the fly, you get a NT_STATUS_PIPE_BUSY on the smbtrans
> command. So I implemented some workaround in winbind around this. After some
> irc chat I think this is the wrong level, this should be handled at the dcerpc
> layer. Attached find some prototype that compiles and survives the normal
> synchronous RPC-LSA test against w2k3. I did not yet test the sequencing, but I
> would like to ask whether I am on the right track.

The only thing I would suggest is having the IDL define the default of
sync/async per jelmer's post.  None of this should be a concern of the
application layer.

> What do you think? Having the rpc layer take care of it would simplify some
> more tricky parts of winbind (wb_domain_request_send in particular...).

I certainly agree it is the rpc layer's job. 

You can test out some of the async stuff with the RPC-NETLOGON test.

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Samba Developer, SuSE Labs, Novell Inc.        http://suse.de
Authentication Developer, Samba Team           http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net
-------------- 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/20051101/bddf9a20/attachment.bin


More information about the samba-technical mailing list