Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Users in domain

Status
Not open for further replies.

fmt

Programmer
Aug 5, 2005
53
US
Hello,
How do we find if logon user is member of particular domain?
Thanks
 
If you have anonymous access disabled then you will be able to read the domain name from the Request.ServerVariable collection the same way you get the LOGON_USER.
 
I like to use a little tiny ASP that will show me the current state of my Request.ServerVariables.

Something like this:
[tt]
<table border=1>
<% For Each Foo In Request.ServerVariables %>
<tr>
<td valign=top><%= Foo%></td>
<td valign=top><%= Request.ServerVariables(Foo)%></td>
</tr>
<% Next %>
</table>
[/tt]
 
Thanks again for sharing...
 
For those who want it, here's an ASP file that you can download that will list all the server variables, but will sort the list by variable name:

Download ServerVariables.asp.txt (you may have to "View Source" to see the code)

You will also need the QuickSort function I found in another thread in this forum:

Download QuickSort.inc

If you want to see what the program output looks like, click this link:

Run ServerVariables.asp

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
hi,

Any idea how you could find out the users login credentials e.g domain. if anonymous browsing is enabled?

kind regards
 
Request.servervariables(logon_user)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top