Exit 117-301 LPI 301 Core Exam
Question 2 of 5
0% complete
Q2 Single choice

The following excerpt is from a Perl script that reads from an LDAP database and writes an LDIF file:

Which code snippet contains the correct query?

  • 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 => '(*) ');