LDAP filter

Matthew Newton mcn at freeradius.org
Mon Sep 18 08:59:02 CEST 2017


On 18 September 2017 03:49:43 BST, "Andrés Gómez" <andres.gomez.ruiz at gmail.com> wrote:
>I also tried
>ldap {
>
>        server = "plataform.example.com.co"
>        identity = "cn=roam,dc=example,dc=com,dc=co"
>        password = 12345
>        basedn = "dc=example,dc=com,dc=co"
>*        filter = "(uid=%{%{Stripped-User-Name}:-%{User-Name}})"*
>*        base_filter = "(userType= managment*)"
>        ldap_connections_number = 5
>...
>}
>
>But the same results, I dont know how to make the filter of the LDAP
>object  "userType= managment" and the user who has the "userType=
>guest"
>can authenticate.

Combine both in the one filter?

filter = "(&(uid=%{%{Stripped-User-Name}:-%{User-Name}})(userType=managment))"

But still, v2 is unsupported and you really should look to upgrade to v3.0.15.

-- 
Matthew



More information about the Freeradius-Users mailing list