Forum Discussion
NoamRotter_1534
Nimbostratus
Jan 15, 2017Calling access profile from VPE
I have a general access profile with default settings that assigns pools based on URI in the VPE:
/uri1 = app1
/uri2 = app2
Now, I want that /uri3 will have a different access profile with customized Settings like
"Max Sessions Per User" limit
basically, the user should hit the default access profile and switch to the customized access profile.
Is it possible to switch between access profiles within the VPE?
Thanks,
Noam.
3 Replies
- Faruk_AYDIN
Altostratus
You cannot use different ACCESS Profile based on VS. There is another question like this :
APM multiple profiles one VS - stan_piron
Cumulonimbus
Hi,
you can use this irule.
when ACCESS_POLICY_COMPLETED { if {([ACCESS::policy result] equals "allow") && [set maxSession [ ACCESS::session data get session.custom.maxSession ]] } { set apm_uuid "[PROFILE::access name].[ACCESS::session data get session.logon.last.username]" set apm_cookie_list [ ACCESS::uuid getsid $apm_uuid ] if {[llength $apm_cookie_list] > $maxSession} { set apm_oldestid [ lindex $apm_cookie_list 0 ] ACCESS::session remove -sid $apm_oldestid } } }The max session value must be set in variable
session.custom.maxSessionthe irule will have the same behavior as the default option, remove the oldest session with same uuid (username authenticated on the current profile)
- stan_piron
Cumulonimbus
Hi,
can you log this value to check if it is the same as variable apm_uuid?
[ACCESS::session data get session.assigned.uuid]if it is different, change code with :
set apm_uuid [ACCESS::session data get session.assigned.uuid]
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