Alkalmazások_samlizálást_segítő_teszt_IdP_simplesamlPHP_segítségével
-
Telepítünk egy SSP egyedet valamelyik szerverünkre.
-
Engedélyezzük a userpass auth forrás modult.
touch modules/exampleauth/enable
-
Elrendezzük a metadatákat.
-
Az authsources.php file-t valahogy így alakítjuk ki:
<?php
$config = array(
// This is a authentication source which handles admin authentication.
'admin' => array(
// The default is to use core:AdminPassword, but it can be replaced with
// any authentication source.
'core:AdminPassword',
),
'multi' => array(
'multiauth:MultiAuth',
/*
* The available authentication sources.
* They must be defined in this authsources.php file.
*/
'sources' => array('projekt1', 'projekt2'),
),
'projekt1' => array(
'exampleauth:UserPass',
'tesztuser1:tesztuser1' => array(
'eduPersonPrincipalName' => array('tesztuser1@example.com'),
'uid' => array('tesztuser1'),
'cn' => "Nemecsek Ernő",
'sn' => "Nemecsek",
'givenName' => "Ernő",
'mail' => "devnull@example.com",
'homePostalAddress' => "1234 Budapest, Nincsisilyen utca 2.",
'schacDateOfBirth' => "19751221",
'schacPlaceOfBirth' => "Budapest",
'niifPersonMothersName' => "Törőcsik Mari",
'niifPersonResidentalAddress' => "3456 Nagyabajom, Mitírjakide utca 2.",
),
'tesztuser2:tesztuser2' => array(
'eduPersonPrincipalName' => array('tesztuser2@example.com'),
'uid' => array('tesztuser2'),
'cn' => "Nemecsek Ernő 2",
'sn' => "Nemecsek",
'givenName' => "Ernő",
'mail' => "devnull@example.com",
'homePostalAddress' => "1234 Budapest, Nincsisilyen utca 2.",
'schacDateOfBirth' => "19751221",
'schacPlaceOfBirth' => "Budapest",
'niifPersonMothersName' => "Törőcsik Mari",
'niifPersonResidentalAddress' => "3456 Nagyabajom, Mitírjakide utca 2.",
),
),
'projekt2' => array(
'exampleauth:UserPass',
'tesztuser1:tesztuser1' => array(
'eduPersonPrincipalName' => array('tesztuser1@example.com'),
'uid' => array('tesztuser1'),
'cn' => "Nemecsek Ernő",
'sn' => "Nemecsek",
'givenName' => "Ernő",
'mail' => "devnull@example.com",
'homePostalAddress' => "1234 Budapest, Nincsisilyen utca 2.",
'schacDateOfBirth' => "19751221",
'schacPlaceOfBirth' => "Budapest",
'niifPersonMothersName' => "Törőcsik Mari",
'niifPersonResidentalAddress' => "3456 Nagyabajom, Mitírjakide utca 2.",
),
'tesztuser2:tesztuser2' => array(
'eduPersonPrincipalName' => array('tesztuser2@example.com'),
'uid' => array('tesztuser2'),
'cn' => "Nemecsek Ernő 2",
'sn' => "Nemecsek",
'givenName' => "Ernő",
'mail' => "devnull@example.com",
'homePostalAddress' => "1234 Budapest, Nincsisilyen utca 2.",
'schacDateOfBirth' => "19751221",
'schacPlaceOfBirth' => "Budapest",
'niifPersonMothersName' => "Törőcsik Mari",
'niifPersonResidentalAddress' => "3456 Nagyabajom, Mitírjakide utca 2.",
),
),
);
Nincs megjegyzés