Re: Get UPN in ASP
From: Andrew H (andrewh@noimgincspam.com)
Date: 06/03/02
- Next message: Marlene A. Roman: "Error trying to write to a LogFile"
- Previous message: hb: "Re: encryption problem"
- In reply to: Matt Flynn: "Re: Get UPN in ASP"
- Next in thread: Code Dude: "Re: Get UPN in ASP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
> > >
> > >
> >
> >
>
>
>
>
- Next message: Marlene A. Roman: "Error trying to write to a LogFile"
- Previous message: hb: "Re: encryption problem"
- In reply to: Matt Flynn: "Re: Get UPN in ASP"
- Next in thread: Code Dude: "Re: Get UPN in ASP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|