[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#8973) Error with domainScope control when using C# LDAP API



Le 06/02/2019 à 14:16, clement.oudot@worteks.com a écrit :
> Le 06/02/2019 �  12:57, hyc@symas.com a �©crit� :
>> hyc@symas.com wrote:
>>> clement.oudot@worteks.com wrote:
>>>> Full_Name: Clement OUDOT
>>>> Version: 2.4.47
>>>> OS: GNU/Linux
>>>> URL: ftp://ftp.openldap.org/incoming/
>>>> Submission from: (NULL) (81.250.130.213)
>>>>
>>>>
>>>> Hello,
>>>>
>>>> after upgrading from 2.4.46 to 2.4.47, this C# code does not work anymore :
>>> The code in controls.c is correct. The DomainScope control does not take a value,
>>> so the value is required to be NULL.
>> Microsoft spec https://msdn.microsoft.com/en-us/library/cc223348.aspx
>>
>> "When sending this control to the DC, the controlValue field of the Control structure is omitted."
>>
> Thanks a lot for your feedback, I will try to understand with the C#
> code is sending a value inside the control.


For the record, the bug seems to be inside powershell and the API 
"system.DirectoryServices.DirectorySearcher" which is sending the control.

To solve this, you need to use another API:
"System.DirectoryServices.Protocols"

See
https://docs.microsoft.com/fr-fr/dotnet/api/system.directoryservices.protocols?view=netframework-4.7.2


-- 
Clément Oudot | Identity Solutions Manager

clement.oudot@worteks.com

Worteks | https://www.worteks.com