Re: Understanding the concepts of <Require*>

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

 



On Sun, Nov 3, 2013 at 12:56 PM, Freek de Kruijf <f.de.kruijf@xxxxxxxxx> wrote:
> I am trying to translate the following old syntax into the new concept with
> <Require{All|Any|None}>  but After several tries could not figure out how.
>
> The following old syntax is:
>   Require valid-user
>   Order Deny,Allow
>   Deny from All
>   Allow from 127.0.0.1
>   Allow from .example.com
>   Satisfy any
>
> I tried among others:
> <RequireAll>
>   <RequireAny>
>     Require valid-user
>     Require local
>     Require host .example.com
>   </RequireAny>
>   <RequireNone>
>     Require all granted
>   </RequireNone>
> </RequireAll>

Your old config accepts any 1 of an authenticated user, a user from
127.0.0.1, or a user from example.com -- so it is much simpler.

<RequireAny>
  require ip 127.0.0.1
  require host .exampl.com
  require valid-user
<RequireAny>

(actually RequireAny is the default, but it doesn't hurt to make it explicit)

---------------------------------------------------------------------
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