Spaces in Active Directory Organizational Unit names are not supported


Description

When the Sitecore Active Directory module connection string contains references to an AD container (such as organizational unit) that has a space in its name, roles and profile information does not load from the AD server.

The following exception appears in the Sitecore logs:

ERROR Active Directory existing checking exception: System.DirectoryServices.DirectoryServicesCOMException (0x80072030): There is no such object on the server.
   at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
   at System.DirectoryServices.DirectoryEntry.Bind()
   at System.DirectoryServices.DirectoryEntry.get_NativeObject()
   at LightLDAP.MembershipResolver.DirectoryEntryExists(String path, String username, String password, AuthenticationTypes types)
This issue affects Active Directory 1.1 version.

Solution

To resolve the issue, proceed as follows:

  1. Place the Sitecore.Support.861.dll in your bin folder.
  2. Change your AD role and profile provider types:
    <add name="ad" type="LightLDAP.Support.SitecoreADRoleProvider, Sitecore.Support.861".../>
    <add name="ad" type="LightLDAP.Support.SitecoreADProfileProvider, Sitecore.Support.861" .../>