Le 06/02/2019 à 14:16, [email protected] a écrit :
> Le 06/02/2019 à 12:57, [email protected] a écrit :
>> [email protected] wrote:
>>> [email protected] 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

[email protected]

Worteks | https://www.worteks.com




Reply via email to