homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Add more info to Existng remote_user

Msg#: 4584872 posted 11:44 am on Jun 17, 2013 (gmt 0)

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



WebmasterWorld Administrator phranque us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4584872 posted 3:42 am on Jun 26, 2013 (gmt 0)

welcome to WebmasterWorld, jp9757!

does something like this work?
RewriteRule . - [E=RU:%1_agt]
Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved