Re: Forms Auth with AD Native Mode

From: George Durzi (gdurzi_at_nospam_hotmail.com)
Date: 09/19/03

  • Next message: Michael Appelmans: "limit web application access to local directory?"
    Date: Fri, 19 Sep 2003 14:43:25 -0700
    
    

    Michael,
    I tried that but it doesn't work. We have our AD set to use Mixed Mode,
    could that be why ?

    "Michael Gaillez" <michael.gaillez@howest.be> wrote in message
    news:OY7XU9ifDHA.576@tk2msftngp13.phx.gbl...
    >
    > "George Durzi" <gdurzi@nospam_hotmail.com> wrote in message
    > news:eEeVipffDHA.3616@TK2MSFTNGP11.phx.gbl...
    > > I'm authentication against ActiveDirectory by implementing forms
    > > authentication similar to this MSDN article.
    > >
    > >
    >
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT02.asp
    > >
    > > I want to make it so that the forms authentication supports AD Native
    > Mode.
    > > So the user should be able to enter
    > > username@domain.com as their username, and the provide their password to
    > > login.
    > >
    > > I can of course do this the dirty way, which is to use a regex validator
    > to
    > > make sure the username is entered in the username@domain.com format,
    then
    > > trim the @domain.com and authenticate normally.
    > >
    > > But the nerd in me thinks that's an unacceptable solution.
    > >
    > > Any tips?
    >
    > in that example they use the netbios domainname to logon to active
    directory
    > but if the user provides username@yourdomain.com you should be able to
    use
    > that as well in stead of "yourdomain\username". this only works with AD.
    >
    > so u use DirectoryEntry entry = new DirectoryEntry(somepath,
    > "username@yourdomain.com", "password");
    >
    > I'm doing it over here and it works fine
    >
    > greets
    >
    > Michael
    >
    >
    > ---
    > Outgoing mail is certified Virus Free.
    > Checked by AVG anti-virus system (http://www.grisoft.com).
    > Version: 6.0.518 / Virus Database: 316 - Release Date: 11/09/2003
    >
    >


  • Next message: Michael Appelmans: "limit web application access to local directory?"

    Relevant Pages

    • Re: VS Authentication (mixed mode)
      ... The book I have that walks me through setting up sqlserver does not show me ... It starts off running the install then says to run ... So it uses the windows authentication. ... > explains a (mixed mode) where you can do both types of projects and get ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Integrated Windows Authentication not working!
      ... Michael, thanks for the reply. ... >Check out these articles online for information on Integrated Windows ... >Authentication and IIS Authentication in general: ... >account name for newsgroup participation only.<< ...
      (microsoft.public.inetserver.iis.security)
    • Re: Migrating from NT to Win2k in native mode
      ... from mixed mode authentication to Windows only authentication? ... What are the effects of switching SQL Server from 'Mixed mode' to 'Windows ...
      (microsoft.public.sqlserver.security)
    • Howto: LDAP Authenticate user with pwdlastset=0 in C# .NET
      ... >I was able to implement a Form based authentication ... > DirectoryEntry entry = new DirectoryEntry(_path, ... domainAndUsername, ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • RE: VS Authentication (mixed mode)
      ... The "mixed mode" has nothing to do with VS. ... You can setup "mixed ... mode" with your Enterprise Manager on an existing installation of SQL-Server. ... So it uses the windows authentication. ...
      (microsoft.public.dotnet.framework.aspnet)