Default realm in 2.0.0-pre1

Alan DeKok aland at deployingradius.com
Mon Jul 9 13:27:02 CEST 2007


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 at 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.



More information about the Freeradius-Users mailing list