I'm very new to this and have been tasked with coming up with a Single Sign on solution to a system that basically can have three usernames for the same user and the only difference is _agt (Agent Login), _sup (supervisor Login) and _adm (Admin Login)
The username is all these is the users default windows username and password.
Using mod rewrite I am able to get the username of the user but how do I append the _agt, _sup or _adm to the username?
My idea is to have three separate locations that resolve to one central location and then do the three different rewrites as listed above.
This is the rewrite code I'm using at the moment inside the location section for agt - at the moment this only gets me the username
RewriteEngine on
RewriteCond %{REMOTE_USER} (.+)
RewriteRule . - [E=RU:%1]
RequestHeader set REMOTE_USER %{RU}e