Forum Discussion
Ldap query from ltm
"$value_from_uri" is an arbitrary variable I used to illustrate the syntax. I'm not sure exactly what you'd be searching the LDAP or web server for, or where in the request payload you'd find it. The point is that you're going to presumably extract some value from the request and then look for that value in data group. Here's another example to illustrate that:
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::uri]] starts_with my_datagroup] } {
do something
}
}
Here I'm searching the data group for the beginning of the request URI. Try to think about what you were going to query the LDAP server for (a user name perhaps?), what you expected to receive from the query (a list of URIs they could access? or just existence?), and where you were going to get the information from to make the request (a logon form?).
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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