Which of these sets of entries does the following command return?
Which of these sets of entries does the following command return?
The command provided uses an LDAP search filter to find directory entries. The filter "(|(cn=marie)(!(telephoneNumber=9*)))" breaks down as follows: '|' indicates a logical OR operation between two conditions, '(cn=marie)' specifies entries where the common name (cn) attribute is 'marie', and '(!(telephoneNumber=9*))' denotes entries where the telephone number does not start with 9. Combining these, it returns entries that either have a common name of 'marie' or have a telephone number that does not begin with 9.
B) Entries that have a cn of marie or don't have a telephoneNumber beginning with 9.
TelephoneNumber ending with 9 is definitily wrong
B is correct! Entries that have a cn of marie or don't have a telephoneNumber beginning with 9.
Para empezar, el | del principio indica or, si hubiera comenzado con un & sería and con lo que la C descartada. El símbolo ! indica negación y 9* indica todo lo que empiece por 9.
OR Operation: (| (...K1...) (...K2...)) https://ldapwiki.com/wiki/LDAP%20filters%20Syntax%20and%20Choices
B is correct. " ! " indicates to not include this option.