无法使用perl NET :: LDAPS采取安全的LDAP连接

我试图采用perl Net :: LDAP的AD服务器(w2k12)的安全连接。

脚步:

$ldaps = Net::LDAPS->new('AD.server.ip', port => '636', verify => 'none', capath => 'W2K12AD-0-CA'); $binddn = "Administrator\@NAS.net"; $mesg = $ldaps->bind (dn=>$binddn, password=>'xxxx' ); 

给我错误:

errorMessage' => 'I/O Error An existing connection was forcibly closed by the remote host.

任何帮助将是伟大的。