Reputation: 11
I'm using Authentik's LDAP provider and am trying to create a filter which returns both users and groups. This lead me to the following filter:
(|(objectClass=posixAccount)(objectClass=posixGroup))
However this query only returns posixGroup
s. But when I use the following filter:
(|(objectClass=posixGroup)(objectClass=posixAccount))
only posixAccount
s are returned.
I thought this or operation was supposed to actually act as an or. So either I'm really missing something or there's an issue with Authentik's LDAP implementation.
Additional context: objectClass
in this case (and I believe most implementations) is an attribute which appears multiple times, so maybe there's something I'm missing there.
Upvotes: 1
Views: 87