Change sql_user_name = %{User-Name} to sql_user_name = %{Stripped-User-Name} in dialup.conf
Le 02.12.2008 06:37, Luca Adamo a écrit : > > Thank you for the quick reply. > > I've tried this solution but the results are not what I expected. > > In fact i defined the following /realm /module: > > realm wimax_decorator { > format = prefix > delimiter = "}" > ignore_default = no > ignore_null = no > } > > and i make FR to call it during authorize phase. > > The client show up with this NAI [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> and the module output (from radiusd > -X) is the following. > > .. > .. > [wimax_decorator] Looking up realm "{am=1" for User-Name = > "[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>"; > [wimax_decorator] Found realm "DEFAULT" > [wimax_decorator] Adding Stripped-User-Name = "[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>"; > [wimax_decorator] Adding Realm = "DEFAULT" > [wimax_decorator] Authentication realm is LOCAL. > .. > .. > > > The problem is that all my subsequent queries suppose the Attribute > User-Name to be /[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> /instead > of /[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> /so I > keep getting /null /result set from the Oracle DB since there aren't > entries for [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> in > the DB. A possible solution could be making the sql module to use > Stripped-User-Name instead of the User-Name for the queries but I was > looking for a solution that doesn't involve the code. > > Am i making any mistake above? Any other ideas? > > Thank you, > > Lu > > > > > Il giorno 02/dic/08, alle ore 16:28, [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> ha scritto: >> 1) set 'prefix' to be } >> >> with this, anything before and including } >> (which may never appear as a realm or username) >> would be treated like a NT domain and be stripped >> off logically > > ------------------------------------------------------------------------ > > - > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html