473,713 Members | 2,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to retrieve windows login/pwd in ASP ?

bob
hi,

I want to redirect my user to another page.
With ASP (not .Net) and IIS 5.0, under windows 2000 server.

We have installed the component WinHTTP that is used to manipulate http
requests.

We want to automatically identify the user through his Windows login/pwd
(NTML) He does not need to type it.
How do i get the login/pwd from windows, and perfom an authentificatio n
control ?

A subsidiary question:
then how do i set up a cookie in the client computer ?

thanks
Jul 22 '05 #1
2 2565
"bob" <pa*@dd.com> wrote in message
news:42******** *************** @news.wanadoo.f r...
hi,

I want to redirect my user to another page.
With ASP (not .Net) and IIS 5.0, under windows 2000 server.

We have installed the component WinHTTP that is used to manipulate http
requests.

We want to automatically identify the user through his Windows login/pwd
(NTML) He does not need to type it.
How do i get the login/pwd from windows, and perfom an authentificatio n
control ?

A subsidiary question:
then how do i set up a cookie in the client computer ?

thanks


http://www.aspfaq.com/5003
Jul 22 '05 #2
bob wrote:
hi,

I want to redirect my user to another page.
With ASP (not .Net) and IIS 5.0, under windows 2000 server.

We have installed the component WinHTTP that is used to manipulate
http requests.

We want to automatically identify the user through his Windows
login/pwd (NTML) He does not need to type it.
How do i get the login/pwd from windows, and perfom an
authentificatio n control ?
You can't get his password. You can get his login by using the LOGON_USER
servervariable (do a search at www.aspfaq.com for details)

A subsidiary question:
then how do i set up a cookie in the client computer ?

Google is your friend.

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 22 '05 #3

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

Similar topics

1
2132
by: sherkozmo | last post by:
I have my SQL 7.0 server set for Mixed security. I see now (finally) the advantages of having windows authentication security for windows groups. I do most of my developing in Access Projects which require a login of some type. I have been using my SQL login to develop with SQL and then when I give it to the user, I set the project to use Windows authentication. I want to be able to have Windows authentication on my domain account but...
0
1216
by: GoCMS | last post by:
Sorry for the duplicate posting, but I tried to cross_post from adsi.general board, and it didn't work. :( Here's my question: I'm using windows 2000, and integrated windows authentication for company intranet. I'm constructing a web page with ASP. I got user's login by Server("Auth_User") variable. How can I use that go get user's email address? I tried GetObject("WinNT://myDomain/MyUserName"), but the object I got didn't
0
1941
by: vvenk | last post by:
Hello: I would like to know how I can programmtically retrieve the windows login id? This is a asp.net application. Thanks. venki
4
3057
by: Norman Fritag | last post by:
Hi there, I would like to retrieve of a secured database the Username and the group that he / she belongs to, to apply access rights to some button click events, which are accessing forms that the User Usergroup doesn't have access to. Any idea how I would go on about it?? kind regards
0
1558
by: Federica | last post by:
Hi! I need some help retrieving user information in Active Directory. I have one webform with 2 textboxes 1 username and one for password. When the user load this page and insert his username and password (the same that he use for the login on the Windows Domain - is a requirement!) he click the button login. At this point I need to connect to Active Directory searching if this username and this password are valid for this domain and I...
9
1957
by: Justin Engelman | last post by:
Hi, I have a website that uses an ISAPI filter that will redirect anyone going to any page on the site to an SSL login page (on a different website with the same root domain) if they do not have the appropriate session cookie already. After logging in on that page successfully they are given the cookie and redirected back to the page they initially tried to go to. I would like to create a Windows application that gets data from that...
1
2465
by: John Yung | last post by:
Hi, I have a client (C# MS Excel Project) calling a Web Service to retrieve and update data. One of the business requirement is the client's NT Login ID, IP Address and computer name must be log for each web service method call. To get client information using integrated Windows authentication with ASP.NET client. You need to disable "Anonymous Access" and enable "Integrated Windows authentication". IE will automatically pass in the...
4
2350
by: John Savage | last post by:
I have a free web mail address and would like to use python to retrieve files that have been emailed to me. The basic code would accommodate cookies, a login name and password, then download using the full URL I can provide. From postings here I thought mechanize held promise, but I've found it to contain filenames that are invalid for MSDOS (too many characters, and/or too many dots in the name, etc.) so I have little hope that the...
1
1734
by: awburns | last post by:
Hi, A friend of mine has written a C# Assembly to get some data. To do so, though, involves creating an object ( a 'Login' object, containing the user's credentials) and then running a "login()" method. I'd like to store this in the Session object, to avoid having to login for each page. What's the best way of doing this? And how would I write a global function for accessing this data from the Session object?
0
8701
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9306
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...
1
9068
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
7942
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...
1
6621
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5943
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4462
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...
1
3155
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.