URN Logo
UNIX Resources » Linux » Linux Forum » Samba Help » Page.1 » [Samba] DFS redirection to sub-folders beyond share
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
[Samba] DFS redirection to sub-folders beyond share
Author: William Law    Posted: 2006-02-01 20:40:09    Length: 7,403 byte(s)
[Original] [Print] [Top]
Hi,

 

I already posted this to smb-clients, but I believe that is a very low
volume list.

 

We have a very complicated dfs root.  Now I'm not positive that this is
how we should have done things, but it works very well with Windows
clients, so it hasn't been thought about here.  This does not work with
smbclient or smbmount.  I'm using freshly built smbclient from Samba
3.0.21a.

 

Anyway, here is the issue.  We have a very large namespace via one root
that is currently active directory based.

 

We have many dfs links that work like this.  Let's say our domain is
called DOMAIN, and the root is called dfs.

 

\DOMAINdfs [file:///\DOMAINdfs]  is then mapped to an empty folder.
QUOTE
From there, we have many dfs links, such as:

Userstestuser which is mapped in DFS to
\fileserver1shareUserstestuser
[file:///\fileserver1shareUserstestuser] , which works easily in
windows to seamless take the user who access \domaindfsuserstestuser
[file:///\domaindfsuserstestuser]  to the folder
\fileserver1shareuserstestuser
[file:///\fileserver1shareuserstestuser] .

 

This does NOT work under smbclient.  I think that we just need to be
able to map users to something beyond the actual share.  It looks like
it could be fixed by modifying the code to handle the slashes correctly
(see the error below).  Here is the log from smbclient with the -d 3
debugging option:

 

sh-3.00$ smbclient //tc.cornell.edu/tc -k -d 3

lp_load: refreshing parameters

Initialising global parameters

params.c:pm_process() - Processing configuration file
"/etc/samba/smb.conf"

Processing section "[global]"

Can't find include file /etc/samba/smb.conf.

added interface ip=128.84.31.152 bcast=128.84.31.255 nmask=255.255.255.0
Client started (version 3.0.21a).

resolve_hosts: Attempting host lookup for name tc.cornell.edu[0x20]
Connecting to 128.84.5.22 at port 445 Doing spnego session setup (blob
length=111) got OID=1 2 840 48018 1 2 2 got OID=1 2 840 113554 1 2 2 got
OID=1 2 840 113554 1 2 2 3 got OID=1 3 6 1 4 1 311 2 2 10 got
principal=ctcdc04$@TC.CORNELL.EDU Doing kerberos session setup Ticket in
ccache[FILE:/tmp/krb5cc_16777216_onPqOV] expiration Wed, 01 Feb 2006
19:25:27 EST OS=[Windows Server 2003 3790 Service Pack 1]
Server=[Windows Server 2003 5.2]

resolve_hosts: Attempting host lookup for name tc.cornell.edu[0x20]
Connecting to 128.84.43.250 at port 445 Doing spnego session setup (blob
length=111) got OID=1 2 840 48018 1 2 2 got OID=1 2 840 113554 1 2 2 got
OID=1 2 840 113554 1 2 2 3 got OID=1 3 6 1 4 1 311 2 2 10 got
principal=ctcdc03$@TC.CORNELL.EDU Doing kerberos session setup Ticket in
ccache[FILE:/tmp/krb5cc_16777216_onPqOV] expiration Wed, 01 Feb 2006
19:25:27 EST dos_clean_name []

resolve_hosts: Attempting host lookup for name ctcfsrv10[0x20]
Connecting to 128.84.29.24 at port 445 Doing spnego session setup (blob
length=113) got OID=1 2 840 48018 1 2 2 got OID=1 2 840 113554 1 2 2 got
OID=1 2 840 113554 1 2 2 3 got OID=1 3 6 1 4 1 311 2 2 10 got
principal=ctcfsrv10$@TC.CORNELL.EDU

Doing kerberos session setup

Ticket in ccache[FILE:/tmp/krb5cc_16777216_onPqOV] expiration Wed, 01
Feb 2006 19:25:27 EST

resolve_hosts: Attempting host lookup for name ctcfsrv10[0x20]
Connecting to 128.84.29.24 at port 445 Doing spnego session setup (blob
length=113) got OID=1 2 840 48018 1 2 2 got OID=1 2 840 113554 1 2 2 got
OID=1 2 840 113554 1 2 2 3 got OID=1 3 6 1 4 1 311 2 2 10 got
principal=ctcfsrv10$@TC.CORNELL.EDU

Doing kerberos session setup

Ticket in ccache[FILE:/tmp/krb5cc_16777216_onPqOV] expiration Wed, 01
Feb 2006 19:25:27 EST dos_clean_name []

resolve_hosts: Attempting host lookup for name CTCFSRV11[0x20]
Connecting to 128.84.29.25 at port 445 Doing spnego session setup (blob
length=113) got OID=1 2 840 48018 1 2 2 got OID=1 2 840 113554 1 2 2 got
OID=1 2 840 113554 1 2 2 3 got OID=1 3 6 1 4 1 311 2 2 10 got
principal=ctcfsrv11$@TC.CORNELL.EDU

Doing kerberos session setup

Ticket in ccache[FILE:/tmp/krb5cc_16777216_onPqOV] expiration Wed, 01
Feb 2006 19:25:27 EST

resolve_hosts: Attempting host lookup for name CTCFSRV11[0x20]
Connecting to 128.84.29.25 at port 445 Doing spnego session setup (blob
length=113) got OID=1 2 840 48018 1 2 2 got OID=1 2 840 113554 1 2 2 got
OID=1 2 840 113554 1 2 2 3 got OID=1 3 6 1 4 1 311 2 2 10 got
principal=ctcfsrv11$@TC.CORNELL.EDU

Doing kerberos session setup

Ticket in ccache[FILE:/tmp/krb5cc_16777216_onPqOV] expiration Wed, 01
Feb 2006 19:25:27 EST dos_clean_name [] dos_clean_name []

smb: ] cd cbsu

dos_clean_name [cbsu]

dos_clean_name [cbsu\]

resolve_hosts: Attempting host lookup for name
ctcfsrv6.tc.cornell.edu[0x20] Connecting to 128.84.40.20 at port 445
Doing spnego session setup (blob length=112) got OID=1 2 840 48018 1 2 2
got OID=1 2 840 113554 1 2 2 got OID=1 2 840 113554 1 2 2 3 got OID=1 3
6 1 4 1 311 2 2 10 got principal=ctcfsrv6$@TC.CORNELL.EDU

Doing kerberos session setup

Ticket in ccache[FILE:/tmp/krb5cc_16777216_onPqOV] expiration Wed, 01
Feb 2006 19:25:27 EST

resolve_hosts: Attempting host lookup for name
ctcfsrv6.tc.cornell.edu[0x20] Connecting to 128.84.40.20 at port 445
Doing spnego session setup (blob length=112) got OID=1 2 840 48018 1 2 2
got OID=1 2 840 113554 1 2 2 got OID=1 2 840 113554 1 2 2 3 got OID=1 3
6 1 4 1 311 2 2 10 got principal=ctcfsrv6$@TC.CORNELL.EDU

Doing kerberos session setup

Ticket in ccache[FILE:/tmp/krb5cc_16777216_onPqOV] expiration Wed, 01
Feb 2006 19:25:27 EST dos_clean_name [] dos_clean_name [] dos_clean_name
[CTCFSRV11tccbsu] dos_clean_name [cbsu]

smb: cbsu] cd /

dos_clean_name []

dos_clean_name [\]

smb: ] cd userslaw

dos_clean_name [userslaw]

dos_clean_name [userslaw\]

resolve_hosts: Attempting host lookup for name
ctcfsrv9.tc.cornell.edutc_qusers[0x20]

Connection to ctcfsrv9.tc.cornell.edutc_qusers failed Unable to follow
dfs referral [//ctcfsrv9.tc.cornell.edutc_qusers/law]

cd userslaw: NT_STATUS_PATH_NOT_COVERED

 

Thanks!

 

William Law

 

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

[Original] [Print] [Top]
« Previous thread
[Samba] how to set share folder for every user ?
Samba Help
Page. 1
Next thread »
[Samba] Error building with Fedora packaging
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 12:58:53, cost 0.02256178855896 ms.