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,776
Messages
2,569,603
Members
45,200
Latest member
LaraHunley

Latest Threads

Top