[jcifs] jcifs NTLM authentication in an Applet.

Asher mezlick at yahoo.com
Thu Oct 23 07:05:03 EST 2003

I am having problems with my Java Applet attempting to
authenticate using http with an MS Web server. The
Applet returns a 401 authorization failed. When I use
the same code in a Java application everything works
fine.  Here is the code in question:


            jcifs.Config.setProperty( "username",
"foo" );
            jcifs.Config.setProperty( "password",
"password" );
            jcifs.Config.setProperty( "domain", "Dev"

            strSrcURL =
            url = new URL( strSrcURL );
            InputStream in = url.openStream();  
             [do stuff with stream]


I noticed in the debugger, the Java application was
checking for the protocol handlers when an
OpenConnection() occurred.  The applet seemed to skip
this check and always used the Java default protocol
Anyone have similar problems or know of what I may be
doing wrong?  

I am using Java 1.3.1_06 and jcifs_0.7.14.


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

More information about the jcifs mailing list