Home All Groups Group Topic Archive Search About

Need assistance connecting to AD using LDAP

Author
12 Jan 2005 4:42 PM
Luis Esteban Valencia
I've never worked with LDAP before, and I'm having issues connecting to our
AD for user authentication.  I am trying to use the code found at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sds/sds/active_directory_authentication_from_asp__net.asp



I'm using forms-based authentication and everytime I enter my user/pass it
returns (I know it's correct because it is my login credentials):

Authentication did not succeed. Check user name and password.



The heirarchy of our folders in AD resembles this (the location of my AD
entry):

corp.bedking.com >> Bed King >> Corporate >> Information Technology >> My
User Account



The LDAP path I am using is this:

LDAP://corp.bedking.com/CN=Users,DC=corp,DC=bedking,DC=com



Please provide me any insight if you see any mistakes I have made.  This has
been a long-running issue that I would LOVE to resolve.  Thank you for your
assistance.

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/

Author
12 Jan 2005 6:43 PM
Chris B
Not sure of the example you provided, but I would  simply reformat the LDAP
connection string to this:

LDAP://CN=Users,DC=corp,DC=bedking,DC=com

You don't need the FQDN before the path, as you are providing that with the
DC=,DC=, etc.


Show quote
"Luis Esteban Valencia" <luisva***@haceb.com> wrote in message
news:%23$KFfXM%23EHA.208@TK2MSFTNGP12.phx.gbl...
> I've never worked with LDAP before, and I'm having issues connecting to
> our
> AD for user authentication.  I am trying to use the code found at:
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sds/sds/active_directory_authentication_from_asp__net.asp
>
>
>
> I'm using forms-based authentication and everytime I enter my user/pass it
> returns (I know it's correct because it is my login credentials):
>
> Authentication did not succeed. Check user name and password.
>
>
>
> The heirarchy of our folders in AD resembles this (the location of my AD
> entry):
>
> corp.bedking.com >> Bed King >> Corporate >> Information Technology >> My
> User Account
>
>
>
> The LDAP path I am using is this:
>
> LDAP://corp.bedking.com/CN=Users,DC=corp,DC=bedking,DC=com
>
>
>
> Please provide me any insight if you see any mistakes I have made.  This
> has
> been a long-running issue that I would LOVE to resolve.  Thank you for
> your
> assistance.
>
> --
> LUIS ESTEBAN VALENCIA
> MICROSOFT DCE 3.
> MIEMBRO ACTIVO DE ALIANZADEV
> http://spaces.msn.com/members/extremed/
>
>
Author
13 Jan 2005 7:16 AM
Marc Scheuner [MVP ADSI]
>Not sure of the example you provided, but I would  simply reformat the LDAP
>connection string to this:
>
>LDAP://CN=Users,DC=corp,DC=bedking,DC=com
>
>You don't need the FQDN before the path, as you are providing that with the
>DC=,DC=, etc.

Not in a WinForms app - in this scenario, this "server-less binding"
works well. Not so in ASP.NET environments where you'll need to
specify the server you want to bind to, and credentials (most often).

Marc
================================================================
Marc Scheuner                        May The Source Be With You!
Berne, Switzerland                      m.scheuner -at- inova.ch
Author
13 Jan 2005 7:18 AM
Marc Scheuner [MVP ADSI]
>I've never worked with LDAP before, and I'm having issues connecting to our
>AD for user authentication. 
>I'm using forms-based authentication and everytime I enter my user/pass it
>returns (I know it's correct because it is my login credentials):
>Authentication did not succeed. Check user name and password.

Try specifying the SERVER (DC) you want to bind to:

LDAP://MyDC01.corp.bedking.com/CN=Users..........

Marc
================================================================
Marc Scheuner                        May The Source Be With You!
Berne, Switzerland                      m.scheuner -at- inova.ch

AddThis Social Bookmark Button