[jcifs] Re: Accessing protected share from Servlet -- Solution

Michael B Allen mba2000 at ioplex.com
Wed Jan 31 17:30:44 GMT 2007


On Wed, 31 Jan 2007 14:42:25 +0000 (UTC)
David Webster <dave_web at yahoo.com> wrote:

> David Webster <dave_web <at> yahoo.com> writes:
> 
> > 
> > I straightened out my pathInfo by removing a few superfluous "/" so now the 
> > SmbFile being created seems a little better. Before canonicalPath was empty, 
> > now it is there. 
> > 
> > The problem now is that the listFiles in doDirectory is now throwing an 
> > SmbAuthException.
> > 
> > jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad password.
> > 
> > I must be getting really close ... :)
> > 
> > 
> 
> 
> I removed the HttpFilter from in front of the url and it started working.
> 
> I did need to move the resp.setContentType( "text/html" ); line below out = 
> resp.getWriter(); in doDirectory(...).
> 
> Apparently the NetworkExplorer servlet trips on the HttpFilter.

Oh, yeah. The two are mutually exclusive.

Mike

-- 
Michael B Allen
PHP Active Directory SSO
http://www.ioplex.com/


More information about the jcifs mailing list