nerdexam
Linux_Foundation

LFCS · 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 ldapsearch command uses the -C switch to ensure that search referrals are followed during an LDAP query.

Submitted by stefanr· Apr 18, 2026Essential Commands

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

(26 responses)
  • B
    92% (24)
  • C
    4% (1)
  • D
    4% (1)

Why each option

The `ldapsearch` command uses the `-C` switch to ensure that search referrals are followed during an LDAP query.

A-r

The `-r` switch is not a standard `ldapsearch` option for following referrals; it's often used for other purposes in various commands (e.g., recursive operations).

B-CCorrect

The `-C` switch for the `ldapsearch` command specifically instructs the client to follow referrals received from the LDAP server, allowing a search operation to transparently span across multiple directory servers in a distributed environment.

C-S

The `-S` switch for `ldapsearch` is typically used for sorting search results or specifying an authentication mechanism, not for following referrals.

D-R

The `-R` switch in `ldapsearch` is used to disable the automatic following of referrals, which is the opposite of the desired behavior.

Concept tested: ldapsearch referral handling

Source: https://www.openldap.org/software/man.html

Topics

#ldapsearch#LDAP#referrals#command-line tools

Community Discussion

No community discussion yet for this question.

Full LFCS Practice