In a .net and java application (i mean i have 2 twin apps written in both technologies) I would like to peroform autologin using AD/LDAP. The flow is:
0) user MyDomain\john
logged in in an Windows machine in the MyDomain domain
1) app URL is browsed
2) The app checks whether MyDomain\john
is an AD user correctly logged in
3) if the user is logged in correctly i check in the App DB to see if the MyDomain\john
is mapped in the users table
4) if match is found login is possible, login screen is bypassed and user is authenticated in the app
in principle all i need is to know which is the currently correctly loged in AD user, could you please suggest which .net and java function is needed to perform such check?
Thanks a lot.