Hello All
Was working with some login stuff today morning found there is no good way to get details about user login id and the domain he logged in ex:- standalone application and web application. Let me give brief idea about the application I am working, this application exists in two flavors as think client- standalone app and think client web app.
For example in Windows, I know we can use NTSystem class to get name and domain, but this code doesn't compile in unix environment and it will fail in web application as well. I googled and found there is an API NTLM which talks to brower and get loginId and doamin information but it only works for Internet explorer.
Is there any way to make this complex stuff look simple and understandable and works in all situations.
Sample Code1:
com.sun.security.auth.module.NTSystem NTSystem = new com.sun.security.auth.module.NTSystem();