0

I have a variable coming in to Apache called "MELLON_NAME_ID" as part of mod_auth_mellon for SSO. It populates the variable with "DOMAIN\Username", and I need to populate the REMOTE_USER variable with just the "Username" portion of that. Is this possible?

Edit: It's also populating REMOTE_USER with the same value, so all I really need is to remove the "DOMAIN\" portion.

Thanks!

Adam vonNieda
  • 1,635
  • 2
  • 14
  • 22
  • Did you try `MellonSetEnvNoPrefix "REMOTE_USER" "Username"`? Not sure about the `Username` variable but there must be one containing just the user that you can use in conjonction with `MellonSetEnvNoPrefix` – Capsule Jun 14 '17 at 03:04
  • Thanks for the response Capsule, but I don't think that's really what I'm looking for. I don't need to translate a username to another, and don't want to have to have an entry for each username. I'm just looking to strip off the "DOMAIN\" portion of the value of REMOTE_USER every time. Seems like it's likely a mod_rewrite situation, but I'm not sure of the syntax yet. – Adam vonNieda Jun 14 '17 at 12:51
  • I'd still double check the mod_auth_mellon documentation as you can pretty much define any Environment variable you want. – Capsule Jun 14 '17 at 13:07

0 Answers0