You could query the LDAP record using the Request.ServerVariables("L
Main Topics
Browse All TopicsI have to retrieve the network logon ID and username for an ASP 3.0 app that will run on our company's intranet. Per our network admin, Anonymous Access -AND- Integrated Windows Authentication are both enabled. Our network uses Active Directory. I have very basic skills in maintaining ASP pgms, and even less experience using AD. (But that's why I've come to you, Experts!)
My question:
How can I capture one or both of these values (logon ID/Username) from inside of an ASP pgm? If it is not possible with these IIS 6.0 settings, please explain what would have to change and what impact that would have on existing applications running on this server (so I can try and convince our network admin to change the settings). Many, many thanks in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thanks for the replies - I tried previously dumping various values using Request.ServerVariables. Here's what I got...
= = = = =
You are browsing this site with: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30)
Your IP address is: 141.239.17.70
The DNS lookup of the IP address is: 141.239.17.70
The method used to call the page: GET
The server's domain name: p2.hawaiiantel.com
The server's port: 80
The server's software: Microsoft-IIS/6.0
The remote user logon:
The auth user logon:
The logon_user:
= = = = =
Notice how the auth_user and logon_user are blank. I understand that this is because our IIS 6.0 is set up with Anonymous Access enabled. That is why I'm hoping there is a way to take advantage of our company's use of Active Directory to get this info. Is there a way?
Business Accounts
Answer for Membership
by: mgfranzPosted on 2008-03-13 at 21:33:52ID: 21123091
Try this;
OGON_USER ")
hnologies/ asp/9143.a sp
<%
varUser = request.ServerVariables("L
response.Write varUser
%>
Other ServerVariable properties can be seen here, http://www.devguru.com/tec