473,796 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

grabbing the login name

Intranet application.

strLogon= Replace(Request .ServerVariable s("LOGON_USER") ,"DOMAIN\"," ")
The above line is used by several pages on my browser-based app to obtain
the Windows login name for the user. Of course, I replaced our domain name
with the generic word "DOMAIN" here, but the point is that I am trying to
get that name and store it into a variable.

It works fine in Production, but not on my dev box, which is on the network
and is very similar to the Production server (Same OS, for example).

On my dev box, it doesn't return anything, but in Production, it will return
jsmith, mjones, etc.

It's not a showstopper, but a bit of an annoyance. Would you have any idea
why I'm not able to get the logon value on my one box but still get it on
the other, using the same code?


May 22 '07 #1
2 2862

"Middletree " <mi********@hot tttttttmail.com wrote in message
news:eO******** ******@TK2MSFTN GP02.phx.gbl...
Intranet application.

strLogon= Replace(Request .ServerVariable s("LOGON_USER") ,"DOMAIN\"," ")
The above line is used by several pages on my browser-based app to obtain
the Windows login name for the user. Of course, I replaced our domain name
with the generic word "DOMAIN" here, but the point is that I am trying to
get that name and store it into a variable.

It works fine in Production, but not on my dev box, which is on the
network
and is very similar to the Production server (Same OS, for example).

On my dev box, it doesn't return anything, but in Production, it will
return
jsmith, mjones, etc.

It's not a showstopper, but a bit of an annoyance. Would you have any idea
why I'm not able to get the logon value on my one box but still get it on
the other, using the same code?
Probably because your website on the dev box has anonymous access turned on.
Switch it off.
May 24 '07 #2
That was it. Thanks!
Probably because your website on the dev box has anonymous access turned
on.
Switch it off.


May 24 '07 #3

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

Similar topics

0
1291
by: Matthew Leiderman | last post by:
Hello, I am working on automating a workflow process for my company. Part of the process requires the user to send a snapshot of their benefits from a secure web site to their manager. I am trying to extract the web page using Microsoft.XMLHTTP but am having problems due to user validation which is required to access the benefits web page. There are 2 layers: First, user is required to login with user name and password, then user is...
3
2209
by: Tom Petersen | last post by:
My users logon to the Patriot domain, my intranet is on sdsddata01 server. I have a form that people have to click on a dropdown list to pick their name from the list when submitting a form. Is there any way to grab their username via ADSI so I can query it against a database that will get submitted against a form. I have seen a few arcticles regarding this but I couldn't make sense of them. They are already authenticating when they...
4
1310
by: InvisibleMan | last post by:
Hi, Thanks for any help in advance... I'm wondering if anyone knows how or has the resource for graabing a users email address without them knowing? Before I hear all the 'Its not ethical' blurb - I know and my use is legitimate... I am build an e-commerce store and as well as grabbing the users IP at point of sale, i think it would be invaluable to grab a
4
1394
by: darrel | last post by:
I have a contact form that a person submits to the server. In ASP, you'd make a page, post the form to another page, which would grab the values and do somethign with them. in ASP.NET, it appears that you grab the values directly from the form objects on the postback. Here's our problem:
5
1924
by: joe_doufu | last post by:
Hi, old web developer, new to Ajax and XML here. I'm developing an application that grabs an XML file from a (PHP) web service. In fact, it's going to be an online game. When the user clicks a map location it accesses a service that provides information about that location in a form something like this: <maplocation locID="###" picturesrc="image.jpg"> <name>...</name> <breadcrumbs>...</breadcrumbs> <description>...</description>
0
976
by: bsdixon21222 | last post by:
Hello all, I have a unique situation. I am currently trying to save a complete web page that requires you to login with a user name and password. To be more specific, here is the web page I want. www.eventid.net This site requires you to have a subscription in order to see all the event IDs. What I would like to do is have those event IDs stored locally on my compuet. Now I could do this by logging in, saving each of the 65,000 pages,...
4
8592
by: Freedolen | last post by:
Hi All, I had a perl script which is used to login in a web page, but it gives the error as "301 Moved Permanently". What does this means and how can it be rectified? Can anyone help on this? Code Snippet: use HTTP::Cookies; use HTTP::Request;
22
1880
by: pbd22 | last post by:
Hi. I am building a custom telnet interface and my problem is that I want to read the user input along with the previously written stream. Right now I am logging the user. I have Login: Bill
3
6227
by: satishknight | last post by:
Hi, Can some one tell me how to change the validation sequence for the code pasted below, actually what I want it when any one enters the wrong login information (already registered users) then it has to tell then them its wrong information but currently it takes then to a next page and then tells them its incorrect information. This is tedious as every time they enter wrong they will be redirected to a different page and then they have to...
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10452
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10221
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10169
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5569
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.