[jcifs] RE: Lots of jCIFS stuff

Allen, Michael B (RSCH) Michael_B_Allen at ml.com
Fri May 23 12:28:50 EST 2003


Eric,

Test.java doesn't work for me. Does this work with our own NTLMSSP server
implementation. Did something change in 1.4 that affects getResponseCode()?

java.io.IOException: Server returned HTTP response code: 401 for URL: http://httpserver.com:800/servlet/NetworkExplorer/smbserver/
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:562)
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:230)
        at jcifs.http.NtlmHttpURLConnection.doConnect(NtlmHttpURLConnection.java:385)
        at jcifs.http.NtlmHttpURLConnection.connect(NtlmHttpURLConnection.java:67)
        at jcifs.http.NtlmHttpURLConnection.getInputStream(NtlmHttpURLConnection.java:206)
        at java.net.URL.openStream(URL.java:798)
        at NtlmHttpClient.main(NtlmHttpClient.java:41)

Do those 5 classes need to be in the jcifs.smb package? I can publicise the
get*NtlmResponse() methods. Perhaps we should create a jcifs.ntlmssp package?

Mike

> -----Original Message-----
> From:	eglass1 at attbi.com [SMTP:eglass1 at attbi.com]
> Sent:	Thursday, May 22, 2003 7:36 AM
> To:	Michael_B_Allen at ml.com
> Cc:	crh at ubiqx.mn.org
> Subject:	Lots of jCIFS stuff
> 
> Mike/Chris,
> 
> Attached are some things I have been working on, and are finally in a pretty 
> stable state.  I wasn't sure if this was over the size limit for the mailing 
> list, so I figured I would send it to you guys directly; forward it as you see 
> fit.
> 
> This contains the following:
> 
> jcifs.smb.*, jcifs.http.NtlmSsp -- Finished and added the Type-X message 
> objects; changed NtlmSsp to use them instead of building the messages manually.
> 
> jcifs.http.Handler, jcifs.http.NtlmHttpURLConnection -- Uses the Type-X message 
> objects to add support for NTLM to HTTP URL connections.  This is a 
> URLStreamHandler which acts as a wrapper for the default HTTP handler; it 
> performs authentication, then delegates operations to the underlying default 
> handler.  NTLM support was added to Sun's JVM in version 1.4.2, on Windows 
> only; this provides NTLM functionality for other platforms, on any JVM 
> supported by jCIFS (1.3 or higher).
> 
> jcifs.https.Handler -- Extends jcifs.http.Handler to provide NTLM support for 
> HTTPS (in environments which support HTTPS URLs).
> 
> Test.java -- demonstrates the HTTP stuff.
> 
> Eric
>  << File: source.zip >> 




More information about the jcifs mailing list