[jcifs] Re: Davenport - Copy Operation Uses Many Ports?

Michael B Allen mba2000 at ioplex.com
Mon Jun 14 03:22:16 GMT 2004


Eric said:
> 1) maintain a mapping of server -> NtlmPasswordAuthentication in the
> user's HTTP session to cache credentials on a per-server basis.  This
> would cut down the number of NTLM handshakes to one per server, rather
> than one per request.

Indeed. See NetworkExplorer which is updated to deal with per-server
cached creds as well has DFS support. I use "npa-" + server to store creds
so you can browse to different servers and not renegotiate. AFAIK this
works ok.

req.getSession().setAttribute( "npa-" + server, ntlm );

Mike


More information about the jcifs mailing list