Microsoft Active Directory

Hello!

I am using the Vaadin 14.1.17 Login form (Pro subscription). Login with username and password is working.

Now I want to use user data from Microsoft Active Directory.

I have to detect the logged in Windows user (browsers are Google Chrome, Firefox and Microsoft Edge Chromium edition).

Then I want to check against Active Directory.

Is there a way to do this or do I have to use some JavaScript libraries?

Thank you very much for your help
Thomas

You can authenticate against AD using Java

http://www.javaxt.com/wiki/Tutorials/Windows/How_to_Authenticate_Users_with_Active_Directory

https://stackoverflow.com/questions/390150/authenticating-against-active-directory-with-java-on-linux

Hello Peter!

Many thanks. With these libs I am able to authenticate the user against AD if I know the user.

But my user is working under windows with Firefox or Edge. How ca I authenticate this user against AD? What I have do to to read this user or his Windows-SID in the Vaadin App? Do I need to use some JavaScript to get his name?

Greetings,
Thomas

You can restrict the access to a Apache-Webserver via AD

https://wiki.samba.org/index.php/Authenticating_Apache_against_Active_Directory

https://itwelt.org/anleitungen-howto/windows/336-apache-2-webseiten-authentifizierung-ueber-active-directory

for jetty
https://www.eclipse.org/jetty/documentation/current/configuring-security.html#configuring-security-authentication
See SPNEGO