We've got ourselves a simple log in form which validates a user's windows log-on username / domain / password.
This has worked fine using the following code :
tbLogin.Text = Environment.UserName;
tbDomain.Text = Environment.UserDomainName;
Previously this would give us something like @
Login Name : User1
Domain Name : Domain1
We have recently changed over our servers and now have an issue whereby the domain name is now showing the local domain name in some cases (not all).
ie.
Login Name : User1
Domain Name : User1
Are we reading the correct values for the domain name of the user running the application ?
Or would a change in server set-up have caused this kind of impact ?
Any help would be appreciated.
Thanks in advance.
Steve.
This has worked fine using the following code :
tbLogin.Text = Environment.UserName;
tbDomain.Text = Environment.UserDomainName;
Previously this would give us something like @
Login Name : User1
Domain Name : Domain1
We have recently changed over our servers and now have an issue whereby the domain name is now showing the local domain name in some cases (not all).
ie.
Login Name : User1
Domain Name : User1
Are we reading the correct values for the domain name of the user running the application ?
Or would a change in server set-up have caused this kind of impact ?
Any help would be appreciated.
Thanks in advance.
Steve.