我刚刚安装了 Net::LDAP,但我无法对 AD 服务器进行身份验证。
#!/usr/bin/perl
use strict;
use Net::LDAP;
my $ldap = "";
$ldap = Net::LDAP->new("serv01.noboundaries.dyndns.org");
my $mesg = "";
$mesg = $ldap->bind("CN=sansken,OU=NB_Users,DC=noboundaries,DC=dyndns,DC=org", password => "XXXXXXX");
die $mesg->error() if $mesg->code();
$mesg = $ldap->unbind;
我得到的错误是:
80090308:LdapErr:DSID-0C0903A9,注释:AcceptSecurityContext 错误,数据 52e,v1db0 位于 ./ldap.pl 第 11 行,第 751 行。