Forum Discussion
Andrés_Ortiz_10
Nimbostratus
Aug 11, 2007<b> ldapsearch error </b>
Hi, we try Load Balance with i-rules and class networks,and we have problems with this.The request that we send is: ldapsearch -h 10.237.0.255 -b o=SIUX "LOGIN-IP=10.146.248.2" MSISDN ...
spark_86682
Aug 14, 2007Historic F5 Account
I think that you're just using the wrong variable. You have:
set IP [concat “Octeto_Uno.$Octeto_Dos.$Octeto_Tres.1”]
if {$IP != ""}{
if { [matchclass $LoginIP equals $::LDAP_GroupA]}{
pool PoolA
} elseif { [matchclass $LoginIP equals $::LDAP_GroupB]}{
pool PoolA
}
} else {
pool $::defaultPool
}
TCP::release
}You're constructing the ip address in the "IP" variable, but then you're using the original "LoginIP" variable in the matchclass statements.
Also, if you're concerned that you might get input that isn't an IP address, you should do some data validation to make sure that the "Octeto" variables actually contain numbers.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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