File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes NT login - triggered by Java App Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "NT login - triggered by Java App" Watch "NT login - triggered by Java App" New topic
Author

NT login - triggered by Java App

Tom Flanagan
Greenhorn

Joined: Mar 03, 2004
Posts: 5
I assume the answer to my question is a bit to complicated to give here, but perhaps someone can point me towards a book or webpage that covers it.
Here is what I would like to do: I�d like to have the user to enter the login and password and receive an answer indicating if they are a valid user. The username and password would be validated by the NT machine they�re on, or by some server on the domain.
I don�t really want or need to know what the login and password is (this isn�t for hacking in any way). Just to passing the values to a class and receiving a boolean back would be fine. Or, easier still � just to trigger a class that will handle it all, including username / password entry plus validation, again giving an indication if a valid user or not.
Is this possible? And if so, can someone point me in the right direction for information on how to do it?
Thanks
Don Kiddick
Ranch Hand

Joined: Dec 12, 2002
Posts: 580
if they're logged onto the machine, surely you know that they have a valid username & password. Why do you want to check again ?
D.
Tom Flanagan
Greenhorn

Joined: Mar 03, 2004
Posts: 5
Here�s the deal, we have a requirement at our work place that states that if someone is away from their machine for longer than 30 min � the screen saver comes on. This windows screen saver requires them to log back in to get back to the desktop.
Problem is � some people might be away from their desk � perhaps lunch � for an extended period. If they left some bit of software locking a record and causing problems to other users, there is no way to get back to their desktop at all (other than knowing their password / login).
If you put another user name and password in there, you can get to A desktop, but not theirs, and all the software running on their machine is rather rudely shut down in the process � causing problems with half entered records or corrupted files.
If I could have a Java screen saver running and a supervisor group set up on the NT domain that would allow certain people to login (via Java) and return to the original desktop, they could then gracefully close down the software that was left open, or release locks � etc.
Don Kiddick
Ranch Hand

Joined: Dec 12, 2002
Posts: 580
So you are saying that you plan to disable the windows screen saver/locking mechanism and implement your own in Java ? Wont it rather easy to circumvent the locking using ctr-alt-del or am I missing something ?
An alternative solution would be to start a timer whenever a user indefinitely locks a resource and roll back any changes after n-seconds.
D.
Tom Flanagan
Greenhorn

Joined: Mar 03, 2004
Posts: 5
Except the applications that would need to be rolled back aren't written in Java. So I don't have any control over them.
Don Kiddick
Ranch Hand

Joined: Dec 12, 2002
Posts: 580
Ok. I'm still worried that the "locking" your Java screen saver will do of the desktop will be rather easily cirumvented.
If you want to do username authentification you'll need to do a JNI call. Not an area of experise for me but I'm sure the code is on the internet somewhere.
Throwing another idea out....administrators can unlock locked workstations without rebooting them, right ? Is it possible to have an admistrator account that can unlock workstations and not much else ? A select group of people could then use this account to unlock locked workstations.
D.
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
Yes, an admin can unlock a workstation, however, the problem is that if an admin unlocks (by using his admin user/pass), a new desktop is loaded. Any previous work by the orignal user will be lost.
Tom Flanagan
Greenhorn

Joined: Mar 03, 2004
Posts: 5
Exactly.
Looking into JAAS...
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

So - you want a screensaver to with password, but it needn't be the Windows-NT password.
And you wan't a supervisor-password, which will unlock every screensaver.
Why don't you implement a own password-system, perhaps md5sum-decoded in your database and a supervisor password.
You only have to advice the users, to use a DIFFERENT password.


http://home.arcor.de/hirnstrom/bewerbung
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NT login - triggered by Java App
 
Similar Threads
FilterChain problem? Supporting NT Auth and Username/Password Auth
A small question
trying to do a loop
Help with this code!
Class Loader w/ AES Encryption