simpleSAMLphp issue

simpleSAMLphp issue

by Shail Jai -
Number of replies: 4

Hello guys , 

I am using moodle 2.2 with simpleSAMLphp (dowload latest version from moodle plugin assumng this will be good for moodle 2.2)... 

now my problem is I don't know how to install this ( if am doing wrong step

installation step what I am using.

1. download saml pluign 

2. extract folder manually into auth folder (moodle/auth/saml)

3. click on notification (but there is no action like table creation and other message)

4. when I go to plugin >> authontication >> manage authontication the it show name like [pluginname] (means no language file (I am thinking plugin not getting installed). 

hmmm ... these are the steps which I follow , now please give me hint where I am making mistake ?

Thanks in Advance 

 

రేటింగుల సగటు: -
In reply to Shail Jai

Re: simpleSAMLphp issue

by Ken Task -
Particularly helpful Moodlers బొమ్మ

Truth in attempted assistance: don't run this authentication method and have no real reason to install it, but do run Moodle 2.2.x.  You might not be making a mistake from your description of  how you installed.

One could try this:

copy the *contents* of [moodle]/auth/saml/lang/en/auth_saml.php

into the file  [yourmoodle/lang/en/auth.php (there is a language file for es and es_es as well).  Your language setting?  Just add the *contents* to the bottom of the file.

Be carefull:

* work with a copy of auth.php

* do not to break/word wrap lines

* make sure there are no blank lines at the end of the auth.php file.

* and last but not least, assure the copy has the same permissions/ownership etc. that the original auth.php file had.

'spirit of sharing', Ken

In reply to Ken Task

Re: simpleSAMLphp issue

by Shail Jai -

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============
SAML login

Login here using your username and password
(Cookies must be enabled in your browser)Help with Cookies must be enabled in your browser
Username
Password
 
In reply to Shail Jai

Re: simpleSAMLphp issue

by Praj Basnet -

To assist anyone who might hit this in future:

As well as the auth/saml configuration page check the following JSON values in: auth/saml/saml_config.php In particular: "sp_source":"saml". That is the authentication source it is looking for and it needs to be set up in SimpleSAMLphp under config/authsources.php with the same name.

In reply to Shail Jai

Re: simpleSAMLphp issue

by Berret Hinn -

shailesh jai

     Hi Jai sorry to say this i don't have any solution for your question I just wanna know but i have question to ask you.I am trying to keep moodle as my service provider and simplesamlphp as identity provider tell me whether i can do this or not if so tell how it is possible till now i ve configured my saml authentiction plugin as given below :my saml configuration I want to know which value i have to give in SimpleSAMLPHP SP source: ------  and also tell me the steps i have to follow to obtain the sso by placing simplesaml as my idp. right now i am getting a Invalid authentication source error while trying to login through saml idp