Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Ldap not returning all users
« previous
next »
Print
Pages: [
1
]
Author
Topic: Ldap not returning all users (Read 2597 times)
lox
Newbie
Posts: 36
Karma: 1
Ldap not returning all users
«
on:
May 28, 2019, 12:27:02 pm »
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:
Code:
[Select]
&(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"
«
Last Edit: May 28, 2019, 02:11:44 pm by lox
»
Logged
hbc
Hero Member
Posts: 501
Karma: 47
Re: Ldap returning only one user
«
Reply #1 on:
May 28, 2019, 12:32:24 pm »
Why not just:
Code:
[Select]
(cn=foobar)
as filter, where foobar is the username?
Logged
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR
lox
Newbie
Posts: 36
Karma: 1
Re: Ldap returning only one user
«
Reply #2 on:
May 28, 2019, 12:51:43 pm »
I get an empty list even using the usename of the single user returned with the group filter
Logged
lox
Newbie
Posts: 36
Karma: 1
Re: Ldap returning only one user
«
Reply #3 on:
May 28, 2019, 02:10:11 pm »
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)
«
Last Edit: May 28, 2019, 02:12:05 pm by lox
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Ldap not returning all users