Is there a way to retrieve the LOGONSERVER environment variable in an ASP/MVC3 application, specifically for the browser that initiated the request? When using
Environment.GetEnvironmentVariable("LOGONSERVER");
, it seems to return the logon server for the box where IIS is running.
Fortunately, we can get the user's logon name server-side by accessing
HttpContext.ApplicationInstance.Context.User.Identity.Name
. However, this doesn't provide access to the logonserver information.
Client-side solutions involve using JavaScript to fetch the logonserver data, but this method requires executing CreateObject and triggering an "ActiveX" authorization request in the browser. Are there any alternative approaches to obtaining this information?