The following excerpt is from a Perl script that reads a LDAP database and writes a LDIF file
The following excerpt is from a Perl script that reads a LDAP database and writes a LDIF file:
$ldap = Net::LDAP->new( ‘ldap.server.com’ );
$mesg = $ldap->bind( ‘cn=incadmin,o=inc’, password => ‘secret’ );
[YOUR ANSWER GOES HERE]
Net::LDAP::LDIF->new( *STDOUT,"w" )->write( $mesg->entries ); $mesg =
ldap->unbind;
Which code snippet contains the correct query?