Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
935 views
in Technique[技术] by (71.8m points)

windows - AWS Active Directory LDAPS "cannot open connection" via ldap.exe tool

I receive the following error message when trying to connect via 636 to the device below. A dialogue box comes up with "cannot open connection". The LDAP tool works fine with port 389.

Does anybody know what this is likely to be? See screenshot below. For the record, I am using AWS Managed AD.

ld = ldap_sslinit("WIN-TABC3JEHV2S.dev.test.local", 636, 1);
Error 81 = ldap_set_option(hLdap, LDAP_OPT_PROTOCOL_VERSION, 3);
Error 81 = ldap_connect(hLdap, NULL);
Server error: <empty>
Error <0x51>: Fail to connect to WIN-TABC3JEHV2S.dev.test.local.

Please note I have added a substitute name in the code snippet above due to sensitivity which is why it differs from the screenshot.

enter image description here

The server I am using the LDAP tool on returns a warning message Event ID 6038 relating to NTLM.

But the CA server is returning Event ID Warning 8018 and Error 10016. See below

SUBORDINATECA   8018    Warning Microsoft-Windows-DNS Client Events System  1/11/2021 12:59:23 PM

SUBORDINATECA   10016   Error   Microsoft-Windows-DistributedCOM    System  1/11/2021 12:47:07 PM

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You need to check the windows event viewer to get more details about the error reason

Event Viewer >> System Log

http://vcloud-lab.com/entries/active-directory/ldp-exe-ldaps-cannot-open-connection-error-81


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...