Hello Heikki, you're right. It works for me using the %{OuterRequest:Calling-Station-Id} instead of the %{Calling-Station-Id} form.
Thank you very much. Regards Fabio On 07/12/2011 11:59 PM, Heikki Vatiainen wrote: > On 07/12/2011 06:57 PM, Fabio Ciampi wrote: > > Hello Fabio, > >> I attach the new configuration file that I wrote. >> As you can see my configuration file have two different handler. One for >> the outer and one for the inner authentication. >> >> I can use radpwtst with the command: >> >> perl radpwtst -user fa...@test.it -password hello -chap >> >> but, in this way , I test only the handler for the outher >> authentication. As you said it works. > Good to hear it works. > >> My problem instead seems to be in the inner authentication that is >> dispatched to the handler: >> <Handler TunnelledByTTLS=1, request_src = test-src> >> and I don't know how I can test it with radpwtst. > You can not test it with radpwtst. To test TTLS, PEAP and many other > protocols, please see eapol_test > > http://hostap.epitest.fi/wpa_supplicant/devel/testing_tools.html > >> The Access-Request messages contain the Calling-Station-Id and >> Called-Station-Id. >> Here is what I got in the log file: >> Tue Jul 12 16:35:19 2011: DEBUG: TTLS Tunnelled Diameter Packet dump: >> Code: UNDEF >> Identifier: UNDEF >> Authentic: UNDEF >> Attributes: >> User-Name = "fa...@test.it" >> User-Password = hello<0><0><0><0><0><0><0> > As you can see the inner authentication contains only two attributes. If > you need to log Called- and Calling-Station-Id from the inner request > with AuthLog, use %{OuterRequest:Calling-Station-Id} with SuccessFormat. > With this you can reach back to the outer request and fetch the > attribute value from there. > > Try this: MAC-user = "%{OuterRequest:Calling-Station-Id}" %r > > See ref.pdf section "5.2 Special characters". The table has more about > %{OuterRequest:name} format > > Thanks! > Heikki > _______________________________________________ radiator mailing list radiator@open.com.au http://www.open.com.au/mailman/listinfo/radiator