Hello José,

On 07-ago-09, at 11:14, José Illescas Pérez wrote:

> I'm reading cherokee documentation for configure auth ldap, but I  
> don't
> understand. Is there a wizard?.
>
> http://www.cherokee-project.com/doc/modules_validators_ldap.html
>
> How can I configure it in a virtual server?.

Authentication is defined in a per-rule basis, so it's configured from  
within an individual rule properties. This is:  Virtual Servers ->  
(pick one) -> Behavior -> (pick a rule) -> Security -> Authentication.

If you wanted to require authentication for accessing any object from  
a certain Virtual Server, you'd have to set a new rule in the virtual  
server. It's important to bare in mind the following things:

  - This rule MUST be the first of the list (rules are evaluated from  
top to bottom).
  - It MUST NOT be marked as final.
  - The rule match should be "Directory /", so it matches all the  
requests.
  - The rule ought to define only the Authentication information.

The rationale is: When a new request for that virtual server is  
evaluated (in order to figure how it should be treated), it's matched  
against the behavior rules. Only if a rule matches its parameters are  
applied. If the rule is final the matching finishes, otherwise it  
continues until the end of the list.

In this case, every single request targeting the virtual host would  
match that first rule, and therefore the authentication requirement  
would be applied. Since it isn't a 'final' rule, the behaviour rule  
list evaluation goes on, so the rest of the regular behavior  
properties are applied as before.

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to