Re: authorization and authentication

From: Som (Somsubhra_ghosh@satyam.com)
Date: 09/18/02


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
> >
> >
>
>



Relevant Pages

  • Authentication Nightmare
    ... I've been going round and round with this authentication business to no ... however I continue to get the challenge/response while I'm ... impersonating the user and trying to redirect to their personal directory. ... WindowsIdentity widTempIdentity = new WindowsIdentity; ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ActiveDirectory authentication - more issues
    ... To create a WindowsIdentity you have to create a token - you could do that yourself - you have username/password - but this has to be done on every single request - so you would have to cache/store the credentials of the user on the web server - nothing i would recommend. ... are authenticated via ActiveDirectory and IsInRole hits ... no -you are doing forms authentication. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ActiveDirectory authentication - more issues
    ... Only IWA results in a WindowsIdentity. ... In the case of the AD Provider, LDAP is used to verify credentials - IsInRole ... yourself - you have username/password - but this has to be done on every ... no -you are doing forms authentication. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Have half working
    ... I've done this in client apps before and never ... Is there some security permission I must have granted for this to work? ... For authentication of: ... WindowsIdentity wi = user.Identity as WindowsIdentity; ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: authorization and authentication
    ... Yes - you can use Windows-based authentication. ... Directory Security tab, then click Edit in the Anonymous Access and ... "Windows" in your Web.Config file: ... (only the root). ...
    (microsoft.public.dotnet.framework.aspnet.security)