[cifs-protocol] Identifying Matching Share Subtrees

Scott Goldstein Scott.Goldstein at bluejungle.com
Fri Apr 28 21:29:33 GMT 2006

Excuse my lack of knowledge here, but when you say use the
"GetShareInfo() rpc", are you referring to something in the CIFS
protocol itself or a method on a particular CIFS client?  If it's the
former, is there a open source CIFS client which exposes this portion of
the protocol?


-----Original Message-----
From: Gerald (Jerry) Carter [mailto:jerry at samba.org] 
Sent: Friday, April 28, 2006 2:22 PM
To: Scott Goldstein
Cc: cifs-protocol at cifs.org
Subject: Re: [cifs-protocol] Identifying Matching Share Subtrees

Hash: SHA1

On Fri, 28 Apr 2006, Scott Goldstein wrote:

> Suppose on a machine (Windows in this case) that the following file
> shares exist:
> 1.	C:\Public shared as Public
> 2.	C:\Public\foo shared as Nested
> In this case, everything in \\Machine\Public\foo\**
> <file:///\\Machine\Public\foo\**>  is the same as \\Machine\Nested\**
> <file:///\\Machine\Nested\**> 
> Using CIFS, I would like to identify such situations ("matching share
> subtrees") for a particular machine.  In order to do this, I think I
> would need the following:

You can use the GetShareInfo() rpc to check the actual path on disk
and compare them.  I think that's the eariest route.

cheers, jerry
I live in a Reply-to-All world.               -----------------------
Samba                                    ------- http://www.samba.org
Centeris                         -----------  http://www.centeris.com
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/


More information about the cifs-protocol mailing list