Need assistance connecting to AD using LDAP

  • Thread starter Thread starter Luis Esteban Valencia
  • Start date Start date
L

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/d...ve_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.
 
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 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
 
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
 
Back
Top