Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
cancel
Showing results for 
Search instead for 
Did you mean: 
lukile
Contributor
Contributor

How to do a UDC Setup with LDAP Filters - syntax for two conditions

Hi anybody.

I have two conditions for LDAP filter but problem is... how i can combine this two conditions to one?

My idea is: Connect to Active Directory group contain all user, and one user without this group. Group name is "QSenseUsers" (contain QSUser1, QSUser2, QSUser3). And user without this group is "RandomUser1".

For group connection i use:

(&(objectClass=user)(MemberOf:1.2.840.113556.1.4.1941:=CN=QSenseUsers,CN=Users,DC=domain,DC=tld))

For users connection i use:

(&(objectClass=user)(objectCategory=person)(|(SamAccountName=qsuser1)(SamAccountName=qsuser2)(SamAccountName=qsuser3)(SamAccountName=randomsuser1)))

Both functionally ok.

How i can combined this two phrases to one?

 

My bad tests:

(&(objectClass=user)(MemberOf:1.2.840.113556.1.4.1941:=CN=QSenseUsers,CN=Users,DC=domain,DC=tld))(&(objectClass=user)(cn=randomsuser1))

(&(objectClass=user)(MemberOf:1.2.840.113556.1.4.1941:=CN=QSenseUsers,CN=Users,DC=domain,DC=tld)(&(SamAccountName=randomsuser1)))

(&(objectClass=user)(MemberOf:1.2.840.113556.1.4.1941:=CN=QSenseUsers,CN=Users,DC=domain,DC=tld)(|(SamAccountName=randomsuser1)))

Labels (1)
0 Replies