outsourcing DCE/RPC to alternate programs - runtime config option

Jeremy Allison jra at samba.org
Thu Dec 9 21:48:41 GMT 2004


On Thu, Dec 09, 2004 at 03:46:39PM -0600, Anthony Liguori wrote:
> On Thu, 2004-12-09 at 15:34, Jeremy Allison wrote:
> > On Thu, Dec 09, 2004 at 03:26:36PM -0600, Anthony Liguori wrote:
> > > 
> > > Couple things to note.
> > > 
> > > 1) namedpipe_read and namedpipe_write's semantics aren't universally
> > > obeyed.  While testing, I found that Samba does not handle partial reads
> > > or partial writes.  
> > 
> > In what way ? Can you explain the failures here please ?
> 
> Yeah, the interface seems to be designed to support partial reads and
> writes.  I tested it by trying to return a partial read or write.  I
> tried different values for partial read and write.  The follow is from
> trying to do a read 1 byte at a time.
> 
> The read and write were never called again.  The error from the client
> was:

> [2004/12/09 15:17:15, 0] rpc_parse/parse_prs.c:prs_mem_get(530)
>   prs_mem_get: reading data of size 1 would overrun buffer.

So you're testing sending an rpc call, then doing a 1 byte at a time 
read back from the client, yes ? I don't think the server code handles
that currently. Can you send me your client test code so I can test
against Windows as well as smbd ?

Thanks,

	Jeremy.


More information about the samba-technical mailing list