connection « Container « JSP-Servlet Q&A





1. JCIFS NTLM Authentication for HTTP Connections on GlassFish (or any servlet container)    stackoverflow.com

I've created a Java class that connects to an IIS website requiring NTLM authentication. The Java class uses the JCIFS library and is based on the following example:

Config.registerSmbURLHandler();
Config.setProperty("jcifs.smb.client.domain", domain);
Config.setProperty("jcifs.smb.client.username", user);
Config.setProperty("jcifs.smb.client.password", password);

URL ...