patch for clidfs.c: pre-solution for " Unable to follow dfs referral "

Nicholas N. nucke at mail.ru
Fri Apr 14 11:45:15 GMT 2006


Hello,

There is a patch for clidfs.c (3.0.22) that should solve following problem:

Seems there is an error in split_dfs_path() that causes string like 
//server/some_share/some_path1/some_path 
to be splitted into server=server/some_share/some_path1 and share=some_path.

That causes a "Unable to follow dfs referral" problem during 
connection to complex dfs-root sub-shares.

Now, if You need to connect to dfs-share like //server/some_share/some_path1/some_path
You should do following
smbclient /server/some_share -S on .... use Your options here
smb: \> cd some_path1/some_path
Now everything should work... At least it works for me.

Unfortunatelly i couldn't figure out how to make 'cd some_path1/some_path' by default only by making changes inside clidfs.c

If You need any connectivity to (complex) dfs-share placed on Win2xxx and 
You was stopped by "Unable to follow dfs referral" 
then this patch is for You.... hope, it would help.

Be advised, i've only tested smbclient. No other programs has been tested.

-----------------
Nicholas L. Nigay

-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba-3.0.22.clidfs.patch
Type: application/octet-stream
Size: 10453 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060414/978570f0/samba-3.0.22.clidfs.obj


More information about the samba-technical mailing list