Please start writing from Yes or No.
Yes? http://code.google.com/p/drupalsimplesaml/
Install memcached. Search for instructions for your os/distro:
http://www.google.com/search?q=install+memcached
Edit your simpleSAMLphp's config.php:
/*
* This configuration option allows you to select which session handler
* SimpleSAMLPHP should use to store the session information. Currently
* we have two session handlers:
* - 'phpsession': The default PHP session handler.
* - 'memcache': Stores the session information in one or more
* memcache servers by using the MemcacheStore class.
*
* The default session handler is 'phpsession'.
*/
'session.handler' => 'phpsession',
Change session.handler to memcache.
As far as I can remember that was all I did to make it work.
Regards,
Well, the title says it almost .... I've installed the consent module
and it's DB in a 1.4 install.
I'm asked for consent, and it's being remembered so the consent module
works fine.
My DB works fine on the same host as the IdP:
boudewijn@ucp1:~/SVN/PoC/ucp1/config$ psql -h localhost simplesaml -U
simplesaml
Password for user simplesaml:
Welcome to psql 8.3.7, the PostgreSQL interactive terminal.
<etc>
\d works too and shows a nice table;
And, I've created:
cat config/module_consentAdmin.php
<?php
$config = array(
'consentadmin' => array(
'consent:Database',
'dsn' =>
'pgsql:host=127.0.0.1;dbname=simplesaml',
'username' =>
'simplesaml',
'password' => '*ZIP*',
),
'attributes.hash' => TRUE,
'relaystate' => 'ucp1.prutsnet.nl/simplesamlphp'
);
?>
Easy as pie, and the DB credentials and the db are correct. Furthermore,
I've created the enable file in the module's directory.
When accessing the consent Administration page
(http://ucp1.prutsnet.nl/simplesaml/module.php/consentAdmin/consentAdmin.php):
No exception available
No exception available
When having a look in the log file for this specific error:
boudewijn@ucp1:~/SVN/PoC/ucp1$ grep 1b711345b9 log/simplesamlphp.log
Sep 15 16:11:28 simplesamlphp DEBUG [1b711345b9] Library - Session:
Check if session is valid. checkauthority:admin thisauthority:null
isauthenticated:no remainingtime:-1252995088
Sep 15 16:11:28 simplesamlphp DEBUG [1b711345b9] Library - Session:
Check if session is valid. checkauthority:login-admin thisauthority:null
isauthenticated:no remainingtime:-1252995088
Sep 15 16:11:28 simplesamlphp DEBUG [1b711345b9] Template: Reading
[/home/boudewijn/SVN/PoC/ucp1/dictionaries/frontpage.php]
Sep 15 16:11:28 simplesamlphp DEBUG [1b711345b9] Template: Reading
[/home/boudewijn/SVN/PoC/ucp1/modules/consentAdmin/dictionaries/consentadmin.php]
Sep 15 16:11:28 simplesamlphp DEBUG [1b711345b9] Template: Reading
[/home/boudewijn/SVN/PoC/ucp1/modules/modinfo/dictionaries/dict.php]
Sep 15 16:11:28 simplesamlphp DEBUG [1b711345b9] Template: Reading
[/home/boudewijn/SVN/PoC/ucp1/dictionaries/admin.php]
Sep 15 16:11:31 simplesamlphp DEBUG [1b711345b9] Library - Session:
Check if session is valid. checkauthority:saml2 thisauthority:null
isauthenticated:no remainingtime:-1252995091
Sep 15 16:11:31 simplesamlphp INFO [1b711345b9] SAML2.0 - SP.initSSO:
Accessing SAML 2.0 SP initSSO script
Sep 15 16:11:31 simplesamlphp ERROR [1b711345b9]
/simplesaml//saml2/sp/initSSO.php - UserError: ErrCode:NOACCESS:
No+exception+available
Sep 15 16:11:31 simplesamlphp DEBUG [1b711345b9] Template: Reading
[/home/boudewijn/SVN/PoC/ucp1/dictionaries/errors.php]
Seems to me like some problem, although I'm not able to deduct what's
causing it actually.
Can anyone give me a hint on that one?
Cheers,
Boudewijn
A working joomla extension! (beta version but working well...)any result of this discussions?
Google Apps and Joomla are Service Providers (or Relying Parties) to
the simpleSAMLphp IdP. Only the latter does the
identification/authenticationf users.
In order to allow your Joomla users access to Google apps you need to
configure the simpleSAMLphp IdP to use the Joomla database for
authentication (see the simpleSAMlphp docs).
Only if you want to enable SSO from Joomla to Google apps will you
need to even install the Joomla SAML extension.
-peter
code is online:
http://kenai.com/projects/idemauth/sources/source/show
I have no idea what you are refering to, but have a look at those
mentioned in this very thread.
-peter
If you reduce 'session.duration' option, they will have to
reauthenticate once that time is up. This option also affects the
session lifetime communicated to SPs, such as gmail, but I do not know
what gmail does with the value it receives.
Generally, you should not change the values of session.requestcache or
session.datastore.timeout, as those are used for internal data, and
does not affect the "authentication" session directly.
--
Olav Morken
This is because to map joomla session variable with simplesamlphp session. how can i tell simplesamlphp that the simplesamlphp session is same as joomla session.
$IDEMAttrs['urn:oid:1.3.6.1.4.1.5923.1.1.1.9'] one more thing do i need to change this url from backend? https://www.idem.garr.it/docs/conf/idem-metadata.xml what this url actually does?
Yes, you're right there is anything in this thread concerning this argument. It's my bad: I don't have documented the required attribute set... this because I want to make these mappings fully customizable via the idemauth admin panel. anyway you found the right piece of code, actually the attributes required from the IdP are the following:Am I to assume that I need to pass username, email and perhaps fullname from the IdP to Joomla? I couldn't find anywhere in this thread the answer, unless it is somewhere on the discussion and I haven't seen it.required: joomla username: urn:oid:1.3.6.1.4.1.5923.1.1.1.6(eduPersonPrincipalName)e.g. uid@domain (I suggest you this scoped form to support multiple IdPs) joomla email: urn:oid:0.9.2342.19200300.100.1.3(mail) joomla fullname:urn:oid:2.5.4.42(givenName) urn:oid:2.5.4.4 (sn) optional: authZ filters: eduPersonScopedAffiliation eduPersonEntitlement. language: preferredLanguage country: schacMotherTongue Note: the attribute naming must always be in the standard saml2 "urn:oid" form but for simplicity I wrote the latter set only by the firendlyName I never configured the simpleSAMLphp IdP (i used only the Shibboleth2 IdP, where you have an attribute-resolver.xml file to specify datasource->saml name mappings ) then i don't know where to specify attribute naming for the SS IdP LDAP module... but reading here http://rnd.feide.no/content/configuring-simplesamlphp-ldap-authentication-source it seems that the attribute name used to build SAML assertion is the same that the LDAP schema one, in this case i think you have to modify my code in this way: $IDEMAttrs['uid'] etc.. @simpleSAMLphp team: is there any way, in the SS IdP, to specify datasource to saml attribute name mappings? regards, Stefano.
Hello Stefano,
I have followed this thread closely over the last couple of days and I
have managed to install Joomla and idemauth successfully, using the
idemauth video! that was great.
I have also installed a simplesamlphp IdP to be my identity provider
successfully. So far so good.
This is the list of things that are working well:
- Joomla installed
- Idemauth installed and configured as an component in Joomla. Also
installed successfully the Idemauth plugin
- Installed certs as described in video, and created xml data which I
parsed it with my simplesaml IDP to create the simplesaml metadata for
my sp-remote file in the IdP
- Created a protected area in Joomla as per idemauth video to test
installation and configuration
- Created a user in both Joomla and my IdP (my IdP uses MS Active
Directory for attribute storage) with the same username: "hmatute" in
both Joomla and AD
- Configured my IdP to send the username attribute from AD (I use the
uid attribute element from AD) and that part works successfully in my
google apps implementation of my simplesaml IdP, and expect it to be
consumed by Joomla as the authentication assertion
- Checked that both SAML 2 and Shibboleth SPs are "ON" in my idemauth
simplesamlphp SP configuration. My IdP only works as a SAML 2 IdP
- Tested the "Login to Private Area" on the Joomla fromtpage and it
pops with the idemauth Login and the drop-down list shows my IdP URL
- Click on "Login" button, and bingo, I am presented with my IdP login
prompt for authentication - i.e. I'm re-direcetd successfully from
Joomla SP to my IdP
- Autrhenticate successfully with my IdP and when the browser returns
to the Joomla SP frontpage, I get the error: "Please enter your name"
I think I am close but it is obvious that I need to provide other or
more attributes / assertions to Joomla to successfully be logged-in to
the portal, right?
What I deduct from the code that you quote above, namely:
$response->username = $IDEMAttrs['urn:oid:1.3.6.1.4.1.5923.1.1.1.6']
[0]; 128.
$response->email = $IDEMAttrs['urn:oid:0.9.2342.19200300.100.1.3'][0];
129.
try{ 130.
$response->fullname = $IDEMAttrs['urn:oid:2.5.4.42'][0]." ".$IDEMAttrs
['urn:oid:2.5.4.4'][0]; }
Am I to assume that I need to pass username, email and perhaps
fullname from the IdP to Joomla? I couldn't find anywhere in this
thread the answer, unless it is somewhere on the discussion and I
haven't seen it.
Grazie,
Hernan M
On Oct 28, 5:12 am, Stefano Gargiulo <stefano.gargi...@garr.it> wrote:
This is because to map joomla session variable with simplesamlphp session. how can i tell simplesamlphp that the simplesamlphp session is same as joomla session.
this is the main feature of my plugin: the session bridging, then you have nothing to do, it's yet implemented. see following code for the attributes required form the IdP e.g.|$IDEMAttrs||[||'urn:oid:1.3.6.1.4.1.5923.1.1.1.9'||] | http://kenai.com/projects/idemauth/sources/source/content/idemauth/pl... PS. i have to make required attributes configurable, but you can edit them in the code if you need something different..
Thanks& regards, Jitendra Morandani- Hide quoted text -- Show quoted text -
Thank you Stefano for your prompt answer, I tried your suggested change in the idemauth.php file: $IDEMAttrs['uid'] and it didn't work either. This time it asked me for my email!
then just add these attributes to your LDAP user and configure SSphp ldap auth source to fetch these:http://rnd.feide.no/content/configuring-simplesamlphp-ldap-authentication-source/* Which attributes should be retrieved from the LDAP server. * This can be an array of attribute names, or NULL, in which case * all attributes are fetched. */ 'attributes' => NULL,
So, I decided to do what you have done in your original test, enable my IdP as a Shibboleth IdP, and re-install IDEMAUTH and its plugin.I also placed the metadata in the shib13-sp-remote file in my IdP.
Finally, in your video you show that when a user "federates" from a Shibboleth IdP into Joomla, the Idemauth plugin creates the user proflle in Joomla database? Is that correct? So I don't need to create a similar user profile like done in Google apps, right?

Please let me know any person who has successfully integrated
Simplesamlphp with joomla or drupal??
Please start writing from Yes or No.
thanks