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.
Question
Options
- A-r
- B-C
- C-S
- D-R
How the community answered
(54 responses)- A2% (1)
- B93% (50)
- C4% (2)
- D2% (1)
Why each option
The `-C` switch for the `ldapsearch` command is used to ensure that search referrals are continuously followed.
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.
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.
The `-S` option is not a standard `ldapsearch` option for following referrals; it is typically used for sorting search results by a specified attribute.
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
Community Discussion
No community discussion yet for this question.