I configured LDAP but I need to get only users of a single group 'VPN'. I need to import them to generate their own certificate for OpenVPN.
I tried it with Apache Ldap Directory without any exotic configuration, and I get my three users. I use this search pattern:
&(memberof=CN=VPN,CN=Groups,DC=office,DC=domain,DC=local )
When I try to import the users, only one user shows up. If I remove the search pattern I can see all the LDAP users but some are missing.
I can successfully use the missing users in the "Tester"
Why not just:
(cn=foobar)
as filter, where foobar is the username?
I get an empty list even using the usename of the single user returned with the group filter
I was wrong the users missing with the group filter are also missing without a filter. But I can successfully use the missing users credentials in the "Tester" (post edited to reflect that)