From: Torsten <tor...@gm...> - 2002-01-05 21:33:15
|
Hi If an entry has 2 attributes named for example "klaus" and "klausotto" and you call Net::LDAP::Entry->get_value( "klaus", alloptions=>1 ) the returned hash contains the attribute values of klaus AND klausotto: LDIF: dn:... klaus: klaus klausotto: otto klaus;en-us: blah get_value( "klaus", alloptions=>1 ) returns: { '' => 'klaus', 'otto' => 'otto', ';en-us' => 'blah' } Changing line 81 of Entry.pm from $_->{type} =~ /^\Q$type\E(.*)/ ? (lc($1), $_->{vals}) :() to $_->{type} =~ /^\Q$type\E(;.*)?/ ? (lc($1||''), $_->{vals}) :() fixes the problem. |