get current user information

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 ?
 
A

Anders Norås [MCAD]

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/
 
J

Joyjit Mukherjee

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

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top