From odip@pierino.bionet.nsc.ru  Wed Mar 31 06:57:23 2004
Return-Path: <odip@pierino.bionet.nsc.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DD75416A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 31 Mar 2004 06:57:22 -0800 (PST)
Received: from pierino.bionet.nsc.ru (pierino.bionet.nsc.ru [193.125.179.50])
	by mx1.FreeBSD.org (Postfix) with ESMTP id ABC1443D2F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 31 Mar 2004 06:57:21 -0800 (PST)
	(envelope-from odip@pierino.bionet.nsc.ru)
Received: from pierino.bionet.nsc.ru (localhost [127.0.0.1])
	by pierino.bionet.nsc.ru (8.12.8p1/8.12.8) with ESMTP id i2VEvIAB000447
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 31 Mar 2004 21:57:18 +0700 (NOVST)
	(envelope-from odip@pierino.bionet.nsc.ru)
Received: (from odip@localhost)
	by pierino.bionet.nsc.ru (8.12.8p1/8.12.8/Submit) id i2VEvI8f000446;
	Wed, 31 Mar 2004 21:57:18 +0700 (NOVST)
	(envelope-from odip)
Message-Id: <200403311457.i2VEvI8f000446@pierino.bionet.nsc.ru>
Date: Wed, 31 Mar 2004 21:57:18 +0700 (NOVST)
From: Dmitry A Grigorovich <odip@bionet.nsc.ru>
Reply-To: Dmitry A Grigorovich <odip@bionet.nsc.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] DFS in samba-2.2 don't work with WinXP, Win2003
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         64996
>Category:       ports
>Synopsis:       [PATCH] DFS in samba-2.2 don't work with WinXP, Win2003
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 31 07:00:28 PST 2004
>Closed-Date:    Wed Mar 31 08:13:56 PST 2004
>Last-Modified:  Wed Mar 31 08:13:56 PST 2004
>Originator:     Dmitry A Grigorovich
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
ICiG, Novosibirsk, Russia
>Environment:
System: FreeBSD pierino.bionet.nsc.ru 4.8-RELEASE FreeBSD 4.8-RELEASE #5: Sat Oct 4 02:28:14 NOVST 2003 root@pierino.bionet.nsc.ru:/usr/obj/usr/src/sys/ODIP i386

>Description:
When using DFS share on samba-2.2
clients like WinXP (Win2003) don't follow DFS links
e.g. we have \\server\dfs\archives ==> \\server2\soft
Client enter to \\server\dfs,
but can't change to \\server\dfs\archives and generate error

You may found this patch in samba CVSWEB
Or you may see discussion on forum
http://lists.samba.org/archive/samba/2003-April/065067.html

>How-To-Repeat:
Make dfs share \\server\dfs
Make DFS link \\server\dfs\archives => \\server2\soft
Using WinXP client connect to \\server\dfs
Try to enter to \\server\dfs\archives
You get a error !

>Fix:

Copy patch-aa to /usr/ports/net/samba/files
Reinstall samba port

--- patch-aa begins here ---
===================================================================
RCS file: /cvsroot/samba/source/smbd/trans2.c,v
retrieving revision 1.149.4.98
retrieving revision 1.149.4.99
diff -u -r1.149.4.98 -r1.149.4.99
--- source/smbd/trans2.c	2003/03/07 23:35:00	1.149.4.98
+++ source/smbd/trans2.c	2003/03/25 23:50:47	1.149.4.99
@@ -3043,7 +3043,7 @@
 {
 	char *params = *pparams;
 	enum remote_arch_types ra_type = get_remote_arch();
-	BOOL NT_arch = ((ra_type == RA_WINNT) || (ra_type == RA_WIN2K));
+	BOOL NT_arch = ((ra_type == RA_WINNT) || (ra_type == RA_WIN2K) || (ra_type == RA_WINXP) || (ra_type == RA_WIN2K3));
 	pstring pathname;
 	int reply_size = 0;
 	int max_referral_level;
--- patch-aa ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: glewis 
State-Changed-When: Wed Mar 31 08:13:41 PST 2004 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64996 
>Unformatted:
