logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: mod_auth_kerb rewrite
Author
chriscowley



Joined: 12 Oct 2009
Posts: 1
Location: Havant UK

PostPosted: Mon 12 Oct '09 18:28    Post subject: mod_auth_kerb rewrite Reply with quote

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

PostPosted: Thu 22 Oct '09 12:51    Post subject: Reply with quote

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


Reply to topic   Topic: mod_auth_kerb rewrite View previous topic :: View next topic
Post new topic   Forum Index -> Apache