locked
Unable to connect to AD mentioning dc in DirectoryEntry RRS feed

  • Question

  • User405463548 posted

    This works

    DirectoryEntry entry = new DirectoryEntry("LDAP://VBTEST.COM", "administrator@VBTEST.COM", "Espire123", AuthenticationTypes.Secure);

    But this does not

    DirectoryEntry entry = new DirectoryEntry("LDAP://DC=VBTEST,DC=COM", "administrator@VBTEST.COM", "Espire123", AuthenticationTypes.Secure);

    comes up with Error message 

    Any idea?

    Friday, September 13, 2013 6:22 AM

Answers

  • User1508394307 posted

    Normally, if your domain is called vbtest.com, your base path should be something like LDAP://vbtest.com/DC=vbtest,DC=com. Try if this works, because it's not always the case and depends on AD setup.

    To find out the correct base path, you can install ADSIedit from Windows 2003 support tools. Or use something like LDAP Browser.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, September 15, 2013 3:48 AM

All replies

  • User2019981500 posted

    CAN YOU PUBLISH ERROR MESSAGE HERE

    Friday, September 13, 2013 6:41 AM
  • User1508394307 posted

    Normally, if your domain is called vbtest.com, your base path should be something like LDAP://vbtest.com/DC=vbtest,DC=com. Try if this works, because it's not always the case and depends on AD setup.

    To find out the correct base path, you can install ADSIedit from Windows 2003 support tools. Or use something like LDAP Browser.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, September 15, 2013 3:48 AM