Get UserName from Active Directory
-
I want to be able to get the windows Username of the user on my system from Active directory. Anyone know how to do this? macca
-
I want to be able to get the windows Username of the user on my system from Active directory. Anyone know how to do this? macca
It can be done, but it means granting appropriate privleges to the context under which your site runs, which is not always a good idea.
-
It can be done, but it means granting appropriate privleges to the context under which your site runs, which is not always a good idea.
Sure it can be a mess... but in case you want to retrieve the username of whoever is using your app in the other side, I believe a simple My.User.Name in the codebehind may work.
Kazz
"Users are there to click on things, not think. Let the archs do the damn thinking."