Re: Forms Auth with AD Native Mode
From: George Durzi (gdurzi_at_nospam_hotmail.com)
Date: 09/19/03
- Previous message: Steve Barta: "HTTP protocol violation"
- In reply to: Michael Gaillez: "Re: Forms Auth with AD Native Mode"
- Next in thread: Michael Gaillez: "Re: Forms Auth with AD Native Mode"
- Reply: Michael Gaillez: "Re: Forms Auth with AD Native Mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
>
>
- Previous message: Steve Barta: "HTTP protocol violation"
- In reply to: Michael Gaillez: "Re: Forms Auth with AD Native Mode"
- Next in thread: Michael Gaillez: "Re: Forms Auth with AD Native Mode"
- Reply: Michael Gaillez: "Re: Forms Auth with AD Native Mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|