in reply to Re: Net::LDAP giving I/O Error
in thread Net::LDAP giving I/O Error

Thank you. I neglected to include: I'm running a kinit from my shell before running this script. I have a valid Kerberos ticket and that is why I specify GSSAPI. That is the intended use case. Does that help?

Replies are listed 'Best First'.
Re^3: Net::LDAP giving I/O Error
by NetWallah (Canon) on Oct 11, 2016 at 20:00 UTC
    I'm not familiar with GSSAPI, but Tim Bishop's Blog has a discussion, and supposedly working code for this.

            ...it is unhealthy to remain near things that are in the process of blowing up.     man page for WARP, by Larry Wall

      Thank you. My coworker found the fix, by looking at other scripts.
      18c18 < my $ldap = Net::LDAP->new($dc, port => 636, scheme => 'ldaps') or di +e "$@"; --- > my $ldap = Net::LDAP->new($dc) or die "$@";
      i.e. reduce the parameters to the LDAP constructor. *shrug*