perl5 (revision 5.0 version 8 subversion 1 RC3) running under Mac OS X with the stock perl load.
I'm trying to run a dump extraction against a Sun Directory server, and instead of manually writing the output, I thought I'd use the Net::LDAP::LDIF; library instead of writing an entry to LDIF dump routine myself. However, it's not happy with the environment right now.
use Net::LDAP;
use Net::LDAP::LDIF;
use Getopt::Long;
$ldap = Net::LDAP->new( $server ) or die "$@";
$mesg = $ldap->bind;
open (LDIFOUT, ">dumpsun.ldif");
my $ldif = Net::LDAP::LDIF->new(LDIFOUT, "a", encode => 'base64', onerror => 'die', sort => 1);
The code above results in the following error :
Can't locate object method "attributes" via package "Net::LDAP::Search" at /Library/Perl/5.8.1/Net/LDAP/LDIF.pm line 374.
Any hints ?
Erik
