Hello,
I'm trying to pull the logon user's name using
Request.ServerVariables("LOGON_USER")...which is returning nothing...so I
need help in determining why it's returning nothing, or I need the format in
which it returns the username so that I can hard code it. Does it return
anything with the username?
Thanks... 5 4364
Hi,
It will be empty if anonymous access is allowed. Deny anonymous
authentication and turn on Basic, Digest or Integrated auth to force
authentication and hence get a value for LOGON_USER server variable.
HTH
"T." <as******@adfasdf.com> wrote in message
news:Oe**************@TK2MSFTNGP10.phx.gbl...
Hello,
I'm trying to pull the logon user's name using
Request.ServerVariables("LOGON_USER")...which is returning nothing...so I
need help in determining why it's returning nothing, or I need the format in
which it returns the username so that I can hard code it. Does it return
anything with the username?
Thanks...
Shiva my friend...this is exactly what I did...and no luck.
strLoginID = Request.ServerVariables("LOGON_USER")
response.write strLoginID
Returns nothing....
"Shiva" <sh******@online.excite.com> wrote in message
news:uy**************@TK2MSFTNGP11.phx.gbl... Hi, It will be empty if anonymous access is allowed. Deny anonymous authentication and turn on Basic, Digest or Integrated auth to force authentication and hence get a value for LOGON_USER server variable.
HTH
"T." <as******@adfasdf.com> wrote in message news:Oe**************@TK2MSFTNGP10.phx.gbl... Hello,
I'm trying to pull the logon user's name using Request.ServerVariables("LOGON_USER")...which is returning nothing...so I need help in determining why it's returning nothing, or I need the format
in which it returns the username so that I can hard code it. Does it return anything with the username?
Thanks...
Do you have only windows authentication on, on the virtual directory your
app is in?
"T." <as******@adfasdf.com> wrote in message
news:O3***************@TK2MSFTNGP09.phx.gbl... Shiva my friend...this is exactly what I did...and no luck.
strLoginID = Request.ServerVariables("LOGON_USER") response.write strLoginID
Returns nothing....
"Shiva" <sh******@online.excite.com> wrote in message news:uy**************@TK2MSFTNGP11.phx.gbl... Hi, It will be empty if anonymous access is allowed. Deny anonymous authentication and turn on Basic, Digest or Integrated auth to force authentication and hence get a value for LOGON_USER server variable.
HTH
"T." <as******@adfasdf.com> wrote in message news:Oe**************@TK2MSFTNGP10.phx.gbl... Hello,
I'm trying to pull the logon user's name using Request.ServerVariables("LOGON_USER")...which is returning nothing...so
I need help in determining why it's returning nothing, or I need the
format in which it returns the username so that I can hard code it. Does it
return anything with the username?
Thanks...
That option is selected but not available...so I tried every possible
combinations for those options...also my web.config authenication is set to
"Windows"
"Marina" <so*****@nospam.com> wrote in message
news:e8**************@TK2MSFTNGP12.phx.gbl... Do you have only windows authentication on, on the virtual directory your app is in?
"T." <as******@adfasdf.com> wrote in message news:O3***************@TK2MSFTNGP09.phx.gbl... Shiva my friend...this is exactly what I did...and no luck.
strLoginID = Request.ServerVariables("LOGON_USER") response.write strLoginID
Returns nothing....
"Shiva" <sh******@online.excite.com> wrote in message news:uy**************@TK2MSFTNGP11.phx.gbl... Hi, It will be empty if anonymous access is allowed. Deny anonymous authentication and turn on Basic, Digest or Integrated auth to force authentication and hence get a value for LOGON_USER server variable.
HTH
"T." <as******@adfasdf.com> wrote in message news:Oe**************@TK2MSFTNGP10.phx.gbl... Hello,
I'm trying to pull the logon user's name using Request.ServerVariables("LOGON_USER")...which is returning
nothing...so I need help in determining why it's returning nothing, or I need the format in which it returns the username so that I can hard code it. Does it return anything with the username?
Thanks...
What do you mean the option for integrated authentication is "selected but
not available"?
If you are using NT authentication, dump the logon_user lookup and go with
User.Idenity.Name.
bill
"T." <as******@adfasdf.com> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl... That option is selected but not available...so I tried every possible combinations for those options...also my web.config authenication is set
to "Windows"
"Marina" <so*****@nospam.com> wrote in message news:e8**************@TK2MSFTNGP12.phx.gbl... Do you have only windows authentication on, on the virtual directory
your app is in?
"T." <as******@adfasdf.com> wrote in message news:O3***************@TK2MSFTNGP09.phx.gbl... Shiva my friend...this is exactly what I did...and no luck.
strLoginID = Request.ServerVariables("LOGON_USER") response.write strLoginID
Returns nothing....
"Shiva" <sh******@online.excite.com> wrote in message news:uy**************@TK2MSFTNGP11.phx.gbl... > Hi, > It will be empty if anonymous access is allowed. Deny anonymous > authentication and turn on Basic, Digest or Integrated auth to force > authentication and hence get a value for LOGON_USER server variable. > > HTH > > "T." <as******@adfasdf.com> wrote in message > news:Oe**************@TK2MSFTNGP10.phx.gbl... > Hello, > > I'm trying to pull the logon user's name using > Request.ServerVariables("LOGON_USER")...which is returning nothing...so I > need help in determining why it's returning nothing, or I need the format in > which it returns the username so that I can hard code it. Does it return > anything with the username? > > Thanks... > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Amitava Bardhan |
last post by:
Request.servervariables("Logon_USer") is working perfectly well for one asp
page returning the NT userid as expected but returning an empty string for
another asp page.Both the asp pages are in the...
|
by: Amitava Bardhan |
last post by:
Request.servervariables("Logon_user") returns and empty
string on one asp page but works perfectly well returning
the NT user id on the other asp page. Both the pages are
in the same directory....
|
by: Amitava Bardhan |
last post by:
Request.servervariable("Logon_User") working perfectly
well returning the NT userid on one asp page but
returning an empty string on the other asp page though
both the asp pages are in the same...
|
by: dmjames |
last post by:
For one of our machines, Request.ServerVariables("LOGON_USER") is
returning the wrong value. Person A is logged into the machine (I
watched him log in), but when he retrieves an aspx page...
|
by: Lyners |
last post by:
We have an intranet where a majority of users are in our active directory,
but not all. We have recently upgraded to using asp.net on our servers and
during the rollout ran into a problem. The...
|
by: Jeff Cochran |
last post by:
First time I've seen this and I'm not even sure where to look for the
answer. An ASP page with only this code:
<% Response.Write "User: " & Request.ServerVariables("LOGON_USER") %>
On most...
|
by: Ryan |
last post by:
I am trying to figure out why
I am trying to use the result of Request.ServerVariables("LOGON_USER")
in a query in my aspx application. I want to use the server variable.
When I check the...
|
by: =?Utf-8?B?QnJhZCBLaW5n?= |
last post by:
I recentlly converted some web services to 2.0. So far everything has worked
great with the exception of one of the functions in an AD service.
the following code:
string sUser =...
|
by: Smurfas |
last post by:
Hi, everything simple:
string strWhatever = Request.ServerVariables("LOGON_USER");
TextBox1.Text = strWhatever;
Found, my Computer name.
But how found another computer name, when I have IP....
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
|
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...
| |