Forum Discussion
Nicolas. I found the default cookie name and created this policy. (IP details removed). I tried to match your policy, with only selecting one of the servers at this time.
I also added the catch {LB::detach} to the HTTP_REQUEST that includes the header insert. That is the only irule applied at this time. Since we are picking a node in the policy, I removed the default pool from the virtual server configuration.
when HTTP_REQUEST {
catch {LB::detach}
set username [string tolower [ACCESS::session data get session.ldap.last.attr.employeeID]]
HTTP::header insert X-Remote-User $username
}
It's back to the same "Can't reach page error connection reset" that was the original problem when putting the irule coding in anything except the when ACCESS_ACL_ALLOWED event.
I'm going to add some more logging and perhaps tcpdumps to see what is happening, but at this time it doesn't work with the policy.