I have an intranet site hosted in IIS 5.0 Win2000, and want to display the name of the user logged into the local machines(WinXP) in the pages they access like 'Welcome JohniBravo'.
So, i used the Request.ServerVariables("LOGON_USER"), but get a blank ("") displayed in the page. And i even tried "REMOTE_USER" but, still the same. from somewhere i got to know that theres something called 'Allow anonymous user' should be enabled to get these info from servers. help me with the same?
I know that if you intend to use the LOGON_USER in an ASP page you need to have Windows Authentication selected.
I have a website in one domain which can be accessed by 2 other domains. If I am to change to Windows Authentication, will there be a security issue of any type?
I'm trying to get the NT login id of a user on a web page without making the user type it into a login box. I'm using the LOGON_USER server variable. The problem is, if the web page allows anonymous access, LOGON_USER returns nothing. If the page is set to Basic Security, the NT login popup box comes up, even though the user is already logged into the network, and HAS access to this page.
Moreover, if I try this on my PC instead of our webserver, it works like I would expect. That is, when set to Basic Security, it does NOT pop up a login box if the user is allowed to view the page, and LOGON_USER returns the userid. Is there some setting on the server I need to change? Or something else?
I create a web site in a Windows 2003 server/IIS6, and I used asp pages to get ServerVariables. After I set FrontPage Extension 2002, some ServerVariables like LOGON_USER become null. Any body has an idea?
I have used the same syntax in two pages and sometimes each server variable is return, and sometime it is blank. In fact, I created a test page this morning which worked fine, and then an hour later the variables are blank. I read some of the threads about the anonymous user box in IIS, but this just seems strange.
P.S. Each PC in our environment is authenticated through active directory (just to logon to the PC, not security applied to the web folders).
I'm using Windows Integrated Authentication on my company intranet ASP web site (IIS6 W2K3).
I would like to know how could I get the full Active Directory domain name from the Logon_User variable.
I always get the netbios name of the domain, but I need the full domain name to be able to distinguish users (because actually there is two companies on the intranet having their AD forest linked, but also having some subdomains with identical netbios name !).
I mean, for instance for a user login "theuser" coming from the domain is "thedomain.thecompany.com", I need to get in Logon_User environement variable the following content: "thedomain.thecompany.com heuser" At the moment I only get "thedomain heuser", excepted if I switch to basic authentication, that I don't want.
I have 2 webs under my default web running win2003
1. A front-page intranet 2. A asp (not .net) web is fine
Both allow anonomous access. My front page web always gets a BLANK Request.ServerVariables("Logon_User"). The asp web gets the logon_user OK. Both webs have a global.asa that has Code:
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 same directory.This directory have both Anonymous Access and Integrated Authentication enabled att IIS.
I'm trying to determine whose looking at various pages on our intranet and wanted to use
Request.ServerVariables("logon_user")
but it just gives me a blank value.
I'm thinking its got something to do with Authentification in IIS however when I turn Anonymous users off and use domain users instead it prompts me for a username and password when viewing the webpage ...
I have a non anonymous site in IIS5 The site is for collecting any kind of data from employees. Authentication is done with the server variable "Logon_User"
Pages:
start.asp - Authentification mask appears --> form.asp - form for data input --> form_ack.asp - displays the data again and stores in SQL when acknowledged in checkboxes
After data are stored I'd like to have a button such as "Log off" which points back to start.asp.
In the samples I tried there is always the current logged in user present even when I do a "session.abandon" or "Session.Contents.Remove"
I need to know where I can get information about learning how to code in ASP. This getting cide snippets and such doesn't work out real well if you don't know what to configure. Also I would like to have my own work not someone elses.
In different examples I've seen different ways to do the same thing, and I want to know what is best (fastest, easiest to remember, same command for all types of stuff, etc)
For example, to get data from a database, should I use:
[VBS]set rs = conn.execute sqlstmt[/VBS] or [VBS]rs.Open sqlstmt, conn[/VBS] or something else?
I have a form that I use a few option selections from DB table and a insert script at the end.I'd like to have access to aditional info from the same table after choose an option
I am trying to retrieve data from a dropdown listbox in asp using:
<%Response.Write + Request.Form("cboBox")%>
The problem is that I only retrieve the first value of the option. For example, if my first option was <option value=this that>, I only can retrieve "this". It won't get the second word.
Recently, I came across a site with information to my area of knowledge. The pages have been designed and consist of the .asp extension in the url. I'm not able to select the text on the web page, either click right mouse button or anything to copy the information. when I'm trying to print it is not perfect. So, I would like to know from ASP guru's whether there is any way of saving the information on the web pages, so that the same can be formatted in a word document for printing purpose.
My web site is windows authenticated. When someone connect to my site, I get his SID with a small active X object which uses OpenProcessToken and GetTokenInformation (token user etc ...
But now, I also need the SID list from AD user object SIDHistory. (when a user is moved across domain).
I've got a WYSIWYG editor, that runs off a template page (i.e. template.htm) that gets opened in an iFrame for editing. How can I get it setup so I cange the template at the click of a button? I've tried doing a form with radio buttons, but can't get it to work. For example, the iframe source has been set to "strTemplate". My form processing was along the lines of:
<% If request.form "template" = "template1" then strTemplate = "template1.htm" Else strTemplate = "template.htm"
If request.form "template" = "template2" then strTemplate = "template2.htm" Else strTemplate = "template.htm"
Basically I want to be able to send users (if they sign up to it) an SMS alert whenever someone leaves them a message on a webpage. Similar to Hotmail where you can get an SMS when you receive an email, or Ebay where you can get alerts if you are outbid.
I'm thinking maybe something very similar to CDO in terms of coding Code:
im running an asp page where by i can upload a xls file- which adds data to a database provided it passed validation. this then sends a success message to the user. what i need is a button where i can call the data which was recently added into the database- but dont know how to go about it or code.
<% FOR EACH field IN size_info.FIELDS Response.write("<option value=''>" & replace(field.name, "asize", "") & "</option>") NEXT%>
to loop the names of the fields in a DB, but I cannot get it so that is the value of the data in that field is lower than 5 it simply doesn't show, i thought i might be this
<% FOR EACH field IN size_info.FIELDS if size_info.fields.name.value > 0 then Response.write("<option value=''>" & replace(field.name, "asize", "") & "</option>") end if NEXT%>
Is this the right forum for this. Considering using this but not sure, specially considering the price and I would need to add a host. If you have any knowledge please let me know. Also if this the right forum, also let me know and I will give more details. It is an ASP program of course.
Currently I have one asp page which opens after the proper ID entered by user and it generate <A> tag with application software download link. When the user click on the link (which is pointed to the actual physical file.EXE of Size around 10 - 20 MB) it downloads file. But how do i change the logic so that the activity will get LOG in some text file. Like which user has downloaded which file. (it should log into text file).
I think I need to remove the <A> for direct download instead it shoudl call an asp page whcih should log the event and push the file to user.suggest with sample code if possible.
When you hover over one of the topic in this forum a box appear with the first few lines of the message in it. How is this created. What events area used to creat something similar and does anyone know of any good website where i can look at a tutorial for it.
I dont even know what they are called so dont know what to search for even on the web as if i write pop up i get something else which i dont think is what i really want to use, or maybe it is.
I am working on a users system for my site. I have the databases and most of the pages set up. But, I need to create a page called "My Info". This page would display only the information of the person that is logged in.
I am curious as to how I would retrieve only one entry in an access database and display it based on the person logged in.
if there is a way of verifying information that is in the registry of the user's computer? Or is there a way of checking if a file is on the c: of the user's computer?? I want to make a certain verification of who is entering my website.
but the IP address is never the same (since it is randomly given to the user) and I can't use the LOGON_USER variable because the users are not all in the same domain. And cookies are too easily destroyed with the IE options.