472,982 Members | 2,554 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,982 software developers and data experts.

Windows authentication

I have an application that is ISAPI and the only way to
secure it is through NT permissions. I need to have a way
to login to windows authentication so that when I get to
the ISAPI application no boxes come up. I want an ASP page
to sit between the user and the ISAPI application. The
rest of my application is using authentication that is
database driven and wouldn't want the users to know the
userid and password. Is this possible? If so how would I
accomplish it.

Jul 19 '05 #1
8 3621
Could you use integrated authentication if the users are using IE?

"Bob Everland" <an*******@discussions.microsoft.com> wrote in message
news:09****************************@phx.gbl...
I have an application that is ISAPI and the only way to
secure it is through NT permissions. I need to have a way
to login to windows authentication so that when I get to
the ISAPI application no boxes come up. I want an ASP page
to sit between the user and the ISAPI application. The
rest of my application is using authentication that is
database driven and wouldn't want the users to know the
userid and password. Is this possible? If so how would I
accomplish it.

Jul 19 '05 #2
Well I'm trying to get away from the user having to do
anything because this is our extranet so out customers
would be forced to touch the browser. I just want to make
a script that allows for seemless login. Heck I don't even
care if I have to pass something through url parameters.
Bob

-----Original Message-----
Could you use integrated authentication if the users are using IE?
"Bob Everland" <an*******@discussions.microsoft.com> wrote in messagenews:09****************************@phx.gbl...
I have an application that is ISAPI and the only way to
secure it is through NT permissions. I need to have a way to login to windows authentication so that when I get to
the ISAPI application no boxes come up. I want an ASP page to sit between the user and the ISAPI application. The
rest of my application is using authentication that is
database driven and wouldn't want the users to know the
userid and password. Is this possible? If so how would I
accomplish it.

.

Jul 19 '05 #3
Ok I now know that is has to do with me setting the
request headers so that my browser will cache them. Has
anyone dont anything like this before?
http://www.ietf.org/rfc/rfc2617.txt
Jul 19 '05 #4
I mean't enable integrated authentication for the web site in the web site
properties in IIS. So long as internet explorer is enabled to use
integrated authentication (tools, options, advanced) the NT username will be
sent to the web server automatically without the user doing anything. The
user name can be retrieved if needed using server variables:

USERNAME: Request.ServerVariables("AUTH_USER")

Here's some info cut from iis help:

Integrated Windows Authentication
Integrated Windows authentication (formerly called NTLM or Windows NT
Challenge/Response authentication) is a secure form of authentication
because the user name and password are not sent across the network. When you
enable integrated Windows authentication, the user's browser proves its
knowledge of the password through a cryptographic exchange with your Web
server, involving hashing.

Integrated Windows authentication can use both the Kerberos v5
authentication protocol and its own challenge/response authentication
protocol. If Directory Services is installed on the server, and the browser
is compatible with the Kerberos v5 authentication protocol, both the
Kerberos v5 protocol and the challenge/response protocol are used; otherwise
only the challenge/response protocol is used.

The Kerberos v5 authentication protocol is a feature of the Windows 2000
Distributed Services architecture. In order for Kerberos v5 authentication
to be successful, both the client and server must have a trusted connection
to a Key Distribution Center (KDC) and be Directory Services compatible. For
more information about the protocol, see the Windows documentation.

Integrated Windows authentication proceeds as follows:

1.. Unlike Basic authentication, it does not initially prompt users for a
user name and password. The current Windows user information on the client
computer is used for the integrated Windows authentication.
Note Internet Explorer, version 4.0 and later, can be configured to
initially prompt for user information if needed. For more information, see
the Internet Explorer documentation.

2.. However, if the authentication exchange initially fails to identify
the user, the browser will prompt the user for a Windows user account user
name and password, which it will process by using integrated Windows
authentication.
3.. Internet Explorer will continue to prompt the user until the user
enters a valid user name and password, or closes the prompt dialog box.
Although integrated Windows authentication is secure, it does have two
limitations.

1.. Only Microsoft Internet Explorer, version 2.0 or later, supports this
authentication method.
2.. Integrated Windows authentication does not work over HTTP Proxy
connections.
Therefore, integrated Windows authentication is best suited for an intranet
environment, where both user and Web server computers are in the same
domain, and where administrators can ensure that every user has Microsoft
Internet Explorer, version 2.0 or later.

Regards

Paul

<an*******@discussions.microsoft.com> wrote in message
news:0a****************************@phx.gbl...
Well I'm trying to get away from the user having to do
anything because this is our extranet so out customers
would be forced to touch the browser. I just want to make
a script that allows for seemless login. Heck I don't even
care if I have to pass something through url parameters.
Bob

-----Original Message-----
Could you use integrated authentication if the users are

using IE?

"Bob Everland" <an*******@discussions.microsoft.com>

wrote in message
news:09****************************@phx.gbl...
I have an application that is ISAPI and the only way to
secure it is through NT permissions. I need to have a way to login to windows authentication so that when I get to
the ISAPI application no boxes come up. I want an ASP page to sit between the user and the ISAPI application. The
rest of my application is using authentication that is
database driven and wouldn't want the users to know the
userid and password. Is this possible? If so how would I
accomplish it.

.

Jul 19 '05 #5
Hi Paul,

Funny you should write about this, because I'm in the process of
implementing something similar to what you've outlined below. I do have
one question for you, though - how can you log the user out once in?

For example, if I visit my intranet site, I'm greeted by the log on box
asking for my credentials.. however, the browser won't prompt for
credentials again until the browser is closed and re-opened. I'd like to
provide a log-off button, though. Any ideas?

Thanks!

Jonathan

Paul McNally wrote:
I mean't enable integrated authentication for the web site in the web site
properties in IIS. So long as internet explorer is enabled to use
integrated authentication (tools, options, advanced) the NT username will be
sent to the web server automatically without the user doing anything. The
user name can be retrieved if needed using server variables:

USERNAME: Request.ServerVariables("AUTH_USER")

Here's some info cut from iis help:

Integrated Windows Authentication
Integrated Windows authentication (formerly called NTLM or Windows NT
Challenge/Response authentication) is a secure form of authentication
because the user name and password are not sent across the network. When you
enable integrated Windows authentication, the user's browser proves its
knowledge of the password through a cryptographic exchange with your Web
server, involving hashing.

Integrated Windows authentication can use both the Kerberos v5
authentication protocol and its own challenge/response authentication
protocol. If Directory Services is installed on the server, and the browser
is compatible with the Kerberos v5 authentication protocol, both the
Kerberos v5 protocol and the challenge/response protocol are used; otherwise
only the challenge/response protocol is used.

The Kerberos v5 authentication protocol is a feature of the Windows 2000
Distributed Services architecture. In order for Kerberos v5 authentication
to be successful, both the client and server must have a trusted connection
to a Key Distribution Center (KDC) and be Directory Services compatible. For
more information about the protocol, see the Windows documentation.

Integrated Windows authentication proceeds as follows:

1.. Unlike Basic authentication, it does not initially prompt users for a
user name and password. The current Windows user information on the client
computer is used for the integrated Windows authentication.
Note Internet Explorer, version 4.0 and later, can be configured to
initially prompt for user information if needed. For more information, see
the Internet Explorer documentation.

2.. However, if the authentication exchange initially fails to identify
the user, the browser will prompt the user for a Windows user account user
name and password, which it will process by using integrated Windows
authentication.
3.. Internet Explorer will continue to prompt the user until the user
enters a valid user name and password, or closes the prompt dialog box.
Although integrated Windows authentication is secure, it does have two
limitations.

1.. Only Microsoft Internet Explorer, version 2.0 or later, supports this
authentication method.
2.. Integrated Windows authentication does not work over HTTP Proxy
connections.
Therefore, integrated Windows authentication is best suited for an intranet
environment, where both user and Web server computers are in the same
domain, and where administrators can ensure that every user has Microsoft
Internet Explorer, version 2.0 or later.

Regards

Paul

<an*******@discussions.microsoft.com> wrote in message
news:0a****************************@phx.gbl...
Well I'm trying to get away from the user having to do
anything because this is our extranet so out customers
would be forced to touch the browser. I just want to make
a script that allows for seemless login. Heck I don't even
care if I have to pass something through url parameters.
Bob
-----Original Message-----
Could you use integrated authentication if the users are


using IE?
"Bob Everland" <an*******@discussions.microsoft.com>


wrote in message
news:09****************************@phx.gbl.. .

I have an application that is ISAPI and the only way to
secure it is through NT permissions. I need to have a


way
to login to windows authentication so that when I get to
the ISAPI application no boxes come up. I want an ASP


page
to sit between the user and the ISAPI application. The
rest of my application is using authentication that is
database driven and wouldn't want the users to know the
userid and password. Is this possible? If so how would I
accomplish it.

.


Jul 19 '05 #6
Hi Jonathan

I don't believe there is a log off command you can use but you could have a
button on the web page which sets all the objects related to the user to
nothing and then redirects to your logon page.

Regards

Paul

"Jonathan S." <sp**@jdspt.com> wrote in message
news:eC**************@TK2MSFTNGP11.phx.gbl...
Hi Paul,

Funny you should write about this, because I'm in the process of
implementing something similar to what you've outlined below. I do have
one question for you, though - how can you log the user out once in?

For example, if I visit my intranet site, I'm greeted by the log on box
asking for my credentials.. however, the browser won't prompt for
credentials again until the browser is closed and re-opened. I'd like to
provide a log-off button, though. Any ideas?

Thanks!

Jonathan

Paul McNally wrote:
I mean't enable integrated authentication for the web site in the web site properties in IIS. So long as internet explorer is enabled to use
integrated authentication (tools, options, advanced) the NT username will be sent to the web server automatically without the user doing anything. The user name can be retrieved if needed using server variables:

USERNAME: Request.ServerVariables("AUTH_USER")

Here's some info cut from iis help:

Integrated Windows Authentication
Integrated Windows authentication (formerly called NTLM or Windows NT
Challenge/Response authentication) is a secure form of authentication
because the user name and password are not sent across the network. When you enable integrated Windows authentication, the user's browser proves its
knowledge of the password through a cryptographic exchange with your Web
server, involving hashing.

Integrated Windows authentication can use both the Kerberos v5
authentication protocol and its own challenge/response authentication
protocol. If Directory Services is installed on the server, and the browser is compatible with the Kerberos v5 authentication protocol, both the
Kerberos v5 protocol and the challenge/response protocol are used; otherwise only the challenge/response protocol is used.

The Kerberos v5 authentication protocol is a feature of the Windows 2000
Distributed Services architecture. In order for Kerberos v5 authentication to be successful, both the client and server must have a trusted connection to a Key Distribution Center (KDC) and be Directory Services compatible. For more information about the protocol, see the Windows documentation.

Integrated Windows authentication proceeds as follows:

1.. Unlike Basic authentication, it does not initially prompt users for a user name and password. The current Windows user information on the client computer is used for the integrated Windows authentication.
Note Internet Explorer, version 4.0 and later, can be configured to
initially prompt for user information if needed. For more information, see the Internet Explorer documentation.

2.. However, if the authentication exchange initially fails to identify the user, the browser will prompt the user for a Windows user account user name and password, which it will process by using integrated Windows
authentication.
3.. Internet Explorer will continue to prompt the user until the user
enters a valid user name and password, or closes the prompt dialog box.
Although integrated Windows authentication is secure, it does have two
limitations.

1.. Only Microsoft Internet Explorer, version 2.0 or later, supports this authentication method.
2.. Integrated Windows authentication does not work over HTTP Proxy
connections.
Therefore, integrated Windows authentication is best suited for an intranet environment, where both user and Web server computers are in the same
domain, and where administrators can ensure that every user has Microsoft Internet Explorer, version 2.0 or later.

Regards

Paul

<an*******@discussions.microsoft.com> wrote in message
news:0a****************************@phx.gbl...
Well I'm trying to get away from the user having to do
anything because this is our extranet so out customers
would be forced to touch the browser. I just want to make
a script that allows for seemless login. Heck I don't even
care if I have to pass something through url parameters.
Bob

-----Original Message-----
Could you use integrated authentication if the users are

using IE?

"Bob Everland" <an*******@discussions.microsoft.com>

wrote in message

news:09****************************@phx.gbl.. .

>I have an application that is ISAPI and the only way to
>secure it is through NT permissions. I need to have a

way

>to login to windows authentication so that when I get to
>the ISAPI application no boxes come up. I want an ASP

page

>to sit between the user and the ISAPI application. The
>rest of my application is using authentication that is
>database driven and wouldn't want the users to know the
>userid and password. Is this possible? If so how would I
>accomplish it.
>
.


Jul 19 '05 #7
Hi!

I am trying to do some of the same things as you. I want to log a user
to an nt user through asp. The user is allready loged in, because untill
now the credentials are verified against a database. Now I need to use
nt authentication because users will be allowed to upload files to
folders they create.

Did you find a solution?

Henning :-)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #8
Great Post Paul!

Question: If the user does not get validated automatically, is there a
way to display a custom logon form instead of the popup microsoft
window?

Basically, I want to auto-log a known user using the method you
described, but if they fail, I want to authenticate them against my sql
database.

Is there an event launched when an auto-logon fails?

Thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 22 '05 #9

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

Similar topics

1
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...
1
by: Mark | last post by:
When our staff are logged into a computer on our domain, they're still prompted for their domain login and password to get into our ASP.NET application in Internet Explorer when using Windows...
4
by: Andrew | last post by:
Hey all, I would like to preface my question by stating I am still learning ASP.net and while I am confident in the basics and foundation, the more advanced stuff is still a challenge. Ok....
5
by: pberna | last post by:
Dear all, I built a Web Form application to start and stop a Windows Service remotely. I successful tested the application on Windows 2000 server + IIS. I must include the ASPNET user to the...
6
by: Kevin Yu | last post by:
is it possible to for user to click a logout button to logout and when the user want to get into the system again, the user have to login again? Kevin
8
by: Nils Magnus Englund | last post by:
Hello, I am having trouble using Integrated Windows Authentication between our intranet server and our database server, both of which are on our local domain. Windows authentication works for...
10
by: Hriday | last post by:
Hi there, Please help me..It is urgent This is Hriday, working on windows authentication with Active Directory... My requirment is when a user sends a request to my web Applicatoin I want to...
7
by: Alice Wong | last post by:
I am setting up my Web ASP.net application to connect to Sql server using windows authentication. I set up IIS to have integrated windows authenication and sql to allow Windows authentication....
4
by: Preben Zacho | last post by:
Hi there The scenario I got is this: I have created a Windows application in VS and I want to deploy it to another machine running Windows Vista. Since I have no control over this other machine,...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

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.