Capture Handle using authentication

S

sck10

Hello,

I want to allow all users on our company intranet (domain\handle) to enter
our website. However, I would like to capture the handle of the person
entering my website. I was told that if I turn on Enable Anonymous Access
and Integrated Windows Authentication, that all users will pass through, and
there is a way to capture their handle. Is this possible?

Right now I have Integrated Windows Authentication turned on and using the
following to capture the handle:

strSubmitterHandle = Mid(User.Identity.Name, InStrRev(User.Identity.Name,
"\") + 1)

Any help with this would be appreciated.
 
B

bruce barker \(sqlwork.com\)

if you turn on anonymous, then the users id is not passed to the webserver.
 
W

Walter Wang [MSFT]

Thanks Bruce for your input.

Hi sck10,

Based on my understanding, your question is: it possible to capture the
user identity while both Anonymous Access and Integrated Windows
Authentication are enabled? If I've misunderstood anything, please feel
free to post here.

When Anonymous Access is enabled in IIS, IIS will authenticate using a
pre-determined account and the request will use the default ASP.Net
account. Once this is set, no authentication will be made against the user
regardless of any other selected authentication modes.

If we want authenticated request to obtain the user's actual identity, we
need to deselect the Allow Anonymous with IIS.

Hope this helps. Please feel free to post here if anything is unclear.

Regards,
Walter Wang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
W

Walter Wang [MSFT]

You're welcome. Please feel free to post here if anything is unclear.


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top