Hi Olav,
Thanks for the reply.
So, here is our scenario. Our website (
www.example.com) is hosted with us. It is a Drupal site with a MySQL database. We would be using simplesamlphp to have our site acting as the Identity Provider. There is another service (
www.example2.com) that members of our site would be able to access from within our site. This is why SSO is being implemented, so that
www.example2.com can use the same credentials stored in our
www.example.com MySQL database.
To set that up, I followed the installation instructions from simplesamlphp. I set up the config.php file to use sqlauth.
'store.type' => 'sql',
In my authsources, I have:
'example-sql' => array(
'sqlauth:SQL',
'dsn' => 'mysql:host=localhost;port=5432;dbname=www_example_ca',
'username' => '(username)',
'password' =>
'(password)',
'query' => 'SELECT "uid", "name", "mail" FROM users',
),
*
*
'drupal-userpass' => array(
'drupalauth:UserPass',
// The filesystem path of the Drupal directory.
'drupalroot' => '/usr/local/apache2/htdocs/ocls',
// Whether to turn on debug
'debug' => true,
'attributes' => array(
array('drupaluservar' => 'uid', 'callit' => 'uid'),
array('drupaluservar' => 'name', 'callit' => 'cn'),
array('drupaluservar' => 'mail', 'callit' => 'mail'),
),
Should the store.sql.dsn be pointing to the raw MySQL database file?
Since we are using Drupal here, I read that you can use a SQLite database for the session storage, and to set it up, you just need to create (touch) an empty file, and point the store.sql.dns to it.
'store.sql.dsn' => 'sqlite:/var/simplesamlphp/www/sqlite/simplesaml.sq3',
I've tried a few different options, and now I'm receiving the following error when I tail /var/log/messages
simplesamlphp[4688]: 3 [XXXXXXXXXX] Error loading session: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database
The simplesaml.sq3 file has the appropriate rights/group info. I've also turned off SELinux to test to see if it was an issue there as well.
Any ideas where to look next?
Thanks!
Phil...