Hi everyone,
I would like to dynamically select RDP backends based on a users group membership.
From what i have read, i need to create a lua script to register a fetch and use that fetch in an acl.
I created a simple lua script with a fetch named test_ldap
, loaded it into haproxy.cfg and added
use_backend backend1 { if lua.test_ldap() -m bool }
to the frontend section.
Now i’m struggling on how to access or pass the rdp cookie to that lua function. I tried different things but it all resulted in nil values.
I would really appreciate if anyone can give me an example on how to access the rdp cookie within a lua script.
Thanks in advance
2 posts - 1 participant