Hi SMEs,

I am a novice in ldap, but have requirement to construct a query to fetch all the users from AD but it should search only in specific AD Groups in a particular OU.

For Example: Find all users who are part of BACKUP_A & BACKUP_B & BACKUP_C and all these 3 groups are part of single OU named BACKUP and thiis part of OU=OU_1 which is part of DC=domainname & DC=com.

I came up with below query however i am failing on using wild card for group name

(&(&(&(&(&(&(&(&(&(objectCategory=person)(objectClass=user)(memberof= CN=BACKUP_A,OU=BACKUP,OU=OU_1,DC=domainname,DC=com))))))))))

Please help, thanks in advance