Dynamic authentication rules

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

 



Hello,

In general, I would handle that kind of authentification tricks in a
perl script, however in this case I would need to protect a script
directly in Apache.

What presumably would work:

<If "%{QUERY_STRING} =~ /^someapp\/\?domain=testing;/">
       AuthType Basic
       AuthName "Login Required for testing"
       AuthUserFile /shared/testing/htpasswd
       Require valid-user
</If>

What I would like to do:

<If "%{QUERY_STRING} =~ /^someapp\/\?domain=([a-z]+);/">
       AuthType Basic
       AuthName "Login Required for $1"
       AuthUserFile /shared/$1/htpasswd
       Require valid-user
</If>

Is there a way to do something dynamic like this ?

Thank you for any pointer.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[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