[jcifs] NTLM authentication through Java application

Omprakash Ahirwar omprakash_ahirwar at rediffmail.com
Mon Mar 29 06:01:24 GMT 2004


HTML attachment scrubbed and removed
-------------- next part --------------
Hi , 

I ' ve downloaded the jCIFS ..."jcifs-0.8.2.zip" and I m using the following lines of code for the NTLM - Authentication by using the jCIFS..

###CODE#####
    .........
    .........
       jcifs.Config.setProperty("username" ,"MyUserName");
       jcifs.Config.setProperty("password" , "MyPassword");
       jcifs.Config.setProperty("domain" ,"MyDomainName");
    .........
    .........

       jcifs.Config.registerSmbURLHandler();             
           
       URL url = new URL("http://www.google.co.in");
           
        HttpURLConnection aConnection = (HttpURLConnection)(url.openConnection());
    .........

###CODE#####

This code is working FINE in the  "JDK 1.4.X_XX" .
But the Same Code is NOT working in the  "JDK 1.3.1_XX "...
I ' ve tried  the Same Code in the "JDK 1.3.1" , "JDK 1.3.1_11" , 
    "JDK 1.3.1_02" , "JDK 1.3.1_06" ....

The Exception thrown in all cases .... "UnknownHostException : for  http://www.google.co.in "

PLZ , let me know (for making it compatible with JDK 1.3.1_XX) ...
Is there some other way/method to make it 
work in  "JDK 1.3.1_XX" ...!!!

            Thanks in Advance .

With regards
Omprakash & Anurag 

Omprakash Ahirwar


More information about the jcifs mailing list