adsldp: If secure open object fails fallback to simple bind.
This matches ADsGetObject() behaviour described in MSDN. Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f181d5ce82
commit
e396c01a2b
|
@ -111,6 +111,8 @@ static HRESULT WINAPI ldap_ParseDisplayName(IParseDisplayName *iface, IBindCtx *
|
|||
if (hr != S_OK) return hr;
|
||||
|
||||
hr = IADsOpenDSObject_OpenDSObject(ads_open, name, NULL, NULL, ADS_SECURE_AUTHENTICATION, &disp);
|
||||
if (hr != S_OK)
|
||||
hr = IADsOpenDSObject_OpenDSObject(ads_open, name, NULL, NULL, 0, &disp);
|
||||
if (hr == S_OK)
|
||||
{
|
||||
hr = CreatePointerMoniker((IUnknown *)disp, mk);
|
||||
|
|
Loading…
Reference in New Issue