Using JCIFS for NTLM protocol authentication, generating WS access clients

Source: Internet
Author: User


calling the WebService service deployed on IIS on Windows Server 2012 requires NTLM protocol authentication, in order to generate the client normally using CXF, the first thing to address is the need for Windows NT authentication, You can use an earlier open source Library jcifs.
<span style= "FONT-SIZE:14PX;"      >public static void Main (string[] args) {Config.registersmburlhandler ();      String domain = "domain";      String user = "username";      String password = "password";      Config.setproperty ("Jcifs.smb.client.domain", domain);      Config.setproperty ("Jcifs.smb.client.username", user);      Config.setproperty ("Jcifs.smb.client.password", password);                          try {config.setproperty ("Jcifs.netbios.hostname", Config.getproperty ("Jcifs.netbios.hostname",                    Inetaddress.getlocalhost (). GetHostName ());          Org.apache.cxf.tools.wsdlto.WSDLToJava.main (New string[]{"-P", "Com.test", "-D",                "C:\\test", "-client", "http://test.com/ws?wsdl"});      } catch (Exception ex) {ex.printstacktrace (); }}</span>

expand = =NTLM is an abbreviation for NT LAN Manager, which also illustrates the source of the protocol. NTLM is the standard security protocol for earlier versions of Windows NT, and Windows 2000 supports NTLM to keepBackwards compatible. EarlySmbAgreement inInternetTo transmit the plaintext password. Later, the LAN Manager challenge/response authentication mechanism, called LM, was so simple that it was easily cracked. Microsoft has proposed a WindowsNT challenge/response verification mechanism, calledNtlm. There is now an updated NTLMV2 and Kerberos authentication system. NTLM is a Windows early security protocol that is retained for backward compatibility. NTLM is an abbreviation for NT LAN Manager, which is NT LAN Manager
NTLM Authentication Scheme for httphttp://www.innovation.ch/personal/ronald/ntlm.html
NTLM is a protocol that can make a single point in a domain, and JCISF can be implemented as a libraryhttp://www.cnblogs.com/adylee/archive/2007/11/28/975213.html


Using JCIFS for NTLM protocol authentication, generating WS access clients

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.