[SCM] Samba Shared Repository - branch v3-0-test updated - release-3-0-28a-16-gcd6d910

Jeremy Allison jra at samba.org
Wed Apr 2 18:24:04 GMT 2008


The branch, v3-0-test has been updated
       via  cd6d910c4dd44a07dd7b8f197d6ea5a441fbefa1 (commit)
      from  4648c1ab78ccf00893c10a024928f165101c8e12 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-0-test


- Log -----------------------------------------------------------------
commit cd6d910c4dd44a07dd7b8f197d6ea5a441fbefa1
Author: Jeremy Allison <jra at samba.org>
Date:   Wed Apr 2 11:23:38 2008 -0700

    Fix MSDFS bug noticed by Ofir Azoulay <Ofir.Azoulay at expand.com>.
    There is no reason to ensure the target host is ourselves, and
    this breaks MS clients in some cases.
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source/smbd/msdfs.c |   27 ---------------------------
 1 files changed, 0 insertions(+), 27 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/msdfs.c b/source/smbd/msdfs.c
index 74acf3d..982d0ae 100644
--- a/source/smbd/msdfs.c
+++ b/source/smbd/msdfs.c
@@ -106,26 +106,6 @@ static NTSTATUS parse_dfs_path(const char *pathname,
 	fstrcpy(pdp->hostname,temp);
 	DEBUG(10,("parse_dfs_path: hostname: %s\n",pdp->hostname));
 
-	/* If we got a hostname, is it ours (or an IP address) ? */
-	if (!is_myname_or_ipaddr(pdp->hostname)) {
-		/* Repair path. */
-		*p = sepchar;
-		DEBUG(10,("parse_dfs_path: hostname %s isn't ours. Try local path from path %s\n",
-			pdp->hostname, temp));
-		/*
-		 * Possibly client sent a local path by mistake.
-		 * Try and convert to a local path.
-		 */
-
-		pdp->hostname[0] = '\0';
-		pdp->servicename[0] = '\0';
-
-		p = temp;
-		DEBUG(10,("parse_dfs_path: trying to convert %s to a local path\n",
-			temp));
-		goto local_path;
-	}
-
 	/* Parse out servicename. */
 	temp = p+1;
 	p = strchr_m(temp,sepchar);
@@ -610,13 +590,6 @@ NTSTATUS get_referred_path(TALLOC_CTX *ctx,
 		return status;
 	}
 
-	/* Verify hostname in path */
-	if (!is_myname_or_ipaddr(dp.hostname)) {
-		DEBUG(3, ("get_referred_path: Invalid hostname %s in path %s\n",
-			dp.hostname, dfs_path));
-		return NT_STATUS_NOT_FOUND;
-	}
-
 	fstrcpy(jucn->service_name, dp.servicename);
 	pstrcpy(jucn->volume_name, dp.reqpath);
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list