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.
Question
Options
- A-r
- B-C
- C-S
- D-R
How the community answered
(26 responses)- B92% (24)
- C4% (1)
- D4% (1)
Why each option
The `ldapsearch` command uses the `-C` switch to ensure that search referrals are followed during an LDAP query.
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).
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.
The `-S` switch for `ldapsearch` is typically used for sorting search results or specifying an authentication mechanism, not for following referrals.
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
Community Discussion
No community discussion yet for this question.