SMB Trans Vs SMB Write / SMB Read

View: New views
7 Messages — Rating Filter:   Alert me  

SMB Trans Vs SMB Write / SMB Read

by Shirish Pargaonkar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In Samba, can a QNmPipeInfo functionality be implemented using SMB Write and SMB Read
instead of SMB Trans with command QNmPipeInfo?
 
I can send DCE RPC bind using SMB Write and read the bind ack using SMB Read instead
of SMB Trans TransactNmPipe.
I was wondering if similar could be done to implement various named pipe functions such as
SetNmPHandState, QNmPHandState, and WaitNamedPipe by sending an appropriate
blob.
 

_______________________________________________
linux-cifs-client mailing list
linux-cifs-client@...
https://lists.samba.org/mailman/listinfo/linux-cifs-client

Re: SMB Trans Vs SMB Write / SMB Read

by Volker Lendecke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Sep 23, 2009 at 02:20:49PM -0500, Shirish Pargaonkar wrote:

> In Samba, can a QNmPipeInfo functionality be implemented using SMB Write and
> SMB Read
> instead of SMB Trans with command QNmPipeInfo?
>
> I can send DCE RPC bind using SMB Write and read the bind ack using SMB Read
> instead
> of SMB Trans TransactNmPipe.
> I was wondering if similar could be done to implement various named pipe
> functions such as
> SetNmPHandState, QNmPHandState, and WaitNamedPipe by sending an appropriate
> blob.
Hmmm. Not that I know of. Those transfer extra metadata that
is not really inline.

Volker


_______________________________________________
linux-cifs-client mailing list
linux-cifs-client@...
https://lists.samba.org/mailman/listinfo/linux-cifs-client

signature.asc (204 bytes) Download Attachment

Re: SMB Trans Vs SMB Write / SMB Read

by Shirish Pargaonkar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

OK.  I was thinking why should named pipe concern itself with how a blob has arrived i.e.
either via smbtrans or via smbwrite?
For example, in case of QNmPipeInfo, if the blob can contain necessary info such as
function name (0x26) and Infolevel (0x1), named pipe should have a response ready
to be read.

On Thu, Sep 24, 2009 at 12:57 AM, Volker Lendecke <Volker.Lendecke@...> wrote:
On Wed, Sep 23, 2009 at 02:20:49PM -0500, Shirish Pargaonkar wrote:
> In Samba, can a QNmPipeInfo functionality be implemented using SMB Write and
> SMB Read
> instead of SMB Trans with command QNmPipeInfo?
>
> I can send DCE RPC bind using SMB Write and read the bind ack using SMB Read
> instead
> of SMB Trans TransactNmPipe.
> I was wondering if similar could be done to implement various named pipe
> functions such as
> SetNmPHandState, QNmPHandState, and WaitNamedPipe by sending an appropriate
> blob.

Hmmm. Not that I know of. Those transfer extra metadata that
is not really inline.

Volker

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkq7CkoACgkQbsgDfmnSbrYnrQCeONWrEuPzIJeEjs9ApMnM9OMP
zhAAoJPwHljiDgkHDb6ZZpfOrAvpJwjK
=1nmb
-----END PGP SIGNATURE-----



_______________________________________________
linux-cifs-client mailing list
linux-cifs-client@...
https://lists.samba.org/mailman/listinfo/linux-cifs-client

Re: SMB Trans Vs SMB Write / SMB Read

by Volker Lendecke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Sep 24, 2009 at 06:06:42AM -0500, Shirish Pargaonkar wrote:
> OK.  I was thinking why should named pipe concern itself
> with how a blob has arrived i.e.  either via smbtrans or
> via smbwrite?  For example, in case of QNmPipeInfo, if the
> blob can contain necessary info such as function name
> (0x26) and Infolevel (0x1), named pipe should have a
> response ready to be read.

Please ask Microsoft (and maybe in particular Chris Hertel)
about this particular isse. Unfortunately I don't have
access to Microsoft source code, so I don't really know what
the ways to these functions are.

Volker


_______________________________________________
linux-cifs-client mailing list
linux-cifs-client@...
https://lists.samba.org/mailman/listinfo/linux-cifs-client

signature.asc (204 bytes) Download Attachment

Re: SMB Trans Vs SMB Write / SMB Read

by Shirish Pargaonkar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alright.  I thought Samba server would have similar functionality
as far as named pipes are concerned. Thanks.
On Thu, Sep 24, 2009 at 11:34 AM, Volker Lendecke <Volker.Lendecke@...> wrote:
On Thu, Sep 24, 2009 at 06:06:42AM -0500, Shirish Pargaonkar wrote:
> OK.  I was thinking why should named pipe concern itself
> with how a blob has arrived i.e.  either via smbtrans or
> via smbwrite?  For example, in case of QNmPipeInfo, if the
> blob can contain necessary info such as function name
> (0x26) and Infolevel (0x1), named pipe should have a
> response ready to be read.

Please ask Microsoft (and maybe in particular Chris Hertel)
about this particular isse. Unfortunately I don't have
access to Microsoft source code, so I don't really know what
the ways to these functions are.

Volker

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkq7n5gACgkQbsgDfmnSbrY6WgCfXvSIenL2GJ3+egIzof9sYNWl
aBsAoIJDmvHf3klBWkif4IwZUTntHpPP
=1voE
-----END PGP SIGNATURE-----



_______________________________________________
linux-cifs-client mailing list
linux-cifs-client@...
https://lists.samba.org/mailman/listinfo/linux-cifs-client

Re: SMB Trans Vs SMB Write / SMB Read

by Volker Lendecke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Sep 24, 2009 at 12:08:38PM -0500, Shirish Pargaonkar wrote:
> Alright.  I thought Samba server would have similar functionality
> as far as named pipes are concerned. Thanks.

We implement what Windows clients send us. And all we've
seen so far for these pipe metaoperations is trans2
requests. We just haven't seen anything else on the wire,
and there is virtually no documentation (yet?) on this
topic. As I said, we don't have access to Windows source
code, so we can only reply to what the clients have so far
sent us.

Sorry,

Volker


_______________________________________________
linux-cifs-client mailing list
linux-cifs-client@...
https://lists.samba.org/mailman/listinfo/linux-cifs-client

signature.asc (204 bytes) Download Attachment

Re: SMB Trans Vs SMB Write / SMB Read

by Shirish Pargaonkar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Thu, Sep 24, 2009 at 12:17 PM, Volker Lendecke <Volker.Lendecke@...> wrote:
On Thu, Sep 24, 2009 at 12:08:38PM -0500, Shirish Pargaonkar wrote:
> Alright.  I thought Samba server would have similar functionality
> as far as named pipes are concerned. Thanks.

We implement what Windows clients send us. And all we've
seen so far for these pipe metaoperations is trans2
requests. We just haven't seen anything else on the wire,
and there is virtually no documentation (yet?) on this
topic. As I said, we don't have access to Windows source
code, so we can only reply to what the clients have so far
sent us.

Sorry,

Volker

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkq7qY4ACgkQbsgDfmnSbrYCRACdFeGfChxdN8fau9CVTlgWKuxg
mdsAn0vCMaotvwFHjW2yzAtohUhApyxV
=w7Zg
-----END PGP SIGNATURE-----

 
I do see SMB Trans (0x25) commands with TransactNmPipe functions (0x26)
handled by Samba server when I do a 'net view <samba_server> on a Windows client.
Not sure whether Samba server then also handles other Trans functions like
WaitNamedPipe etc..
 
 

_______________________________________________
linux-cifs-client mailing list
linux-cifs-client@...
https://lists.samba.org/mailman/listinfo/linux-cifs-client