Ldap not returning all users

Started by lox, May 28, 2019, 12:27:02 PM

Previous topic - Next topic
May 28, 2019, 12:27:02 PM Last Edit: May 28, 2019, 02:11:44 PM by lox
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?
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR

I get an empty list even using the usename of the single user returned with the group filter

May 28, 2019, 02:10:11 PM #3 Last Edit: May 28, 2019, 02:12:05 PM by lox
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)