hello shirish,

On Fri, Feb 07, 2003 at 05:13:50PM -0800, Shirish Kalele wrote:
> Hi Guenther,
>
> I'll try and take a look at it Monday.
>
> Is the fix for the dfs-enum pipe attached as well?

yes. i'll add it again just to be sure.

> I'm not sure I understand your description of the fix.

oh sorry, maybe i'll describe my test setup a bit.


i have in smb.conf two msdfs roots, one of them acts as a proxy:


[dfsroot1]
        path = /tmp/dfs-real
        msdfs root = yes

[dfsroot2]
        path = /tmp/empty
        msdfs root = yes
        msdfs proxy = \unimak\tmp2


without the fix i can just see the first dfsroot (and not even all the
entrypaths that exist under that root):


mthelena:~ # rpcclient localhost -N -c "dfsenum 3"
entrypath: \\MTHELENA\dfsroot1
        comment:
        state: 1
        num_storages: 1
                storage[0] servername: mthelena
                storage[0] sharename: dfsroot1


with the fix i do see my second dfsroot and i get all storage information
about
the other entrypaths that are created as symlinks and i even get
information
about the proxy destination of [dfsroot2]:

mthelena:~ # rpcclient localhost -N -c "dfsenum 3"
entrypath: \\MTHELENA\dfsroot1
        comment:
        state: 1
        num_storages: 1
                storage[0] servername: mthelena
                storage[0] sharename: dfsroot1
entrypath: \\MTHELENA\dfsroot1\linkone
        comment:
        state: 1
        num_storages: 1
                storage[0] servername: win2ksrv
                storage[0] sharename: data
entrypath: \\MTHELENA\dfsroot1\linktwo
        comment:
        state: 1
        num_storages: 1
                storage[0] servername: smbsrv
                storage[0] sharename: test
entrypath: \\MTHELENA\dfsroot1\linkthree
        comment:
        state: 1
        num_storages: 2
                storage[0] servername: unimak2
                storage[0] sharename: tmp2
                storage[1] servername: unimak
                storage[1] sharename: tmp
entrypath: \\MTHELENA\dfsroot2
        comment:
        state: 1
        num_storages: 1
                storage[0] servername: unimak2
                storage[0] sharename: tmp2

is that fix correct?

thanks,
guenther

-- 
Guenther Deschner                                         [EMAIL PROTECTED]
SuSE Linux AG                                        GnuPG: 8EE11688
Berliner Str. 27                      phone:  +49 (0) 30 / 430944778
D-13507 Berlin                           fax:  +49 (0) 30 / 43732804
--- source/msdfs/msdfs.c        2002-12-30 00:30:15.000000000 +0100
+++ source/msdfs/msdfs.c        2003-02-07 14:19:37.000000000 +0100
@@ -851,7 +851,9 @@
        ref->ttl = REFERRAL_TTL;
        if (*lp_msdfs_proxy(snum) != '\0') {
                pstrcpy(ref->alternate_path, lp_msdfs_proxy(snum));
-               *jn_count = 1;
+               pstrcpy(jn[cnt].service_name, lp_servicename(snum));
+               cnt++;
+               *jn_count = cnt;
                return True;
        }
                

Attachment: msg05918/pgp00000.pgp
Description: PGP signature

Reply via email to