• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Login using Windows Username and Password with JCIFS

 
Ranch Hand
Posts: 701
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I'm trying to use JCIFS (http://jcifs.samba.org/) to login to my java application using the same Windows Username and Password.

In the "/jcifs_1.1.11/examples/" folder there is a Logon.java file:



I tried to run it using the following command:



But I get the following exception:



I think DOMAIN name is correct because I used the following code to get domain name:



Also tried to change myIPAddress to Primary WINS Server but the same exception occured.

The major problem is how to compare if windows password is correct, because I can get username easily, using System.getProperty("user.home").

I use Windows 2000 Professional.


Thank you.
 
reply
    Bookmark Topic Watch Topic
  • New Topic