I just installed Net::LDAP, but I can't authenticate to the AD server.
#!/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;
The error I'm getting is:
80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db0 at ./ldap.pl line 11, line 751.