Hello Guys, this is my new setting , I don't know is there any mistake.
1. download and install simpleSAML plugin for moodle 2.2 from this link http://moodle.org/plugins/view.php?plugin=auth_saml
2. for moodle configuration
SimpleSAMLPHP Library path:
|
|
Library path for the SimpleSAMLPHP environment you want to eg: /var/www/sp/simplesamlphp/lib
|
SimpleSAMLPHP SP source:
|
|
Select the SP source you want to connect to moodle. (Sources are in /config/authsources.php).
|
SAML username mapping:
|
|
SAML attribute that is mapped to Moodle username - this defaults to eduPersonPrincipalName
|
Single Log out:
|
|
Check it to enable the single logout. This will log out you from moodle, identity provider and all conected service providers
|
SAML Image:
|
|
Image path for the SAML login button
|
SAML login description:
|
|
Description that will be shown below the SAML login button
|
Log file path:
|
|
Set a filename if you want log the saml plugin errors in a different file that the syslog (Use an absolute path or Moodle will save this file in the moodledata folder)
|
Hook file path:
|
|
Set a
|
3. simplesaml form simpleSAML site download and install
4. config these file according to requirement
a. authsource.php -----
'default-sp' => array(
'saml:SP',
'privatekey' => 'saml12.pem',
'certificate' => 'saml12.crt',
'entityID' => NULL,
'idp' => 'http://172.16.1.215:8085/moodle/',
'discoURL' => NULL,
),
b. saml20-idp-hosted --- 'auth' => 'example-sql',
c. saml20-sp-remote ---- add metadata here --
$metadata['http://172.16.1.215:8085/simplesaml/module.php/saml/sp/metadata.php/default-sp'] = array(
//'AssertionConsumerService' => 'http://172.16.1.215:8085/xxx/moodle/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp',
'AssertionConsumerService' => array(
'http://172.16.1.215:8085/xxxx/moodle/',
'http://172.16.1.215:8085/',
),
'SingleLogoutService' => 'http://172.16.1.215:8085/xxx/moodle/simplesaml/module.php/saml/sp/saml2-logout.php/default-sp',
);
now problem is
1. simpleSAML go through its authontication method correctly , (example-sql which is on) and redirect to moodle site .. but without login ... I don't know where I am making mistake.
2. when I directly click on simpleSAMLphp image (see below), it show me the error "Invalid authentication source: saml" althought saml authontication is on in my moodle site ... please help me ...
Returning to this web site?
-------- ============
SAML login
Login here using your username and password
(Cookies must be enabled in your browser)