Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic Authorization over SSL

Status
Not open for further replies.

moham

Programmer
Nov 12, 2001
13
0
0
US
I want to authenticate a user in the background with a set userid and password (super user) so that the user does not have to log in manually. Then I want to set the authorization header on the page and redirect the user to a resource on the website that is protected. Is this something that can be accomplished usign ASP or do i need a cgi script to do that.

I have done this in the past using java but the server I am working with right now is IIS.

Anyone have any ideas?
 
Try this:

Set RS = Server.CreateObject("ADODB.Recordset")
ntid=Mid(Request.ServerVariables("LOGON_USER"),(instr(1,Request.ServerVariables("LOGON_USER"),"\")+1))
SQL = "SELECT * FROM [User] WHERE (ntuserid = '" & ntid & "') ORDER BY fname,lname"
Set RS = objConnection.Execute(SQL)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top