Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

NTLM on Mac OS X

843798Jul 14 2008 — edited Feb 2 2009
Hi,

I'm trying to load a page with a Java applet in it on a Mac running OS X 10.5.4. The Mac is running J2SE 5.0. I tried using Firefox 3.0 and Safari 3.1.2
The website is hosted on IIS on a Windows PC, and it uses NTLM for authentication. As soon as the Mac tries to load the Java applet, it gets a 401 (Access Denied) with a NTLM negotiation request in it. This happens in a lot of pages and in any other case results in the browser sending a new GET request with NTLM authentication. The JRE (1.5.0_13) doesn't respond to this 401 though, it just stops loading the applet. It then shows an authentication dialog, but even filling in the proper authentication here doesn't work. In some cases in Firefox 3 the authentication dialog even freezes the browser.

Here's what the Java console shows:
MRJ Plugin for Mac OS X v1.0.1
[starting up Java Applet Security @ Mon Jul 14 12:09:41 CEST 2008]
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@d0d45b, refcount=1
basic: Loading applet/u2026
basic: Initializing applet/u2026
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@d0d45b, refcount=2
basic: Releasing classloader: sun.plugin.ClassLoaderInfo@d0d45b, refcount=1
basic: httpCompression = true
network: Connecting http://10.47.26.91/tms/Tandberg/Tms/UI/Monitoring/conferencecontrol.jar with proxy=DIRECT
network: Connecting http://10.47.26.91/tms/styles/Default/icons/java.gif with proxy=DIRECT
network: Searching for authentication for protocol=http, siteName="10.47.26.91", port = 80, scheme=ntlm, realm=, requestingURL="http://10.47.26.91/tms/styles/Default/icons/java.gif, isProxy = no
network: None found
network: Firewall authentication: site=/10.47.26.91:80, protocol=http, prompt=, scheme=ntlm
basic: User selected: 0{code}

This is the tag it's trying to load the applet from:
{code}<object name='cccApplet' id='cccApplet' classid='clsid:8AD9C840-044E-11D1-B3E9-00805F499D93' style='position: relative; top: 0; height: 100%; width: 100%;' codebase='https://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab' viewastext><param name='scriptable' value='true' /><param name='code' value='no.tandberg.tms.ccc.gui.overview.CCCApplet.class' /><param name='image' value='/tms/styles/Default/icons/java.gif' /><param name='codebase' value='/tms/Tandberg/Tms/UI/Monitoring' /><param name ='archive' value='conferencecontrol.jar, graph.jar, common.jar' /><param name ='language' value='en-US' /><param name ='locale' value='en-GB' /><param name ='debug' value='true' /><param name ='show' value='' /><param name ='conferenceId' value='' /><param name ='canApprove' value='True' /><param name ='canUpdateAll' value='True' /><param name ='canUpdateOwn' value='True' /><comment><embed type='application/x-java-applet' style='position: relative; top: 0; height: 100%; width: 100%;' scriptable='true' code='no.tandberg.tms.ccc.gui.overview.CCCApplet.class' image='/tms/styles/Default/icons/java.gif'' codebase='/tms/Tandberg/Tms/UI/Monitoring' archive='conferencecontrol.jar, graph.jar, common.jar' language='en-US' locale='en-GB' debug='true'  show=''  conferenceId=''  canApprove='True'  canUpdateAll='True'  canUpdateOwn='True' ></embed></comment></object>{code}

Are there known problems with the JRE and NTLM on Mac OS X? I can't get the applet to load while NTLM is turned on in the web server                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 2 2009
Added on Jul 14 2008
4 comments
425 views