Hi

I'm attempting to search through a ldap entry and display all it's
attributes.  Some of the attributes may have the same name but the code
that I'm using does only displays one of them.


$mesg = $ldap->search(filter=>"(uid=xyz)", base=>$base);
@entries = $mesg->entries;

foreach $entry (@entries) {

        foreach $attr ($entry->attributes) {
                print $attr." - ".$entry->get_value($attr)."\n";
        }
}

Can anyone tell me what I'm doing wrong?

Thanks

Reply via email to