PrepAway - Latest Free Exam Questions & Answers

Which code snippet contains the correct query?

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?

PrepAway - Latest Free Exam Questions & Answers

A.
$mesg = $ldap->search(
base => ‘o=inc’,
);

B.
$mesg = $ldap->search(
base => ‘cn=incadmin,o=inc’,
scope => ‘one’,
filter => ‘(objectclass=*)’
);

C.
$mesg = $ldap->search(
base => ‘o=inc’,
scope => ‘sub’,
filter => ‘(objectclass=*)’
);

D.
$mesg = $ldap->search(
base => ‘o=inc’,
recursive => ‘yes’,
filter => ‘(*)’
);

One Comment on “Which code snippet contains the correct query?

  1. hot deals says:

    75 off any one package of Keebler Granola Fudge Bars (6 count only-any flavor)$1 off
    any two packages of Keebler Townhouse Crackers (9. The Be – Cents – Able website
    doesn’t describe workshop content in the workshop sign-up section. A person can either go through the lists provided on the site or just type the relevant search parameter and start a search.




    0



    0

Leave a Reply