Java How to get a username (from a domain).

I need help in the following scenario.

  • Imagine that the end user receives an email (on his desktop) with a link to a web application. This is an application that I created in Java, and it runs on top of the Tomcat servlet on another dedicated computer. This workstation with which the user is logged in is authenticated against the domain controller (active directory).

  • I have seen many commercial applications that also run on top of tomcat and that are somehow tied to Microsoft IIS / AD, so that when an end user accesses their application, they can log in to the domain and log in once It is an embedded Java application. In short, I have to do the same

But where to start? All I know is that at the moment I can’t do this, because

System.getProperty ("user.name"); does not work, as it receives a user who is disconnected from the application. But this is not the case right now. I need to get an auth OS user

  • So, should I bind my Java to Tomcat and establish my last connection with IIS / AD?
  • Or somehow, can I bind a Java application directly to IIS and get a registered user, registered OS?

Thanks a lot Bruno Oliveira

+5
source share
1 answer

The script you mentioned above is called " Single Sign on "

, -.

: Active Directory, Single Sign on Component -.

, IBM developer Works . , , !..

0

All Articles