3.34. <AuthBy GROUP> Previous topic Parent topic Child topic Next topic

<AuthBy GROUP> allows you to conveniently define and group multiple AuthBy clauses. It is implemented in AuthGROUP.pm. This is most useful where you need to be able to have multiple sets of authentication clauses, perhaps with different AuthByPolicy settings for each group. You can use an <AuthBy GROUP> (containing any number of AuthBy clauses) anywhere that a single AuthBy clause is permitted. <AuthBy GROUP> can be nested to any depth.
<AuthBy GROUP> will try each AuthBy method in turn until one of them either Accepts or Rejects the request. You can change this using AuthByPolicy. For more information, see Section 3.34.1. AuthByPolicy.
<AuthBy GROUP>
      AuthByPolicy ContinueUntilReject
      <AuthBy SQL>
            ...
      </AuthBy>
      <AuthBy DBM>
            ...
      </AuthBy>
      <AuthBy GROUP>
            AuthByPolicy ContinueUntilAccept
            RewriteUsername s/^(.+)$/cyb-$1/
            <AuthBy FILE>
                  ...
            </AuthBy> 
            <AuthBy FILE>
                  ... 
            </AuthBy>
      </AuthBy>
</AuthBy>
<AuthBy GROUP> understands also the same parameters as <AuthBy xxxxxx>. For more information, see Section 3.28. <AuthBy xxxxxx>.