For me there are 3 solutions to dump the results of an op search :
SOL 1
@entries = $mesg->entries;
foreach $entry (@entries) {
print "dn: " . $entry->dn() . "\n";
@attrs = $entry->attributes();
foreach $attr (@attrs) {
printf("\t%s: %s\n", $attr, $entry->get
I have a "dumpuser" script that would dump an LDAP user entry.
Recently, we've added some new data which is binary and as a result,
sometimes my shell crashes when I try to dump a user.
I may not be taking the right approach to this, but I decided after
reading the docs that the right thing to do