Re: authorization and authentication
From: Som (Somsubhra_ghosh@satyam.com)
Date: 09/18/02
- Next message: jorge: "Help - Security for downloaded code"
- Previous message: Kenny Zhou [MS]: "RE: ASPNET registry rights."
- In reply to: Victor Rodriguez: "Re: authorization and authentication"
- Next in thread: Parker Zhang [MS]: "RE: authorization and authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Som" <Somsubhra_ghosh@satyam.com> Date: Wed, 18 Sep 2002 13:20:04 +0530
Use the WindowsPrincipal and WindowsIdentity Objects to accomplish the same.
Set the
AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal)
;
Let me know if you require more
"Victor Rodriguez" <vr@srvs.net> wrote in message
news:#O3PDGBWCHA.1716@tkmsftngp08...
> I understand that part perfectly, my problem is on what class or code to
use
> to have a webform to authorize and authenticate an user and then go to a
> restricted area.
>
> Victor
>
> "Jimmy Tharpe" <jimmy@do.not.spam.me.please.devexpress.com> wrote in
message
> news:ujtDnthVCHA.2476@tkmsftngp09...
> > "Victor Rodriguez" <vr@srvs.net> wrote in message
> > news:OFAvaZRVCHA.3764@tkmsftngp08...
> > > Is there a way to have a webform with username, password and domain
> > > textboxes to send those parameters and authenticate and authorize
> against
> > > Windows security?
> >
> > Yes - you can use Windows-based authentication.
> >
> > To do that, you must configure IIS first... go to the properties of your
> > application directory from the Internet Services Manager. Go to the
> > Directory Security tab, then click Edit in the Anonymous Access and
> > Authentication section then enable the type(s) of authentication you
> > require. You can do this same process on a per-file and per-directory
> basis,
> > if necessary. Another option is to modify NTFS permissions on a
> > file/directory.
> >
> > Once your files & directories are protected, set the authentication mode
> to
> > "Windows" in your Web.Config file:
> >
> > <configuration>
> > <system.web>
> > <authentication mode="Windows"/>
> > </system.web>
> > </configuration>
> >
> > Note that you can only do this in the wwwroot directory or in the root
of
> a
> > virtual directory... you can not do this in an application's sub folder
> > (only the root).
> >
> > > Victor
> >
> > --
> > -Jimmy Tharpe
> > Developer Express:
> > http://www.devexpress.com
> > Used-Disks:
> > http://www.used-disks.com
> >
> >
>
>
- Next message: jorge: "Help - Security for downloaded code"
- Previous message: Kenny Zhou [MS]: "RE: ASPNET registry rights."
- In reply to: Victor Rodriguez: "Re: authorization and authentication"
- Next in thread: Parker Zhang [MS]: "RE: authorization and authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|