Re: Get UPN in ASP

From: Code Dude (dotNetCodeDude@hotmail.com)
Date: 06/10/02


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



Relevant Pages

  • Re: LDAP?
    ... Your suggestion on integrating Active Directory and MS Access sounds good. ... >>If you mean you want to try and integrate it with Access security, ... > adopted to use any sort of authentication method you choose, ... then launches the real database and logs into the Access ...
    (microsoft.public.access.security)
  • Re: Please Help
    ... controller that handles authentication for the computers in the domain. ... Logon and logoff are a little difficult with Active Directory. ... Use the Event logs. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Basic Authentication + IIS 5 + Windows 2000 + Frontpage 2002 = failure?
    ... Authentication" story and can relate to them all. ... the introduction of Active Directory. ... All rights ... > | Vincent Polite ...
    (microsoft.public.inetserver.iis.security)
  • Microsoft Active Directory security vulnerability
    ... Kerberos V (for information on Kerberos interoperability see ... return results from the Active Directory. ... My guess is that Microsoft does not check for a zero value ... nor did I test it with simple authentication. ...
    (Bugtraq)
  • Re: Basic Authentication + IIS 5 + Windows 2000 + Frontpage 2002 = failure?
    ... Authentication" story and can relate to them all. ... the introduction of Active Directory. ... All rights ... > | Vincent Polite ...
    (microsoft.public.inetserver.iis.security)