Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: mod_auth_kerb rewrite |
|
Author |
|
chriscowley
Joined: 12 Oct 2009 Posts: 1 Location: Havant UK
|
Posted: Mon 12 Oct '09 18:28 Post subject: mod_auth_kerb rewrite |
|
|
I need to modify the principal that mod_auth_kerb is writing into REMOTE_USER.
Currently it is being written as FirstnameLastname@REALM.LOCAL
want to overwrite the variable with FirstnameLastname ie strip off my REALM. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 22 Oct '09 12:51 Post subject: |
|
|
Maybe you can use
Code: |
RequestHeader edit REMOTE_USER SOME_REG_EX
#an example I found on the net
RequestHeader edit REMOTE_USER ^(?:[^\\]+\\)(.+)$ $1
|
I'm not used to regular expression to search and replace things. But you can take a look in the manual http://httpd.apache.org/docs/2.2/mod/mod_headers.html#requestheader |
|
Back to top |
|
|
|
|
|
|