Forum Discussion
Delete session after Ldap query
we must create a service that it make a ldap query with username. We have created an Access Profile with ldap query. After retrieve the informations from ldap, we check their.
If the informations are correct, the service must load balance traffic to the specified pool with the command "pool". At Last, we want to eliminate the session that was created by APM.
How can we delete the session before to send the response to the client?
- Michael_JenkinsCirrostratus
You may want to check out the ACCESS::policy evaluate function that you can call from an iRule to see if you can accomplish what you're looking for with that. You could try to use it to evaluate an access policy like you've mentioned that does an LDAP query and then does an
orallow
and use that response in the iRule to determine whether to set thedeny
orpool
/reject
the request. (On that page, it also shows how to remove the session in the example)drop
- Stefano_E__1814Nimbostratus
This is the solution:
when CLIENT_CLOSED { To avoid clutter, remove the access session for the flow. ACCESS::session remove -sid $flow_sid }
We remove the session in the wrong events. Now, in "CLIENT_CLOSED" it work correctly.
Thx!!! Stefano
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