Re: Get UPN in ASP

From: Andrew H (andrewh@noimgincspam.com)
Date: 06/03/02


From: "Andrew H" <andrewh@noimgincspam.com>
Date: Mon, 3 Jun 2002 09:18:13 -0500


The new Wrox book "Website Programming Problem-Design-Solution" (er
something) does something like this by extending (customizing) the Principal
and Identity objects. Their example adds additional methods and properties
to these two objects so their available for use on any aspx page. Zip on
over to Borders Bookstore during lunch and take a peek at chapter five.

Andrew H

"Matt Flynn" <matthew_t_flynn@hotmail.com> wrote in message
news:eNIcfFwCCHA.1940@tkmsftngp04...
> We are using the Windows authentication in the config file. So what you
are
> saying is that if we use the Forms authentication we will get the user
name
> in the form acct@domain.com? How will this change how the user is
> authenticated to IIS and the File System? I still want the user to be able
> to authenticate to IIS and the File System using NTLM, but I also want to
> look up additional information on the user in Active Directory. I guess
the
> best way to understand this is to change the authentication method and see
> if this works, but any additional information on this would be great.
>
> Thanks
>
> Matt
>
>
> "Andrew H" <andrewh@noimgincspam.com> wrote in message
> news:#9J5SmNCCHA.1108@tkmsftngp04...
> > You get different objects (with slightly different interfaces) based on
> the
> > type of authentication (Windows vs. Forms etc...). So you have to look
at
> > the AuthenticationType property first, to see which type of object you
> have.
> >
> > Andrew H
> >
> > "Matt Flynn" <matthew.t.flynn@lmco.com> wrote in message
> > news:uV0JORLCCHA.2004@tkmsftngp02...
> > > When I get the User.Identity.Name using ASP.NET I am always getting
the
> > > Domain/acctName format. I would like to get it in the User Principal
> Name
> > > format. Any ideas on how I would do that??
> > >
> > > Matt
> > >
> > >
> >
> >
>
>
>
>



Relevant Pages

  • Re: Authentication problem
    ... As matt notes below, even if nothing on your box has changed it's possible ... > On your IIS box, check the HTTP Authentication tab of the SQL Server ...
    (microsoft.public.sqlserver.ce)
  • Re: Disk/Partition level encryption.
    ... > put any sensible data, file system is going to detect ... The worst scenario is kernel panic, ... should be authentication even without encryption. ... There really is no such thing as a secure msg if there is no ...
    (sci.crypt)
  • Re: Get UPN in ASP
    ... Authenticate Against the Active Directory by Using Forms ... > We are using the Windows authentication in the config file. ... > authenticated to IIS and the File System? ... >>> Matt ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Windows authentication.
    ... Make sure Integrated Windows Authentication is checked ... File System - Set permissions on the directory to only allow those ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Get UPN in ASP
    ... We are using the Windows authentication in the config file. ... authenticated to IIS and the File System? ... >> Domain/acctName format. ...
    (microsoft.public.dotnet.framework.aspnet.security)