NT Authentication w/ASP 
Author Message
 NT Authentication w/ASP

If we wanted to make an ASP site that only users that have
usernames/passwords on internal network could access (both from inside and
outside our office), how would we set up that authentication?

Jim



Tue, 08 Jun 2004 03:51:34 GMT  
 NT Authentication w/ASP
You need to turn off anonymous logins for the application to force it to
pick up a username and password when people attempt to access the site.

You need to define the users who are going to access the site in the Active
Directory so that they have Windows NT usernames....best way to do this is
to separate the external users into a separate organization in active
directory, so that you can control policies appropriate to external access
separately.  You can then define access privileges on each folder in the
application as you would any normal NT folder and the NT security will
enforce access against the folders as you've defined it.

Chuck


Quote:
> If we wanted to make an ASP site that only users that have
> usernames/passwords on internal network could access (both from inside and
> outside our office), how would we set up that authentication?

> Jim



Wed, 09 Jun 2004 00:01:43 GMT  
 NT Authentication w/ASP
Ok, and how and where would I do this? =)

Jim


Quote:
> You need to turn off anonymous logins for the application to force it to
> pick up a username and password when people attempt to access the site.

> You need to define the users who are going to access the site in the
Active
> Directory so that they have Windows NT usernames....best way to do this is
> to separate the external users into a separate organization in active
> directory, so that you can control policies appropriate to external access
> separately.  You can then define access privileges on each folder in the
> application as you would any normal NT folder and the NT security will
> enforce access against the folders as you've defined it.

> Chuck



> > If we wanted to make an ASP site that only users that have
> > usernames/passwords on internal network could access (both from inside
and
> > outside our office), how would we set up that authentication?

> > Jim



Wed, 09 Jun 2004 00:13:34 GMT  
 NT Authentication w/ASP
Easy. ASP.NET uses the web.config file to determine the authentication provider.
You can use one of several authenticaion providers including: forms
authentication (the user logs in using a form with username and password),
passport authentication (authenticates using MS Passport), and Windows
authentication (basic, digest, or integrated).

You want to use integrated windows authentication. To set this up you need to
add the following line to the web.config file:

<authentication mode= "[Windows]"></authentication>

Then in your code you will need to check access using the
WindowsAuthenticationModule and WindowsPrincipal classes. It's pretty
straightfoward. You can find an example articles here:

http://www.4guysfromrolla.com/webtech/110701-1.shtml

Hope this helps!

Michael G. Emmons



Quote:
>If we wanted to make an ASP site that only users that have
>usernames/passwords on internal network could access (both from inside and
>outside our office), how would we set up that authentication?

>Jim



Wed, 09 Jun 2004 01:17:01 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. NT User Authentication through ASP

2. Passing Password to NT (directory authentication) from ASP

3. NT User Authentication through ASP

4. ASP use NT Authentication revisted?

5. ASP/ADO, SQL7, NT/Win2k authentication

6. ASP.Net Forms Authentication

7. Member Authentication using ASP

8. Authentication vía ASP and ADSI

9. Challenge/Response authentication through ASP?

10. Openning an asp which uses authentication

11. Linked SQL Server Table No NT Authentication

12. "NT password authentication"

 

 
Powered by phpBB® Forum Software