%3B.png)
我花了幾天時間才透過 SSL (LDAPS) 取得 AD,我完全遵循了本指南。我安裝了 Active Directory 憑證服務(獨立根 CA),我可以要求憑證、安裝憑證。
但每當我想使用 LDP.exe 測試連線時
我遇到了這個著名的錯誤
ld = ldap_sslinit("localhost", 636, 1);
Error 0 = ldap_set_option(hLdap, LDAP_OPT_PROTOCOL_VERSION, 3);
Error 81 = ldap_connect(hLdap, NULL);
Server error: <empty>
Error <0x51>: Fail to connect to localhost.
我一直在搜索,我知道有很多事情可能會導致這個錯誤,我嘗試了我能做的大部分事情,然後我決定將其發佈在這裡。我試圖查看系統日誌中是否有任何錯誤,但沒有任何錯誤:/(但我可能錯了)
誰能告訴我還要看什麼?
更新:我重新啟動了 AD 服務,事件檢視器中顯示錯誤:
LDAP over Secure Sockets Layer (SSL) will be unavailable at this time because the server was unable to obtain a certificate.
Additional Data
Error value:
8009030e No credentials are available in the security package