Hello, Last week I submitted a problem with msdfs on samba. I didn't receive any reaction. I've also tried the samba-cvs version but this has also problems. We really like to use msdfs from samba, because we want to put all our homedirectories ( more than 4000 ) in one dfsroot. This is not possible with Microsoft's dfs because this has a limit of 1000 .... I didn't found this limit in the samba implementation of dfs. We can mount a drive on NT4 to a samba dfs share. And in explorer we can access this drive and walk trough the directories and files in this share. But after 10-15 minutes ( in which we don't access the share ), when we access the share again, we got error messages that the a file or directory is no longer available. Going back to the root of the share solves this problem. I can create debug log files etc, can somebody who implemented dfs on samba please email me. ( We are use samba on HP/UX 11.00 ) Regards, Eddy Reniers, Philips Research Laboratorie Department Computer Services, \ Eindhoven, The Netherlands Email : c.m.e.reniers@philips.com -------------- next part -------------- HTML attachment scrubbed and removed
c.m.e.reniers@philips.com wrote:> > Hello, > > Last week I submitted a problem with msdfs on samba. > I didn't receive any reaction. I've also tried the samba-cvs version > but this > has also problems. > > We really like to use msdfs from samba, because we want to put all our > homedirectories > ( more than 4000 ) in one dfsroot. This is not possible with > Microsoft's dfs because this > has a limit of 1000 .... I didn't found this limit in the samba > implementation of dfs. > > We can mount a drive on NT4 to a samba dfs share. > And in explorer we can access this drive and walk trough the > directories and files > in this share. But after 10-15 minutes ( in which we don't access the > share ), when > we access the share again, we got error messages that the a file or > directory > is no longer available. Going back to the root of the share solves > this problem.While I'm not a DFS expert, this sounds very much like the NT server idleing the connection. You might want to look into registry hacks to keep the connection open. My understanding is that once the referal is read the samba server is no longer involved in the transation, but I may need to be corrected.> I can create debug log files etc, can somebody who implemented dfs on > samba > please email me. > > ( We are use samba on HP/UX 11.00 ) > > Regards, > > Eddy Reniers, > Philips Research Laboratorie > Department Computer Services, \ > Eindhoven, The Netherlands > > Email : c.m.e.reniers@philips.com-- Andrew Bartlett abartlet@pcug.org.au Samba Team member, Build Farm maintainer abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net
Running two Samba servers (configs shown below). Trying to get MSDFS to work
but getting only partial success.
Server smb2 is the MSDFS host. It's running Samba 2.2.3a on RedHat 7.1.
Samba was compiled on this computer using the --with-msdfs switch. The program
"testparm" shows no errors.
Server smb1 has the Public share that I want to be seen on smb2. It's
running Samba 2.2.1a on RedHat 7.1. Again, "testparm" shows no
errors. It's Public share has the directory structure shown below (as seen
by Microsoft Windows Explorer).
Public
|
|--ISCOMM
|
|--PAO
I stopped Samba on smb2, went to /usr/local/UDrive and issued the following
command:
ln -s msdfs:smb1\\Public others
and then restarted Samba.
After the above, when I look at the share on smb2 in Network Neighborhood (on a
Win93SE PC and on a Win2K Pro PC), I see the "others" folder, but
can't see the ISCOMM and PAO directories below it.
I've been over and over the documentation (titled: "Hosting a
Microsoft Distributed File System Tree on Samba") and I'm stumped as to
what to do next.
In all other respects, 2.2.3a is working just fine.
Thanks for any help,
Marion D. Haines
Network Administrator
Board of County Commissioners
Brevard County, Florida
==================================
EMail: marion.haines@countygovt.brevard.fl.us
Phone: 321-617-7398
==================================
# Samba config file created using SWAT
# Date: 2002/02/11 09:49:43
# Global parameters
[global]
workgroup = EOC
netbios name = SMB2
server string = Server Samba2, Version %v
interfaces = 192.168.233.10/255.255.255.0
encrypt passwords = Yes
smb passwd file = /usr/local/samba/private/smbpasswd
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password*
%n\n *passwd*all*authentication*tokens*updated*successfully*
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
name resolve order = wins lmhosts host bcast
time server = Yes
deadtime = 15
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
domain admin group = root @sadmin
logon script = scripts\sstartup.bat
logon path =
logon home =
domain logons = Yes
os level = 64
preferred master = True
domain master = True
dns proxy = No
wins server = 192.168.204.40
host msdfs = Yes
write list = @sadmin
printer admin = @sadmin
create mask = 0755
printing = lprng
dos filetimes = Yes
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
printer driver file =
browseable = No
[UDrive]
comment = SAMBA folder for user data storage.
path = /usr/local/UDrive
read only = No
create mask = 0766
msdfs root = Yes
[print$]
comment = Samba share for print driver storage.
path = /usr/local/samba/printers
admin users = @sadmin
create mask = 0775
directory mask = 0775
guest ok = Yes
[netlogon]
comment = The STGroup domain logon service.
path = /export/samba/netlogon
read only = No
browseable = No
share modes = No
[profiles]
comment = NT profile location setup.
path = /export/smb/profiles
read only = No
create mask = 0600
directory mask = 0700
browseable = No
==================================================
# Samba config file created using SWAT
# Date: 2002/02/11 09:48:58
# Global parameters
[global]
workgroup = STGROUP
netbios name = SMB1
server string = Server Samba1, Version %v
interfaces = 192.168.204.40/255.255.255.0
encrypt passwords = Yes
smb passwd file = /usr/local/samba/private/smbpasswd
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password*
%n\n *passwd*all*authentication*tokens*updated*successfully*
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
name resolve order = wins lmhosts host bcast
time server = Yes
deadtime = 15
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
domain admin group = root @sadmin
logon script = scripts\sstartup.bat
logon path =
logon home =
domain logons = Yes
os level = 64
preferred master = True
domain master = True
dns proxy = No
wins support = Yes
write list = @sadmin
printer admin = @sadmin
create mask = 0755
printing = lprng
dos filetimes = Yes
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
printer driver file =
browseable = No
[UDrive]
comment = SAMBA folder for user data storage.
path = /usr/local/UDrive
read only = No
create mask = 0766
[print$]
comment = Samba share for print driver storage.
path = /usr/local/samba/printers
admin users = @sadmin
create mask = 0775
directory mask = 0775
guest ok = Yes
[netlogon]
comment = The STGroup domain logon service.
path = /export/samba/netlogon
read only = No
browseable = No
share modes = No
[profiles]
comment = NT profile location setup.
path = /export/smb/profiles
read only = No
create mask = 0600
directory mask = 0700
browseable = No
[Public]
comment = For file transfer between offices using MSDFS.
path = /usr/local/UDrive/Public
admin users = @sadmin
read only = No
create mask = 0744
guest ok = Yes
dos filemode = Yes
I am using MSDFS with Samba 4a15 and everything is working when I go to the IP address or the name of the system. The problem started when I clustered the system using Heartbeat. The cluster is working but when I go to the IP address of the Cluster the DFS links do not forward me to the to the right location, it just opens to a blank folder. S if I go to the IP address of ether of the computers in the cluster everything works but if I go to the virtual IP address of the cluster the DFS does not work. ANY ideas. Thanks
sorry I meant Samba 3 alpha 15 -----Original Message----- From: Charles Marcus [mailto:CharlesM@Media-Brokers.com] Sent: Friday, March 22, 2002 7:40 AM To: Samba Maillist (E-mail) Subject: RE: [Samba] MSDFS What the heck is Samba 4a15??> From: samba-admin@lists.samba.org > [mailto:samba-admin@lists.samba.org]On > Behalf Of Harlan Richard C > Sent: Friday, March 22, 2002 8:14 AM > To: 'samba@lists.samba.org' > Subject: [Samba] MSDFS > > I am using MSDFS with Samba 4a15 and everything is working-- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Harlan,
Could you try this patch to see if this fixes your problem?
Thanks,
Shirish
Index: msdfs.c
==================================================================RCS file:
/data/cvs/samba/source/msdfs/msdfs.c,v
retrieving revision 1.10.4.20
diff -u -r1.10.4.20 msdfs.c
--- msdfs.c 2002/03/25 17:58:09 1.10.4.20
+++ msdfs.c 2002/03/26 02:31:04
@@ -22,7 +22,7 @@
#include "includes.h"
-extern pstring global_myname;
+extern fstring local_machine;
extern uint32 global_client_caps;
#ifdef WITH_MSDFS
@@ -346,10 +346,15 @@
parse_dfs_path(pathname, &dp);
/* Verify hostname in path */
- if (global_myname && (strcasecmp(global_myname, dp.hostname) != 0)) {
+ if (local_machine && (strcasecmp(local_machine, dp.hostname) != 0)) {
+
+ /* Hostname mismatch, check if one of our IP addresses */
+ if (!ismyip(*interpret_addr2(dp.hostname))) {
+
DEBUG(3, ("get_referred_path: Invalid hostname %s in path %s\n",
- dp.hostname, pathname));
+ dp.hostname, pathname));
return False;
+ }
}
pstrcpy(jn->service_name, dp.servicename);
@@ -662,11 +667,15 @@
parse_dfs_path(pathname,&dp);
- /* check if path is dfs : check hostname is the first token */
- if(global_myname && (strcasecmp(global_myname,dp.hostname)!=0))
{
+ /* check if path is dfs : validate first token */
+ if (local_machine &&
(strcasecmp(local_machine,dp.hostname)!=0)) {
+
+ /* Hostname mismatch, check if one of our IP addresses */
+ if (!ismyip(*interpret_addr2(dp.hostname))) {
DEBUG(4,("create_junction: Invalid hostname %s in dfs path
%s\n",
dp.hostname, pathname));
return False;
+ }
}
/* Check for a non-DFS share */
@@ -802,7 +811,7 @@
jn[cnt].referral_count = 1;
slprintf(alt_path,sizeof(alt_path)-1,"\\\\%s\\%s",
- global_myname, service_name);
+ local_machine, service_name);
ref = jn[cnt].referral_list = (struct referral*) malloc(sizeof(struct
referral));
if (jn[cnt].referral_list == NULL) {
DEBUG(0, ("Malloc failed!\n"));
-----Original Message-----
I am using MSDFS with Samba 4a15 and everything is working when I go to
the IP address or the name of the system. The problem started when I
clustered the system using Heartbeat. The cluster is working but when I go
to the IP address of the Cluster the DFS links do not forward me to the to
the right location, it just opens to a blank folder. S if I go to the IP
address of ether of the computers in the cluster everything works but if I
go to the virtual IP address of the cluster the DFS does not work. ANY
ideas. Thanks