suffix not work for me

2012-09-27 Thread Tony Peña
hi again... i try to get suffix work but i guess missing something... here some debugs and confs rad_recv: Access-Request packet from host 10.10.64.67 port 16829, id=53, length=208 Framed-Protocol = PPP User-Name = *usert...@my.domain.cu* User-Password = *secret*

Re: suffix not work for me

2012-09-27 Thread alan buxey
Hi,         User-Name = [1]usert...@my.domain.cu okay.. [preprocess]   hints: Matched DEFAULT at 36 ++[preprocess] returns ok and what is in your hints file? ++- policy filter_username returns ok and what is in this policy? alan - List info/subscribe/unsubscribe? See

Re: suffix not work for me

2012-09-27 Thread Tony Peña
i put the hint file more below after radiusd -X.. check again please... i miss policyfilter... i send again both. /etc/freeradius/hints DEFAULT Suffix == @my.domain.cu, Strip-User-Name = Yes Hint = userdefault, Service-Type = Framed-User, Framed-Protocol = PPP, /etc/freeradius/policy.conf

Re: suffix not work for me

2012-09-27 Thread Fajar A. Nugraha
On Thu, Sep 27, 2012 at 10:34 PM, Tony Peña emperor...@gmail.com wrote: hi again... i try to get suffix work but i guess missing something... here [preprocess] hints: Matched DEFAULT at 36 [suffix] No '@' in User-Name = usertest, looking up realm NULL ---why not found '@' if is coming in

Re: suffix not work for me

2012-09-27 Thread alan buxey
Hi, DEFAULT Suffix == @[1]my.domain.cu, Strip-User-Name = Yes there you go. strip-user-name = yes this means that u...@blahblah.com becomes just user do you WANT or intend to strip the user-name? If you are trying to use the suffix for other things then stripping it isnt going

Re: suffix not work for me

2012-09-27 Thread Tony Peña
I want when username is user@my.domain the suffix out @my.domain to only get: user that only need. 2012/9/27 alan buxey a.l.m.bu...@lboro.ac.uk Hi, DEFAULT Suffix == @[1]my.domain.cu, Strip-User-Name = Yes there you go. strip-user-name = yes this means that

Re: suffix not work for me

2012-09-27 Thread Tony Peña
anyway... my problem is exactly at monthlycounter because i need stripped-user-name and module stripped when try to use but in the queries use username complete including realm. 2012/9/27 Tony Peña emperor...@gmail.com I want when username is user@my.domain the suffix out @my.domain to only

Re: suffix not work for me

2012-09-27 Thread Phil Mayers
On 27/09/12 17:06, Tony Peña wrote: i put the hint file more below after radiusd -X.. check again please... i miss policyfilter... i send again both. /etc/freeradius/hints DEFAULT Suffix == @my.domain.cu, Strip-User-Name Don't do this. It doesn't work reliably, because you modify the

Re: suffix not work for me

2012-09-27 Thread Tony Peña
ok.. the suffix patch works and get out the @realm... but monthlycounter is my trouble more bigger... because not stripped-user-name in the queries... is possible to do the same patch, in sql/mysql/counter.conf ?? where said. sqlcounter monthlycounter1 { counter-name = Monthly-Session-Time

Re: suffix not work for me

2012-09-27 Thread alan buxey
Hi, key = User-Name     use the if { your patch} ??? either change this to Stripped-User-Name insteador if you ONLY want this to be the full realm when its NOT the realm of interest, then create a new SQL query and then wrap unlang around it eg if (%{User-Name} =~

Re: suffix not work for me

2012-09-27 Thread Tony Peña
ok.. I do some testing about new sql... and with your unlang if idea.. could be thanxs to all 2012/9/27 alan buxey a.l.m.bu...@lboro.ac.uk Hi, key = User-Name use the if { your patch} ??? either change this to Stripped-User-Name insteador if you ONLY want