473,326 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Getting Network Login via ASP

Hi,

I need to know if its possible to create an ASP page that when requested
will display the network id of the requester.

Most people have told me to query the request.servervariables("LOGON_USER").

But this will get me the login of the server and not the client. In our
situation we do not want to have our users login twice (once to their machine
(the client) and then again to the server (the one that serves the asp page).
I need to know the client logon name.

Thanks.

Thanks.
Jul 19 '05 #1
5 4055
If you set your site to not allow anonymous access and to allow windows
authentication then "logon_user" should return the client's network logon
id. I believe there are some security issues if the server is not in the
client's "local intranet zone" but the login to the server should be
transparent otherwise.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Alex Wolff" <Al*******@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.com...
Hi,

I need to know if its possible to create an ASP page that when requested
will display the network id of the requester.

Most people have told me to query the request.servervariables("LOGON_USER").
But this will get me the login of the server and not the client. In our
situation we do not want to have our users login twice (once to their machine (the client) and then again to the server (the one that serves the asp page). I need to know the client logon name.

Thanks.

Thanks.

Jul 19 '05 #2
Turn off anonymous access and you'll be able to use AUTH_USER. If this is
an intranet and the person loads your page in IE, in default configuration,
in the intranet zone, the person will not be prompted to authenticate.

Ray at work

"Alex Wolff" <Al*******@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.com...
Hi,

I need to know if its possible to create an ASP page that when requested
will display the network id of the requester.

Most people have told me to query the
request.servervariables("LOGON_USER").

But this will get me the login of the server and not the client. In our
situation we do not want to have our users login twice (once to their
machine
(the client) and then again to the server (the one that serves the asp
page).
I need to know the client logon name.

Thanks.

Thanks.

Jul 19 '05 #3
On Wed, 8 Sep 2004 11:25:02 -0700, "Alex Wolff"
<Al*******@discussions.microsoft.com> wrote:
I need to know if its possible to create an ASP page that when requested
will display the network id of the requester.

Most people have told me to query the request.servervariables("LOGON_USER").

But this will get me the login of the server and not the client. In our
situation we do not want to have our users login twice (once to their machine
(the client) and then again to the server (the one that serves the asp page).
I need to know the client logon name.


If they don't log into the domain the web server is in, you won't get
the correct account with this. If they log into the client, ASP can't
do much for you, since ASP is server side and the client has the
information. You'd need to run a client-side script to get the info.

Jeff
Jul 19 '05 #4
"Jeff Cochran" <je*********@zina.com> wrote in message
news:41*****************@msnews.microsoft.com...
On Wed, 8 Sep 2004 11:25:02 -0700, "Alex Wolff"
<Al*******@discussions.microsoft.com> wrote:
I need to know if its possible to create an ASP page that when requested
will display the network id of the requester.

Most people have told me to query the
request.servervariables("LOGON_USER").

But this will get me the login of the server and not the client. In our
situation we do not want to have our users login twice (once to their
machine
(the client) and then again to the server (the one that serves the asp
page).
I need to know the client logon name.


If they don't log into the domain the web server is in, you won't get
the correct account with this. If they log into the client, ASP can't
do much for you, since ASP is server side and the client has the
information. You'd need to run a client-side script to get the info.

Jeff


Hi I have succesfully used this to return the users login detail, but I now
have a new problem I have assigned the login to a Session Variable, however
when I come to use the string stored in the variable it excludes the \ which
seperates the domain from the user name, which really is a pain. Anybody
know why this is happening and how I can overcome it ?

Thanks
Jul 19 '05 #5
There's no reason that should happen. I suggest that you start a ~new~
thread about this and post the code you're using both to put the value into
the session variable as well as the code that you're using to pull it out
and display it.

Ray at home

"dave" <da**@griffineng.co.uk> wrote in message
news:ci**********@sparta.btinternet.com...
Jeff
Hi I have succesfully used this to return the users login detail, but I

now have a new problem I have assigned the login to a Session Variable, however when I come to use the string stored in the variable it excludes the \ which seperates the domain from the user name, which really is a pain. Anybody
know why this is happening and how I can overcome it ?

Thanks

Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Stanley J, Mroczek | last post by:
My disk was replaced and i reload all my software. I think that i named my computer best-si-01 instead of BEST-SI-01 and thats my error? Login failed for user 'NT AUTHORITY\NETWORK SERVICE'....
5
by: owyn | last post by:
One of my coding partners swears you can capture the network login name so that we can use it to set security levels. If that can be done how do you do it. References to articles etc would be...
0
by: Benny Raymond | last post by:
I'm currently writing a time tracking app to replace the one we've had on our intranet for quite some time. I'd like to set this up to communicate with a server side asp page using xml data...
2
by: Fabiano | last post by:
Please, I need to control the user acess into my intranet pages. Is there a way i can get the current user logged at my network, that is acessing a specific page? My idea is to get the user...
3
by: Dan Nash | last post by:
Hi Any ideas on this... having moved the web app to another server, and setup all the WebApp data (disable anonymous access etc), locally my site still asks me for a Username/Password, even...
3
by: Don | last post by:
I'm using FROMS authentication and want to automate the login. Right now I force the user to manually log in. I would like to detect the users network userName and if they have an account I will...
3
by: Tomdhu | last post by:
As a Newbie I've picked up a heap of tips and tricks from this NG but I have been battling to get the current user's Netwok Login ID recorded on a form at the time a new record is created or...
9
by: =?Utf-8?B?UmF5?= | last post by:
Have SQL server on one machine. Have IIS on another machine in same large intranet. Have website in IIS with Basic Authentication turned on and other options deselected. Have webpage (.aspx) with...
5
by: greatjuli | last post by:
Hi, I am trying to develop intranet for my company as the new web admin. When users log in to the network with their username and password, they do not need to login again into the intranet; a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.