55 * be reused in several places.
66 */
77$ config = array (
8-
9- 'adminlist ' => array (
10- //array('allow', 'equals', 'mail', 'admin1@example.org'),
11- //array('allow', 'has', 'groups', 'admin'),
12- // The default action is to deny access.
13- ),
14-
15- 'example-simple ' => array (
16- array ('allow ' , 'equals ' , 'mail ' , 'admin1@example.org ' ),
17- array ('allow ' , 'equals ' , 'mail ' , 'admin2@example.org ' ),
18- // The default action is to deny access.
19- ),
20-
21- 'example-deny-some ' => array (
22- array ('deny ' , 'equals ' , 'mail ' , 'eviluser@example.org ' ),
23- array ('allow ' ), // Allow everybody else.
24- ),
25-
26- 'example-maildomain ' => array (
27- array ('allow ' , 'equals-preg ' , 'mail ' , '/@example\.org$/ ' ),
28- // The default action is to deny access.
29- ),
30-
31- 'example-allow-employees ' => array (
32- array ('allow ' , 'has ' , 'eduPersonAffiliation ' , 'employee ' ),
33- // The default action is to deny access.
34- ),
35-
36- 'example-allow-employees-not-students ' => array (
37- array ('deny ' , 'has ' , 'eduPersonAffiliation ' , 'student ' ),
38- array ('allow ' , 'has ' , 'eduPersonAffiliation ' , 'employee ' ),
39- // The default action is to deny access.
40- ),
41-
42- 'example-deny-student-except-one ' => array (
43- array ('deny ' , 'and ' ,
44- array ('has ' , 'eduPersonAffiliation ' , 'student ' ),
45- array ('not ' , 'equals ' , 'mail ' , 'user@example.org ' ),
46- ),
47- array ('allow ' ),
48- ),
49-
50- 'example-allow-or ' => array (
51- array ('allow ' , 'or ' ,
52- array ('equals ' , 'eduPersonAffiliation ' , 'student ' , 'member ' ),
53- array ('equals ' , 'mail ' , 'someuser@example2.org ' ),
54- ),
55- ),
56-
57- 'example-allow-all ' => array (
58- array ('allow ' ),
59- ),
60-
61- );
8+ 'adminlist ' => array (
9+ //array('allow', 'equals', 'mail', 'admin1@example.org'),
10+ //array('allow', 'has', 'groups', 'admin'),
11+ // The default action is to deny access.
12+ ),
13+
14+ 'example-simple ' => array (
15+ array ('allow ' , 'equals ' , 'mail ' , 'admin1@example.org ' ),
16+ array ('allow ' , 'equals ' , 'mail ' , 'admin2@example.org ' ),
17+ // The default action is to deny access.
18+ ),
19+
20+ 'example-deny-some ' => array (
21+ array ('deny ' , 'equals ' , 'mail ' , 'eviluser@example.org ' ),
22+ array ('allow ' ), // Allow everybody else.
23+ ),
24+
25+ 'example-maildomain ' => array (
26+ array ('allow ' , 'equals-preg ' , 'mail ' , '/@example\.org$/ ' ),
27+ // The default action is to deny access.
28+ ),
29+
30+ 'example-allow-employees ' => array (
31+ array ('allow ' , 'has ' , 'eduPersonAffiliation ' , 'employee ' ),
32+ // The default action is to deny access.
33+ ),
34+
35+ 'example-allow-employees-not-students ' => array (
36+ array ('deny ' , 'has ' , 'eduPersonAffiliation ' , 'student ' ),
37+ array ('allow ' , 'has ' , 'eduPersonAffiliation ' , 'employee ' ),
38+ // The default action is to deny access.
39+ ),
40+
41+ 'example-deny-student-except-one ' => array (
42+ array ('deny ' , 'and ' ,
43+ array ('has ' , 'eduPersonAffiliation ' , 'student ' ),
44+ array ('not ' , 'equals ' , 'mail ' , 'user@example.org ' ),
45+ ),
46+ array ('allow ' ),
47+ ),
48+
49+ 'example-allow-or ' => array (
50+ array ('allow ' , 'or ' ,
51+ array ('equals ' , 'eduPersonAffiliation ' , 'student ' , 'member ' ),
52+ array ('equals ' , 'mail ' , 'someuser@example2.org ' ),
53+ ),
54+ ),
55+
56+ 'example-allow-all ' => array (
57+ array ('allow ' ),
58+ ),
59+ );
0 commit comments