Skip to content

Commit d0babaa

Browse files
authored
Merge pull request #907 from catalyst/401-bump-simplesamlphp-2.0.15
401 bump simplesamlphp 2.0.15
2 parents f7f1e99 + 0cbfa53 commit d0babaa

File tree

1,943 files changed

+45828
-36930
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,943 files changed

+45828
-36930
lines changed

.extlib/UPGRADE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ php -r "unlink('composer-setup.php');"
2424
```
2525
### Remove any dependencies we don't want.
2626
Remove symfony/config/Tests/Fixtures as PHPLint fails due to unexpected end of file error in Fixtures/ParseError.php.
27-
In 1.17 build, we removed symfony/polyfill-php70 from composer.lock.
27+
In 1.17 build, we removed symfony/polyfill-php70 from composer.lock. Including removing phpmailer/phpmailer from composer. See Issue #469
2828

2929
### Install the external dependencies (excluding dev)
3030
Make sure you run the install with "--no-dev" as below.

.extlib/simplesamlphp/SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The 1.19 branch will receive security and critical bug fixes until the end of 20
1212

1313
## Reporting a Vulnerability
1414

15-
In case you find a vulnerability in SimpleSAMLphp, or you want to confirm a possible security issue in the software, please get in touch with us through [UNINETT's CERT team](https://www.uninett.no/cert). Please use our PGP public key to encrypt any possible sensitive data that you may need to submit. We will get back to you as soon as possible according to our working hours in Central European Time.
15+
In case you find a vulnerability in SimpleSAMLphp, or you want to confirm a possible security issue in the software, please get in touch with us through [Sikt's CERT team](https://sikt.no/abuse). Please use our PGP public key to encrypt any possible sensitive data that you may need to submit. We will get back to you as soon as possible according to our working hours in Central European Time.
1616

1717
When reporting a security issue, please add as much information as possible to help us identify, confirm, replicate and fix the problem. In particular, remember to include the following information in your report:
1818

.extlib/simplesamlphp/bin/console

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set_time_limit(0);
1111
require __DIR__.'/../vendor/autoload.php';
1212

1313
$input = new ArgvInput();
14-
$module = $input->getParameterOption(['--modules', '-m'], 'core');
14+
$module = $input->getParameterOption(['--module', '-m'], 'core');
1515
$kernel = new Kernel($module);
1616

1717
$application = new Application($kernel);

.extlib/simplesamlphp/bin/importPdoMetadata.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
<?php
33

44
$baseDir = dirname(__FILE__, 2);
5-
65
require_once $baseDir . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . '_autoload.php';
7-
require_once \SimpleSAML\Utils\Config::getConfigDir() . DIRECTORY_SEPARATOR . 'config.php';
6+
7+
// This is the config dir of the SimpleSAMLphp installation
8+
$configDir = (new \SimpleSAML\Utils\Config())->getConfigDir();
9+
10+
require_once $configDir . DIRECTORY_SEPARATOR . 'config.php';
811

912
# Iterate through configured metadata sources and ensure
1013
# that a PDO source exists.

.extlib/simplesamlphp/bin/initMDSPdo.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66

77
// Add library autoloader and configuration
88
require_once $baseDir . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . '_autoload.php';
9-
require_once \SimpleSAML\Utils\Config::getConfigDir() . DIRECTORY_SEPARATOR . 'config.php';
9+
10+
// This is the config dir of the SimpleSAMLphp installation
11+
$configDir = (new \SimpleSAML\Utils\Config())->getConfigDir();
12+
13+
require_once $configDir . DIRECTORY_SEPARATOR . 'config.php';
1014

1115
echo "Initializing Metadata Database..." . PHP_EOL;
1216

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?php
2+
3+
/*
4+
* This file defines "named" access control lists, which can
5+
* be reused in several places.
6+
*/
7+
$config = [
8+
'adminlist' => [
9+
//['allow', 'equals', 'mail', 'admin1@example.org'],
10+
//['allow', 'has', 'groups', 'admin'],
11+
// The default action is to deny access.
12+
],
13+
14+
'example-simple' => [
15+
['allow', 'equals', 'mail', 'admin1@example.org'],
16+
['allow', 'equals', 'mail', 'admin2@example.org'],
17+
// The default action is to deny access.
18+
],
19+
20+
'example-deny-some' => [
21+
['deny', 'equals', 'mail', 'eviluser@example.org'],
22+
['allow'], // Allow everybody else.
23+
],
24+
25+
'example-maildomain' => [
26+
['allow', 'equals-preg', 'mail', '/@example\.org$/'],
27+
// The default action is to deny access.
28+
],
29+
30+
'example-allow-employees' => [
31+
['allow', 'has', 'eduPersonAffiliation', 'employee'],
32+
// The default action is to deny access.
33+
],
34+
35+
'example-allow-employees-not-students' => [
36+
['deny', 'has', 'eduPersonAffiliation', 'student'],
37+
['allow', 'has', 'eduPersonAffiliation', 'employee'],
38+
// The default action is to deny access.
39+
],
40+
41+
'example-deny-student-except-one' => [
42+
['deny', 'and',
43+
['has', 'eduPersonAffiliation', 'student'],
44+
['not', 'equals', 'mail', 'user@example.org'],
45+
],
46+
['allow'],
47+
],
48+
49+
'example-allow-or' => [
50+
['allow', 'or',
51+
['equals', 'eduPersonAffiliation', 'student', 'member'],
52+
['equals', 'mail', 'someuser@example2.org'],
53+
],
54+
],
55+
56+
'example-allow-all' => [
57+
['allow'],
58+
],
59+
];

0 commit comments

Comments
 (0)