[jcifs] DFS and NetworkExplorer

Mike Streeton mike.streeton at ardentia.co.uk
Mon Jul 3 07:56:12 GMT 2006


No windows

www.ardentia.com the home of NetSearch
-----Original Message-----
From: Michael B Allen [mailto:mba2000 at ioplex.com] 
Sent: 30 June 2006 23:11
To: Mike Streeton
Cc: jcifs at lists.samba.org
Subject: Re: [jcifs] DFS and NetworkExplorer

On Fri, 30 Jun 2006 12:28:08 +0100
"Mike Streeton" <mike.streeton at ardentia.co.uk> wrote:

> I have finally got it working. We have two parts of the app that are
> NetworkExplorer like. One is a directory browser and the redirect that
> is generated was generating the wrong url (this is based on the jcifs
> code) the fix was to construct the redirect url:
> 
> 		} catch (DfsReferral dr) {
> 			response.sendRedirect(request.getContextPath() +
> request.getServletPath() + "/"
> 					+ dr.server + "/" + dr.share +
> "/");
> 			response.flushBuffer();
> 			return;
> 		}
> 
> We do not need any other path/query string information.
> 
> The other part of the app allows users to download files. This proved
to
> be more of a struggle, we did not get the dfs redirect if we went
> straight to the file. The solution was to walk the path starting at
the

Was the server Samba?

-- 
Michael B Allen
PHP Extension for SSO w/ Windows Group Authorization
http://www.ioplex.com/


More information about the jcifs mailing list