get current user information

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to get the current username (or other information) about the user who
is currently logged on in the windows 2000 domain.
I thought about user.identity.name, but it returns an empty string.
Any suggestions ?
 
I want to get the current username (or other information) about the user
who
is currently logged on in the windows 2000 domain.
I thought about user.identity.name, but it returns an empty string.
Any suggestions ?
You must deny all unauthenticated users by adding a
<deny users="?" /> element to the authorization element in your web.config
file.

Anders Norås
http://dotnetjunkies.com/weblog/anoras/
 
Hi,

I suppose you are talking about ASP .NET apps and Integrated Windows
authentication. Open the Virtual Dir for the project in IIS, Right Click ->
Properties -> Directory Security Tab -> Click Edit -> Uncheck the Anonymous
access check box.

HTH
Regards
Joyjit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top