Forum Discussion
dogg_dogg_23774
Nimbostratus
Sep 11, 2007Loadbalancing based on group membership
Hi,
I have a customer who wants to LB based on group membership.
Using sample in http://devcentral.f5.com/wiki/default.aspx/iRules/AUTH__response_data.html, I have created my rule, but it has been failing...
From tcpdump and log file, it seems like the authentication itself is success and group membership is sent to Big-IP, but somehow not working.
When RULE_INIT {
set tmm_auth_subscription "*"
}
when AUTH_RESULT {
log local0. "result is [AUTH::status]"
array set auth_response_data [AUTH::response_data]
set ldap_group [lindex [array get auth_response_data ldap:attr:isMemberOf] 1]
if { $ldap_group eq "CN=Sales,DC=rose,DC=lab" } {
log local0. "hit 197"
use pool iis197
} elseif { $ldap_group eq "CN=Tech,DC=rose,DC=lab" } {
log local0. "hit 240"
use pool iis240
}
}
Has anyone done this successfully?
If so, could you provide working example?
TIA,
- dogg_dogg_23774
Nimbostratus
I have been able to get this to work.
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