authenticating user in Java
Posted on 2010-11-28
I have a java program running as a server on a remote host. I can connect to it remotely from my local machine with my java client program. In order to protect the server from unwanted intrusion I have a couple of options, one is set up a firewall only allowing connections from certain locations ie my local computer. The other option is to have a username and password set up to authenticate the user. Is it possible to authenticate through the operating system. I so that I can use the same username and password as I would to remotely log in to the OS using the OSs password database to do the authentication instead of worrying about setting up another password file.