Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Help needed - ASP with windows integrated authentication

Reply
Thread Tools

Help needed - ASP with windows integrated authentication

 
 
sorin
Guest
Posts: n/a
 
      01-24-2005
I developed some simple ASP 3.0 pages to add some operative functionality to
my app. I configured IIS to use windows integrate authentication for this
pages and it's working just fine.

For security reasons (audit) I need to trace down the username that
requested this page. I already have a custom service called from ASP page
that trace down some data I need. It's there a way to find out what is the
windows username that requested the page so I can pass this information to my
audit function?

Any help it's appreciated!

Best Regards.

Sorin
 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      01-24-2005
sorin wrote:
> I developed some simple ASP 3.0 pages to add some operative
> functionality to my app. I configured IIS to use windows integrate
> authentication for this pages and it's working just fine.
>
> For security reasons (audit) I need to trace down the username that
> requested this page. I already have a custom service called from ASP
> page that trace down some data I need. It's there a way to find out
> what is the windows username that requested the page so I can pass
> this information to my audit function?
>
> Any help it's appreciated!
>
> Best Regards.
>
> Sorin


Response.Write request.servervariables("logon_user")

This will only contain a value if Anonymous access is disabled.

For more, look up ServerVariables at msdn.microsoft.com/library

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
Reply With Quote
 
 
 
 
Jim in Arizona
Guest
Posts: n/a
 
      01-24-2005
--SNIP--
>
> Response.Write request.servervariables("logon_user")
>
> This will only contain a value if Anonymous access is disabled.
>
> For more, look up ServerVariables at msdn.microsoft.com/library
>
> Bob Barrows
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
>


I've been using Request.ServerVariables("AUTH_USER"), which returns the same
information as LOGON_USER. Is there any advantage to using one over the
other?

Jim


 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      01-24-2005
Jim in Arizona wrote:
> --SNIP--
>>
>> Response.Write request.servervariables("logon_user")
>>
>> This will only contain a value if Anonymous access is disabled.
>>
>> For more, look up ServerVariables at msdn.microsoft.com/library
>>
>>

>
> I've been using Request.ServerVariables("AUTH_USER"), which returns
> the same information as LOGON_USER.


Not always

> Is there any advantage to using
> one over the other?
>

From msdn library:
AUTH_USER Raw authenticated user name.
LOGON_USER The Windows account that the user is logged into.

As you say, they may contain the same information, esp. if Anonymous is
turned off. One is more explicit than the other (its definition, that is)

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java - Integrated Windows Authentication - NTLM Authentication Forwarding Will Java 5 12-03-2005 01:00 AM
Integrated Windows Authentication in ASP.NET grey ASP .Net 0 11-25-2005 03:43 AM
Integrated Windows Authentication, ASP.NET and FoxPro Amedee Van Gasse ASP .Net 2 06-16-2005 03:33 PM
SQL integrated authentication when using forms authentication Brett Smith ASP .Net 2 10-26-2004 02:15 PM
Basic Authentication v. Integrated Windows Authentication w/ Delegation Mark ASP .Net 0 01-20-2004 03:13 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57