title: Can't bind to Active Directory with Perl
body: <p>I just installed Net::LDAP, but I can't authenticate to the AD server.  </p>
  
  <pre><code>#!/usr/bin/perl
  
  use strict;
  use Net::LDAP;
  
  my $ldap = "";
  $ldap = Net::LDAP-&gt;new("serv01.noboundaries.dyndns.org");
  my $mesg = "";
  $mesg = $ldap-&gt;bind("CN=sansken,OU=NB_Users,DC=noboundaries,DC=dyndns,DC=org", password =&gt; "XXXXXXX");
  
  die $mesg-&gt;error() if $mesg-&gt;code();
  $mesg = $ldap-&gt;unbind;
  </code></pre>
  
  <p>The error I'm getting is:</p>
  
  <blockquote>
    <p>80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db0 at ./ldap.pl line 11,  line 751.</p>
  </blockquote>