[jcifs] Accessing protected share from Servlet

Michael B Allen mba2000 at ioplex.com
Tue Jan 30 17:27:56 GMT 2007

On Tue, 30 Jan 2007 15:05:04 +0000 (UTC)
David Webster <dave_web at yahoo.com> wrote:

> I am a newb to jcifs and have been looking over the doc and examples for the 
> last couple days, but I haven't been able to put together a solution that 
> entirely fits my needs:
> 1) NTLM via the HttpFilter. (This works)
> 2) Presentation of files contained in a share with permissions based off of 
> the NTLM authentication created during the HttpFilter authentication.
> I cannot figure out how to apply the permissions verified by the filter to the 
> file share itself.
> The constructor for SmbFile takes either a filePath or a filePath and 
> NtlmPasswordAuthentication. Just using the filePath doesn't work.
> Do I need to renegotiate every request outside of the HttpFilter?
> I hope I am missing something really simple.

It's not. You must renegotiate for each server you talk to. See


Michael B Allen
PHP Active Directory SSO

More information about the jcifs mailing list