Pshem Kowalczyk wrote:
I'm building 'backend' radius servers, that only have to know about one domain - the default one, despite the stuff the users put into their login names. ... rlm_sql (sql_auth): User salmanq@adsl.ihug.co.nz not found ++[sql_auth] returns notfound rlm_pap: WARNING! No "known good" password found for the user.
Any ideas why it ignores the "DEFAULT" realm? Or alternatively - how else can I get the Stripped-User-Name ?
The "ignore_default" and "ignore_null" configurations in rlm_realm should be removed from 2.x. They can better be done with the new configuration language. To get the stripped user name, just do: if ("%{User-Name}" =~ /^(.*)@(.*)$/) { update request { Stripped-User-Name := "%{1}" Realm := "%{2}" } } Alan DeKok.