Re: Get UPN in ASP
From: Code Dude (dotNetCodeDude@hotmail.com)
Date: 06/10/02
- Next message: Code Dude: "Re: Form-based authentication for one file only"
- Previous message: Code Dude: "Re: Lookup in Active Directory"
- In reply to: Matt Flynn: "Re: Get UPN in ASP"
- Next in thread: Arild Bakken: "Re: Get UPN in ASP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Code Dude" <dotNetCodeDude@hotmail.com> Date: Mon, 10 Jun 2002 10:41:40 -0700
Yes, you have to use forms. Take a look at this article. Instead of using
"cn", use "userPrincipalName".
Q316748 HOW TO: Authenticate Against the Active Directory by Using Forms
http://support.microsoft.com/support/kb/articles/q316/7/48.asp
"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: Code Dude: "Re: Form-based authentication for one file only"
- Previous message: Code Dude: "Re: Lookup in Active Directory"
- In reply to: Matt Flynn: "Re: Get UPN in ASP"
- Next in thread: Arild Bakken: "Re: Get UPN in ASP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|