Forum Discussion
matm_58717
Nimbostratus
Feb 15, 2017Problems comparing memberof variable
Hi,
We have APM provisioning and trying use a iRule to discard the conection if session.ldap.last.attr.memberOf variable contains a certain value. This is the iRule:
when ACCESS_POLICY_COMPLET...
JG
Cumulonimbus
Feb 16, 2017Try this one:
when ACCESS_ACL_ALLOWED {
set aux "[ACCESS::session data get session.ldap.last.attr.memberOf]"
if { $aux contains "TEST" } {
$aux = 1
} else {
$aux = 0
}
switch -glob [HTTP::uri] {
"/URI_A/*" {
pool /Common/P-URI_A
}
"/URI_B/*" {
pool /Common/P-URI_B
}
"/URI_C/*" {
pool /Common/P-URI_C
}
"/URI_D/*" {
pool /Common/P-URI_D
}
"/URI_E/*" {
if {($aux == 0)}{
discard
}
}
default {
pool /Common/P-URI_DEFAULT
}
}
}
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