Windows Authentication in Java

By Stefan Kowski

If you want to restrict the users of an application, the first solution is to make them authenticate themselves. The user enters his or her user name and password and after successful verification of the values the program can be used.

Since storing login credentials is a problem, I present a simple solution in this article: delegating the authentication function to a Windows domain controller. The user logs on with his or her Windows user name and password, which is checked by the Windows server.

Read more …