nerdexam
CompTIA

LX0-104 · Question #139

Which of the following switches for the ldapsearch command makes sure that search referrals are followed?

The correct answer is B. -C. The -C switch for the ldapsearch command is used to ensure that search referrals are continuously followed.

Shells, Scripting and Data Management

Question

Which of the following switches for the ldapsearch command makes sure that search referrals are followed?

Options

  • A-r
  • B-C
  • C-S
  • D-R

How the community answered

(54 responses)
  • A
    2% (1)
  • B
    93% (50)
  • C
    4% (2)
  • D
    2% (1)

Why each option

The `-C` switch for the `ldapsearch` command is used to ensure that search referrals are continuously followed.

A-r

The `-r` option for `ldapsearch` is typically used to omit RDN attribute values from results or to perform a recursive delete with `ldapdelete`, not for following referrals.

B-CCorrect

The `ldapsearch -C` option instructs the LDAP client to automatically follow referral messages returned by the LDAP server. Referrals direct the client to other LDAP servers that might hold the requested data, ensuring that a comprehensive search across a distributed directory is performed without manual intervention.

C-S

The `-S` option is not a standard `ldapsearch` option for following referrals; it is typically used for sorting search results by a specified attribute.

D-R

The `-R` option is used to specify that referrals should NOT be followed or to refer to the Root DSE, which is the opposite of the desired behavior.

Concept tested: ldapsearch referral handling

Source: https://www.openldap.org/software/man.cgi?query=ldapsearch&sektion=1&apropos=0&manpath=OpenLDAP+2.4-Release

Topics

#ldapsearch#LDAP#search referrals#command-line switches

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice