Forum Discussion
1gw_60162
Nimbostratus
Feb 04, 2005custom RADIUS authentication
I am new to the TCL and BIG-IP worlds, and am having difficulty figuring this problem out using the Config Guide for LTM. How would I go about writing an iRule to authenticate a client via RADIUS, then pass the username and a static password to the application server(s)? The static password is the same for all users.
- Tao_Liu_90341Historic F5 AccountThere are shipped authentication rules in profile_base.conf. Check _sys_auth_radius. You make a copy of that rule (use different name though). Then replace string "[HTTP::username]" with the desired name,
AUTH::username_credential $tmm_auth_radius_sid "hacker" AUTH::password_credential $tmm_auth_radius_sid "nopasswd"
- Tao_Liu_90341Historic F5 AccountIf you do mean to rewrite the HTTP authentication header, you can write a new radius auth rule with AUTH_SUCCESS event handler like this:
when AUTH_SUCCESS { if {$tmm_auth_radius_sid eq [AUTH::last_event_session_id]} { set newauth [b64encode [format "%s:%s" [HTTP::username] "xxxx"]] HTTP::header remove Authorization HTTP::header insert Authorization "Basic $newauth" HTTP::release } }
- karthik_sriniva
Nimbostratus
I am getting error when I try to use [HTTP::header] or [HTTP:username] with in
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects