[users@httpd] environment-only rewrite rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm struggling to create a mod_rewrite rule which *doesn't* modify the
request - only changes an environment variable

I tried -


RewriteRule . %{REQUEST_FILENAME} [L,E=KRB5CCNAME:%{ENV:REDIRECT_KRB5CCNAME}]


- but still it has some weird side effects

I'm using PHP SASL bindings -
http://cgi.sfu.ca/~jdbates/moin/moin.cgi/SquirrelMail&SASL

GSSAPI authentication needs the KRB5CCNAME environment variable set by
mod_auth_kerb

- but with php-cgi, KRB5CCNAME corresponds to defining Kerberos
authentication on the PHP interpreter, where as REDIRECT_KRB5CCNAME is
authentication defined on the PHP script

Defining Kerberos authentication on the PHP interpreter isn't reasonable
because I don't want all scripts to require authentication

So my challenge is to copy contents of REDIRECT_KRB5CCNAME to KRB5CCNAME

Any help? Many thanks! Jack

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux