From: Kitchin, H. <Hea...@DR...> - 2002-03-26 10:33:57
|
eg, From an ldif file with dn: uid=one,ou=two,o=three changetype: modify delete: attributeX and code like $ldif = Net::LDAP::LDIF->new($ops{'f'},'r') || die "can't open $ops{'f'} for input, $@\n"; #-- where $ops{'f'} is the ldif file name while( my $entry = $ldif->read() ) { print STDERR "mod $. ",$entry->dn,"\n"; print STDERR "dumping change: ",Data::Dumper->Dump([$entry],[qw(entry)]),"\n\n"; } $ldif->done(); gives me mod 1 uid=one,ou=two,o=three dumping change: $entry = bless( { 'attrs' => { 'delete' => [ 'attributeX' ], 'changetype' => [ 'modify' ] }, 'asn' => { 'objectName' => 'uid=one,ou=two,o=three', 'attributes' => [ { 'vals' => $hashRef->{'attrs'}{'changetype'}, 'type' => 'changetype' }, { 'vals' => $hashRef->{'attrs'}{'delete'}, 'type' => 'delete' } ] }, 'changetype' => 'add' #--- what the?!?! }, 'Net::LDAP::Entry' ); Am I missing something or is this actually a bug in the ldif implementation? Heath ---------------------------------------------------------------------- If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. ---------------------------------------------------------------------- |