[jcifs] DFS and NetworkExplorer
Michael B Allen
mba2000 at ioplex.com
Fri Jun 30 22:11:27 GMT 2006
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