It is possble to create a generic ADSISearcher and point it at the Active Roles ADSI Provider using the following PowerShell cmdlet:
$EDMSADSISearcher = [ADSISearcher]'(objectClass=user)'
$EDMSADSISearcher.SearchRoot = [ADSI]"EDMS://DC=domain,DC=local"
After doing so, this returns clean results:
$EDMSADSISearcher.FindAll()
This fails with the following error:
$EDMSADSISearcher.FindOne()
$EDMSADSISearcher.FindOne() Exception calling "FindOne" with "0" argument(s): "Unknown error (0x80041070)" At line:1 char:1 + $EDMSADSISearcher.FindOne() + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : COMException
WORKAROUND
Leverage the FIndAll() method and use only the first element of the returned array.
STATUS
Waiting for a fix in a future release of Active Roles.
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Nutzungsbedingungen Datenschutz Cookie Preference Center