[Tips] How to Dynamically Limit Access to a folder based on its name and Apache SSL Session Variable

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

 



Hello everybody, is it possible to dynamically restrict access to a folder based on its name?

For example, all my folders are MAC address names and I would like to dynamically restrict each directory access based on %{SSL_CLIENT_S_DN_CN} which 
contains the mac address of the client
Thanks

ex: 
Restrict /home/web/provisioning/000e08133a50  folder to be accessible only by host with SSL_CLIENT_S_DN_CN="000e08133a50"
Restrict /home/web/provisioning/000e08133a54  folder to be accessible only by host with SSL_CLIENT_S_DN_CN="000e08133a54"
...

But doing it dynamically without changing apache configuration or creating a .htpasswd each time I add a new folder

I would like to have something like
<Location /home/web/provisioning/*/>
	SSLVerifyClient require
	SSLRequire  %{SSL_CLIENT_S_DN_CN} =~ m/^NAME_OF_THE_WILDCARD_FOLDER_WITCH_IS_ALSO_A_MAC_ADDRESS$/
</Location>


Thanks for your help!
Best Regards,

-- 
-- --
Marc LEURENT
lftsy@xxxxxxxxxx

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-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