Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NT domain login and password  RSS feed

 
damien farry
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am trying to get the NT domain name and domain password of a user using an intranet application so that it can autologin the user after authentication. How do i get the NT domain name and password using java
Thanks
Damien
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is you're talking about having a "single sign-on" type feature whereby users just get automatically logged in to your app then that's a good question, and one that many people have asked in the past. Unfortunately, there isn't an easy solution since you basically have to build/simulate the NTLM authentication mechanism into the container. It's a strange double handshaking protocol that isn't particularly documented. I have seen some stuff on the internet about how it works, but I've never actually come across anybody that has implemented it.
Anybody else know of anything? Perhaps 3rd party products and/or libraries?
Simon
[ July 17, 2002: Message edited by: Simon Brown ]
 
Huang Qingyan
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java may not be capable of doing this. Try using C/C++ to do it.
 
Vishal Pai
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Signed applets can get you the user name.
using System.getProperty("user.name");
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!