Can't add a $ sign to the ldap search

Alexandros Gougousoudis gougousoudis-list at servicecenter-khs.de
Mon May 23 21:46:23 CEST 2011


Hi Phil,
filter =
>> "(|(uid=%{%{Stripped-User-Name}:-%{User-Name}})(uid=%{%{Stripped-User-Name}:-%{User-Name}}\$))"
>>
>
> Don't do that. Instead try:
>
> filter = "(uid=%{mschap:User-Name})"

Hm, this is not working. I also don't get the point, why the username in
mschap is mangled to have a $ or not?

The Windows-Worstation query their name as "host/workstation", which is
workstation$ in my ldap. My Users are coming in as "user", so where else
doing the lookup than in ldap module?

The "host/" realm is stripped off before.

I made now a workaround with ...%{User-Name}}*))"

This will match workstation and workstationWHATEVER. Not very elegant,
but I assume a bug in the ldap-module, because every other char works,
just $ not.

If you could explain your point, I might look through it.

TIA
 Alex




More information about the Freeradius-Users mailing list