--On Saturday, December 25, 2004 10:34 AM +0100 Erik Ableson <[EMAIL PROTECTED]> wrote:
Summary of the environment : 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.
Unless you don't have access to the Sun directory system, the simplest thing to do is have the Sun system dump the database. It comes with a utility to do just that.
--Quanah
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
-- Quanah Gibson-Mount Principal Software Developer ITSS/Shared Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html
"These censorship operations against schools and libraries are stronger than ever in the present religio-political climate. They often focus on fantasy and sf books, which foster that deadly enemy to bigotry and blind faith, the imagination." -- Ursula K. Le Guin
