RE: Retrieve 'Aruba-Location-Id' from RAD_REQUEST
Hi, Alan, Thanks for the suggestion. I added log_request_attributes; in authorize function and it already has sub log_request_attributes in the perl script. When run FR in debug mode, the Aruba-Location-ID does present but when I call $ RAD_REQUEST{'Aruba-Location-Id'} from rlm_perl, it came up empty. Any more suggestions? Thanks again. Yu Wang -Original Message- From: freeradius-users-bounces+ywang10=fsu@lists.freeradius.org [mailto:freeradius-users-bounces+ywang10=fsu@lists.freeradius.org] On Behalf Of a.l.m.bu...@lboro.ac.uk Sent: Thursday, April 25, 2013 5:44 PM To: FreeRadius users mailing list Subject: Re: Retrieve 'Aruba-Location-Id' from RAD_REQUEST hi, tired eyes so might have missed something obvious...but can you add the following into your authorise subroutine at the top log_request_attributes; and ensure you have the following at the bottom sub log_request_attributes { for (keys %RAD_REQUEST) { radiusd::radlog(L_DBG, RAD_REQUEST: $_ = $RAD_REQUEST{$_}); } } ..then run FR is debug mode again and see what comes out. cheers alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Retrieve 'Aruba-Location-Id' from RAD_REQUEST
Be nice to hear true solution to this as the same thing happens to me for the nas-ip-address attribute A On 26 Apr 2013, at 15:41, Wang, Yu ywan...@fsu.edu wrote: Hi, Alan, Thanks for the suggestion. I added log_request_attributes; in authorize function and it already has sub log_request_attributes in the perl script. When run FR in debug mode, the Aruba-Location-ID does present but when I call $ RAD_REQUEST{'Aruba-Location-Id'} from rlm_perl, it came up empty. Any more suggestions? Thanks again. Yu Wang -Original Message- From: freeradius-users-bounces+ywang10=fsu@lists.freeradius.org [mailto:freeradius-users-bounces+ywang10=fsu@lists.freeradius.org] On Behalf Of a.l.m.bu...@lboro.ac.uk Sent: Thursday, April 25, 2013 5:44 PM To: FreeRadius users mailing list Subject: Re: Retrieve 'Aruba-Location-Id' from RAD_REQUEST hi, tired eyes so might have missed something obvious...but can you add the following into your authorise subroutine at the top log_request_attributes; and ensure you have the following at the bottom sub log_request_attributes { for (keys %RAD_REQUEST) { radiusd::radlog(L_DBG, RAD_REQUEST: $_ = $RAD_REQUEST{$_}); } } ..then run FR is debug mode again and see what comes out. cheers alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Retrieve 'Aruba-Location-Id' from RAD_REQUEST
Hi, Thanks for the suggestion. I added log_request_attributes; in authorize function and it already has sub log_request_attributes in the perl script. When run FR in debug mode, the Aruba-Location-ID does present but when I call $ RAD_REQUEST{'Aruba-Location-Id'} from rlm_perl, it came up empty. logs? alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Retrieve 'Aruba-Location-Id' from RAD_REQUEST
Hi, Thanks for the suggestion. I added log_request_attributes; in authorize function and it already has sub log_request_attributes in the perl script. When run FR in debug mode, the Aruba-Location-ID does present but when I call $ RAD_REQUEST{'Aruba-Location-Id'} from rlm_perl, it came up empty. and logs (radiusd -X) from this too. :-) alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Retrieve 'Aruba-Location-Id' from RAD_REQUEST
Hi, I am trying to retrieve 'Aruba-Location-Id' from RAD_REQUEST forwarded from Aruba wireless controllers. From radiusd -X output, I can see `Aruba-Location-Id' contains wireless AP id value. But when I call it from rlm_perl using $RAD_REQUEST{'Aruba-Location-Id'}, I got blank result. The `Aruba-Location-Id' is in share/dictionary.aruba: copy of your PERL and/or radiusd -X output please alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
RE: Retrieve 'Aruba-Location-Id' from RAD_REQUEST
entry DEFAULT at line 8 ++[files] returns ok ++[expiration] returns noop ++[logintime] returns noop [pap] WARNING! No known good password found for the user. Authentication may fail because of this. ++[pap] returns noop Found Auth-Type = EAP # Executing group from file /usr/local/etc/raddb/sites-enabled/virtual.dot1x_1814 +- entering group authenticate {...} [eap] EAP Identity [eap] processing type tls [tls] Initiate [tls] Start returned 1 ++[eap] returns handled } # server virtual.dot1x_1814 Sending Access-Challenge of id 248 to 128.186.255.231 port 32794 EAP-Message = 0x010200061920 Message-Authenticator = 0x State = 0x370e1a38370c03508cd2263659f4660a Finished request 6. Going to the next request Waking up in 1.9 seconds. ===end of radiusd -X= Please let me know if above contains information you would like to see. Thanks, Yu Wang -Original Message- From: freeradius-users-bounces+ywang10=fsu@lists.freeradius.org [mailto:freeradius-users-bounces+ywang10=fsu@lists.freeradius.org] On Behalf Of a.l.m.bu...@lboro.ac.uk Sent: Thursday, April 25, 2013 12:51 PM To: FreeRadius users mailing list Subject: Re: Retrieve 'Aruba-Location-Id' from RAD_REQUEST Hi, I am trying to retrieve 'Aruba-Location-Id' from RAD_REQUEST forwarded from Aruba wireless controllers. From radiusd -X output, I can see `Aruba-Location-Id' contains wireless AP id value. But when I call it from rlm_perl using $RAD_REQUEST{'Aruba-Location-Id'}, I got blank result. The `Aruba-Location-Id' is in share/dictionary.aruba: copy of your PERL and/or radiusd -X output please alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Retrieve 'Aruba-Location-Id' from RAD_REQUEST
hi, tired eyes so might have missed something obvious...but can you add the following into your authorise subroutine at the top log_request_attributes; and ensure you have the following at the bottom sub log_request_attributes { for (keys %RAD_REQUEST) { radiusd::radlog(L_DBG, RAD_REQUEST: $_ = $RAD_REQUEST{$_}); } } ..then run FR is debug mode again and see what comes out. cheers alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html