Re: form authetication?

dl
Date: 05/12/05

  • Next message: Joe Kaplan \(MVP - ADSI\): "Re: form authetication?"
    Date: Thu, 12 May 2005 23:53:11 +0800
    
    

    Hi Joe
    I just tried with the new syntax, it would still let me get by with either
    userPrincipalName or the sAMAccountName. Does the path make any difference?
    I have been using LDAP://dc=xxx, dc=com

    TIA

    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:OSR2F7vVFHA.2328@TK2MSFTNGP10.phx.gbl...
    > There are 4 possible username formats for an AD bind with DirectoryEntry
    > NT Account Name (domain\user)
    > userPrincipalName (user@domain.com, whatever is in the userPrincipalName
    > attribute)
    > plain username (whatever is in the sAMAccountName attribute)
    > distinguishedName
    >
    > The first 2 can be used with any binding flags. The 3rd one can only be
    > used with AuthenticationTypes.Secure. The 4th one can only be used if
    > AuthenticationTypes.Secure is NOT specified.
    >
    > I'd recommend you use AuthenticationTypes.Secure if you can, as it
    prevents
    > your credentials from going on the wire in plain text.
    >
    > You can use NativeObject to force the bind. This is probably the fastest
    as
    > it doesn't load the property cache, so I'd recommend that.
    >
    > HTH,
    >
    > Joe K.
    >
    > <dl> wrote in message news:%23giSc4nVFHA.2172@tk2msftngp13.phx.gbl...
    > > Hi Joe
    > > Yes, I am using DirectoryEntry to bind but just to the NativeObject to
    > > force
    > > authentication, I couldn't find any code sample showing with
    > > AuthenticationType, is this the one that would imply which logon name to
    > > use? Can you show me some code sample please?
    > >
    > > Would it make any difference if I bind with NativeGUID?
    > >
    > > By the way, thanks for your advise on my other thread.
    > >
    > > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com>
    wrote
    > > in message news:eS3YKwlVFHA.3140@TK2MSFTNGP14.phx.gbl...
    > >> It depends on how you coded it.
    > >>
    > >> Are you using a DirectoryEntry to bind to AD to authenticate the user?
    > >> In
    > >> that case, the username syntax depends on the binding flags
    > >> (AuthenticationTypes) you specify.
    > >>
    > >> The NT logon name (domain\user, where user is the sAMAccountName
    > >> attribute
    > >> in AD) and the UserPrincipalName syntax (userPrincipalName attribute
    from
    > >> AD) will work in both simple and secure binds, so they are the most
    > >> flexible.
    > >>
    > >> Joe K.
    > >>
    > >> <dl> wrote in message news:uPexJagVFHA.4028@TK2MSFTNGP10.phx.gbl...
    > >> > Hi
    > >> > Can anyone tell me which logon name (is NON "pre-Windows 2000" or the
    > >> > "pre-Windows2000") is used for form authentication? Mine seems to
    work
    > > for
    > >> > either one?! anyway to restrict that to just the NON
    "pre-Windows2000"
    > >> > one?
    > >> >
    > >> > Also, I understand there is something called impersonation, can> >
    > > impersonation be used with form authentication?
    > >> >
    > >> > TIA
    > >> >
    > >> > --
    > >> >
    > >> >
    > >
    > >> >
    > >>
    > >>
    > >
    > >
    >
    >


  • Next message: Joe Kaplan \(MVP - ADSI\): "Re: form authetication?"

    Relevant Pages

    • Re: form authetication?
      ... There are 4 possible username formats for an AD bind with DirectoryEntry ... userPrincipalName (user@domain.com, ... > impersonation be used with form authentication? ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: ADAM authentication and set a users login/password
      ... There's no samAccountName in ADAM, ... used to talk to ADAM. ... > I read the ADAM RevGuide_adam.DOC  Managing Authentication ... > So this is my bind, ...
      (microsoft.public.windows.server.active_directory)
    • Re: ADAM Bind attribute question
      ... rdnAttId only affects how DNs are built. ... You cannot bind with UID alone. ... > By default I'm unable to bind using userPrincipalName. ...
      (microsoft.public.windows.server.active_directory)
    • Duplicate UPNs and "default UPN"
      ... I've been continuing to try to figure out what was going on with a situation that I described in an earlier thread where an LDAP authentication was failing when using the user's name in UPN format: ... As mentioned at the end of the last thread, I was able to create a situation where attempting to authenticate using the user's UPN, as contained in the "userPrincipalName" attribute, would fail, by creating two different users, in two different containers, with both users having their userPrincipalName attribute set to the same value. ... ldifde with a simple bind with that UPN formatted username would then fail, but using a full DN, I could authenticate. ...
      (microsoft.public.windows.server.active_directory)
    • LDIFDE-Import
      ... Ich würde gerne für ein AD-Objekt via LDIFDE-Import folgende Attribute ändern: ... cn, mailNickName, name, sAMAccountName, userPrincipalName ...
      (microsoft.public.de.german.windows.server.active_directory)