50 |
if ( ( ($groupsRead eq "") && ($usersRead eq "") ) || ( ( ($groupsRead ne "") || ($usersRead ne "") ) && ($port eq 443) ) ) { |
if ( ( ($groupsRead eq "") && ($usersRead eq "") ) || ( ( ($groupsRead ne "") || ($usersRead ne "") ) && ($port eq 443) ) ) { |
51 |
|
|
52 |
- $OUT .= " allow from $allow\n"; |
- $OUT .= " allow from $allow\n"; |
53 |
+ $OUT .= " <satisfy>\n"; |
+ $OUT .= " <$satisfy>\n"; |
54 |
+ $OUT .= " Require $allow\n"; |
+ $OUT .= " Require $allow\n"; |
55 |
$OUT .= " Require group $groupsRead\n" unless ($groupsRead eq ""); |
$OUT .= " Require group $groupsRead\n" unless ($groupsRead eq ""); |
56 |
$OUT .= " Require user $usersRead\n" unless ($usersRead eq ""); |
$OUT .= " Require user $usersRead\n" unless ($usersRead eq ""); |
57 |
+ $OUT .= " </satisfy>\n"; |
+ $OUT .= " </$satisfy>\n"; |
58 |
|
|
59 |
} else { |
} else { |
60 |
|
|
84 |
- $OUT .= " allow from $allow\n"; |
- $OUT .= " allow from $allow\n"; |
85 |
- $OUT .= " Require group $groupsWrite\n" unless ($groupsWrite eq ""); |
- $OUT .= " Require group $groupsWrite\n" unless ($groupsWrite eq ""); |
86 |
- $OUT .= " Require user $usersWrite\n" unless ($usersWrite eq ""); |
- $OUT .= " Require user $usersWrite\n" unless ($usersWrite eq ""); |
87 |
+ $OUT .= " <satisfy>\n"; |
+ $OUT .= " <$satisfy>\n"; |
88 |
+ $OUT .= " Require $allow\n"; |
+ $OUT .= " Require $allow\n"; |
89 |
+ $OUT .= " <RequireAny>\n" unless ($groupsWrite eq "" || $usersWrite eq ""); |
+ $OUT .= " <RequireAny>\n" unless ($groupsWrite eq "" || $usersWrite eq ""); |
90 |
+ $OUT .= " Require group $groupsWrite\n" unless ($groupsWrite eq ""); |
+ $OUT .= " Require group $groupsWrite\n" unless ($groupsWrite eq ""); |
91 |
+ $OUT .= " Require user $usersWrite\n" unless ($usersWrite eq ""); |
+ $OUT .= " Require user $usersWrite\n" unless ($usersWrite eq ""); |
92 |
+ $OUT .= " </RequireAny>\n" unless ($groupsWrite eq "" || $usersWrite eq ""); |
+ $OUT .= " </RequireAny>\n" unless ($groupsWrite eq "" || $usersWrite eq ""); |
93 |
+ $OUT .= " </satisfy>\n"; |
+ $OUT .= " </$satisfy>\n"; |
94 |
|
|
95 |
} else { |
} else { |
96 |
|
|