Old ASP Windows User Identity
Is there a way in ASP (3.0, not .NET) for me to determine who the current windows users is (i.e. the user who was authenticated and who is "running" this IIS session)?
View RepliesIs there a way in ASP (3.0, not .NET) for me to determine who the current windows users is (i.e. the user who was authenticated and who is "running" this IIS session)?
View RepliesI am doing a webpage which allows different users from various departments to do a search/print information of people within their own department. I have a login page for user to key in the correct password and id before they enter the system. However, in order for the restriction to take place, I will have to ensure that the system recognises the person that is logged into the system.
View Replies View Relatedmy current page protection is unacceptable. I need to get the Windows Login Name of the current person logged in. It will then be no problem to check it against a database. So, how do I get the login of the current windows user?
View Replies View RelatedIs there a way to supply a nt/windows user/password combo in a url for an
automatic login to a nt user/password secured site?
Something like
http://mysite.com[?]user=me[?]password=mypassword
[?] = some sort of marker like ":" is for the port #
Is it possible to get the current user that is logged on to the computer? I
want to use this as the basis of my validation on the site instead of asking
them to login in again. I know it could be a security issue if they keep the
computer unattended.
is it possibile to retrieve the current Windows User Handle from ASP code?
I would like to retrieve the correspondent in ASP for thi piece of ASP.NET
code:
WindowsIdentity id = HttpContext.Current.User.Identity as WindowsIdentity;
if (id != null)
{
IntPtr handle = id.Token;
}
I need to pass "handle" variable to a .NET method (using interop).
How to get the Windows current logged user name using Classic ASP. If no direct way are there any work arounds.
View Replies View RelatedResponse.Write(Request.ServerVariables("AUTH_USER"))
Response.Write(Request.ServerVariables("LOGON_USER"))
i have tried the above and get no output.
I have question about whether it is best to use windows local user accounts to authenticate against when logging into a website OR using SSL for any communication sent to and from the web server. I know these are slightly different issues here, but I will explain my situation.
Clients will log onto my website and will be gived user access based upon their username and password. Therefore I initially wanted to use windows local user accounts and restrict anon access within IIS. However, I am thinking it would be just as secure to use HTML/ASP webpage and database access to the website, as long as the data was encyrpted.
I know in SQL Server that you can increment a field by one with Identity, but have read where if 2 or more people submit information at the same time this number may be duplicated. Is there a way to keep from having an incremental number duplicated if 2 or more people submit information at the same time?
View Replies View Related' Insert a new record into the table
lsSQL = "INSERT INTO tMembers (MemberName) VALUES ('Manohar');" &_
"SELECT @@IDENTITY AS NewID;"
I want to collect one more value from the newly created recordset. It's a replication ID field. Can i add one more item to the values being collected or should i just use another recordset and retrieve data i'm after.
I tried the following:
Set RS=CN.Execute("INSERT into tableX yada yadayada ; SELECT
SCOPE_IDENTITY()")
Using Profiler, I see the statement go through.
But ASP gives me an error saying RS is not an object.
"Operation is not allowed when the object is closed."
In these lines
if not RS.EOF then
theNewId=RS.Fields(0)
end if
If I run the same query in QueryAnalyzer, I do get a return value.
Am I missing something?
I m writing a very typical ASP script which insert a record into one table with an identity column and then get the id generated and insert into another table.
Table_1 columns:
id_1
name
Table_2 columns:
id_1
id_2
But in with the ASP script below, I can't get the id_1 back. Code:
i'm trying to retrieve the @@Identity ID in sql so i can insert it into my other tables. the following code works in access, but not sure how it would retrieve it in sql. Code:
View Replies View Relatedi have a webpage which has 3 forms and each of the form has a about 20 controls. now what i want is to have these controls displayed in a mixed manner on the screen. moreover the ACTION pages of all the three forms are different. so is there anyway in which we can specify that TO WHICH FORM do they belong
my page is something like this
FORM1 starts
TEXTBOX(of FORM1)
FORM2 starts
TEXTBOX(of FORM2)
BUTTON(of FORM1)
END OF FORM1
TEXTBOX(of FORM2)
END OF FORM2
I have made a asp page that accepts some data from user and stores it in MS Access database. Now I want to identify the user who filled the form and store this information in database. About the enviornment.
the server has Windows 2000 server installed. Clients have Windows XP. Server also has Exchange 2003 installed and every client has Outlook Express installed. Every user has to login to his account inorder to use a machine. A given user can login on any machine.
How can i find the identity of the user who submitted the form? Is it possible to find out the current logged in user given the IP address of the machine? If yes, how and will there be any chances of error due to delay in replication?
Is it possible to use <identity impersonate> in ASP?(not ASP.net)
View Replies View RelatedI have some asp that should be inserting a shopper into my SQL Server DB. Code:
View Replies View RelatedI have a web page that adds records to multiple tables. I want to be able to get the new identity of a new record that was just added to the table. If for some reason, it didn't add, I want an error message to show up.
Here's the code in stored procedure for getting the new product id after the record was added. Code:
is there any way I retrieve record identity from data that i just insert in...
View Replies View RelatedAm having a bit of trouble with the @@identity field - I probably just have that friday feeling and am missing off something obvious, but the below code brings back am empty identity value ("sid" appears empty). I've definitely set up an identity field in the tblSurvey:
set rsAdd = Server.CreateObject("ADODB.Recordset")
rsAdd.open "tblSurvey", conn, 3 , 3
rsAdd.AddNew
rsAdd("title") = title
rsAdd("intro") = intro
rsAdd("enddate") = enddate
rsAdd.Update
Set rsIdentity = Conn.Execute("SELECT @@IDENTITY AS sid")
sid = rsIdentity("sid")
....any ideas would be greatly appreciated.
we have just migrated to a new server both with database and web server-
migrating all web projects and all databases.then we decided to rename the
new server.we tried running all web projects on the new server but it doesnt
work causing error "configured identity incorrect, check username and
password" in a certain line in the code.
i have searched for possile solutions like synchronizing identity account in
the 3 locations where this account is stored but it seems it doesnt work.
Earlier i was able to fix scheduled jobs in the database not working caused
by renaming the new server which is also the name of the database server.But
problems in the web files itself (asp) are giving me headache particularly in
code lines with "createobject."
Whats seems to be the particular problem?Can anyone point me to the right
resources to fix this prob?
I am trying to retrieve a record identity from a SQL Server auto-incremented field on insert statement.
Here is the error I am getting can anyone please help me
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert explicit value for identity column in table 'cwm_Report_Request_Form' when IDENTITY_INSERT is set to OFF.
/cwm/Admin/reportrequest.asp, line 66
here is my code:
I have written an ASP.NET 2.0 application that uses Active Directory or ADAM
to manage account users - the site has a page that allows people to create an
account (much like any site). The page populates the AD with all the
information and the user account but I am unable to enable the account.
Microsoft has information on how to do that here -->
http://msdn.microsoft.com/library/d...ting_a_user.asp
(the sample is for Visual Basic) - and I am unable to complete the bottom
portion of the script. Can some one point me in the right direction - or can
you tell me how I can add a snippet of VBscript code to an ASP.NET page.
I am using the Active DS Type library - not sure why there are multiple ones
(System.DirectoryServices) but it is rather confusing - I seem to accomplish
one thing with one and another with the other (they did have trouble
co-existing however). Anyway my script works very well but I am not able to
access the properties required to enable the account.
Here is a simple version (no error checking) of the code.....
how to go about setting up an asp script or flash action script to take the input from a user of his/her username and password then send an email to the user with the information. I am able to do all of this but the problem is that the users pc is the one sending the email. I want the server to send the email instead.
View Replies View RelatedIs it possible to open a new window using ASP? If so, can you control the size and position?
View Replies View Relatedhttp://www.15seconds.com/issue/020118.htm
how to Run IIS on Windows XP Home Edition
does anyone know if you can get iis for windows xp home edition i have xp pro on my desktop but only have home edition on my laptop.
View Replies View Relatedi intend to buy a computer with windows xp.Is there a webserver included (like iis) and if not, how to get one?
View Replies View RelatedI have windows xp professional and i am using asp on it so to give alias to the folder i right click on folder and click on webshare then give alias and type 127.0.0.1/aliasname/but its not working it takes me to other page when it dont found no ASP is working
View Replies View Relatedi want to do is i schedule something send it to another user,within intranet in that user's machine he should get a pop up window about the latest shedule.how can i make this happen?tell me specifically about creating this pop window of this purpose
View Replies View RelatedI am going to purchase Windows XP Pro in order to install IIS. Is IIS included on the OEM version of the software, or is it only included on the full retail version?
View Replies View RelatedI hv asp page which, upon selection from a dropdown,opens a new window (target="_blank") using the selected value as the parameter (page.asp?Test=(dropdown value))
What I want to do is control the look of the new page. I have been told I need to use JavaScript to open the new window. But how do I fire the JavaScript procedure and how do I pass it the selected dropdown value?