I have been struggling with this now for about two days to no avail.
When a user loads our app on a browser, the app determines user's machine name and determines whether user should have a Read Only access to the app or Read/Write access based on two AD group names.
If the user does not belong to any of those groups, access to the app is denied the user with a message indicating so.
This works perfectly on my local machine.
However, when I deploy the app to our server, it does not record user's access level and is constantly denying user access to the app.
We have determined that the server can communicate with our AD.
I am pretty stumped by this.
Can someone please help with the code below and see if it could be written differently?
Many thanks in advance.
IPAddress hostIPAddress = IPAddress.Parse(Request.UserHostName);
IPHostEntry hostInfo = Dns.GetHostEntry(hostIPAddress);
string tempSystemName = hostInfo.HostName.Split('.');
WebLibrary.loadUserInformation(Request.LogonUserIdentity.Name, Request.UserHostAddress, tempSystemName);
currentUser.Text = "Current User: " + WebLibrary.visitorFullName + "<br />Access: " + userType + "";
modified 11-Dec-20 13:12pm.