Home All Groups Group Topic Archive Search About

LDAP Authentication

Author
16 Aug 2006 2:55 PM
satyendra
Hi,
I need to do the following.
1. I have an .aspx on an IIS Server that is not in the domain.It
performs queries against the domain controller.
2. User enters his login and password and clicks submit
3. I need to authenticate him for his login, password and then redirect

to a different url

can somebody tell me how to do this in asp or aspx using LDAP

Do I need to configure/hardcode the LDAP domain controller IP addresses
somewhere?

Thanks.

Author
16 Aug 2006 3:24 PM
Joe Kaplan (MVP - ADSI)
Your best bet is probably to use the ActiveDirectoryMembershipProvider in
..NET to accomplish this, as it is designed to do LDAP authentication.

On a non-domain machine, you need to either supply a specific DC name, or
(ideally) just the DNS domain name of the domain.  The web server should
then use the DC locator service to pick a DC in the current site to use
based on the domain name supplied.  However, there may be reasons (firewall,
DNS, etc.) why you can't use this approach.  I'd try that first though, as
it is better for you to take advantage of the built in infrastructure for
dynamically locating DCs if at all possible.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
Show quoteHide quote
"satyendra" <satyend***@gmail.com> wrote in message
news:1155740150.998131.143040@h48g2000cwc.googlegroups.com...
> Hi,
> I need to do the following.
> 1. I have an .aspx on an IIS Server that is not in the domain.It
> performs queries against the domain controller.
> 2. User enters his login and password and clicks submit
> 3. I need to authenticate him for his login, password and then redirect
>
> to a different url
>
> can somebody tell me how to do this in asp or aspx using LDAP
>
> Do I need to configure/hardcode the LDAP domain controller IP addresses
> somewhere?
>
> Thanks.
>