Can't add a $ sign to the ldap search

Phil Mayers p.mayers at imperial.ac.uk
Mon May 23 16:21:14 CEST 2011


On 05/23/2011 01:07 PM, Alexandros Gougousoudis wrote:
> Hi,
>
> I tried to change the ldap-searchfilter in the ldap module, to search
> for a username "user" and "user$" in LDAP, if "user" is given. This is
> neccecary to authenticate my workstations and users via LDAP.
>
> This is my filter definition in the ldap module:
>
> filter =
> "(|(uid=%{%{Stripped-User-Name}:-%{User-Name}})(uid=%{%{Stripped-User-Name}:-%{User-Name}}\$))"

Don't do that. Instead try:

filter = "(uid=%{mschap:User-Name})"

Has there been some article published somewhere recently about how great 
workstation auth is? We've been getting a lot of queries about it...



More information about the Freeradius-Users mailing list