Which of these sets of entries does the following command return?
A.
Entries that don’t have a cn of marie or don’t have a telephoneNumber that begins with 9.
B.
Entries that have a cn of marie or don’t have a telephoneNumber beginning with 9.
C.
Entries that have a cn of marie and a telephoneNumber that ending with 9.
D.
Entries that don’t have a cn of marie and don’t have a telephoneNumber beginning with 9.
E.
Entries that have a cn of marie or have a telephoneNumber beginning with 9.
The Answer Is:
B
This question includes an explanation.
Explanation:
The command in the question is using the ldapsearch tool to query an LDAP directory. The filter expression is (|(cn=marie)(!(telephoneNumber=9*))), which means to match entries that satisfy either one of the two conditions inside the parentheses. The first condition is (cn=marie), which means the common name attribute (cn) of the entry is equal to marie. The second condition is (!(telephoneNumber=9*)), which means the telephone number attribute (telephoneNumber) of the entry is not equal to 9 followed by any number of characters. The ! operator means logical negation, and the * operator means wildcard matching. Therefore, the command will return entries that have a cn of marie or don’t have a telephoneNumber beginning with 9. References: LPIC-2 202 exam objectives, LDAP Search Filters
202-450 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 65% Discount on All Products,
Use Coupon: "ac4s65"