We are trying to implement authentication proxy from Apache httpd. This should secure application that uses Basic Authentication but user should authenticate with httpd's authentication (mod_auth_cas in our case).
I can add RequestHeader with proper Authorised value that sends credentials to application but it's static with just one user that authenticates.
Is there some way to set RequestHeader value with script? Or some other method to build such authentication proxy?
I'm already considering cgi script that will handle the proxy function. But that seems to me like highway to hell.