Hello guys

I did a version of Single Sign On with share cookie for Drupal 6, please consider to include as a official version of this module.

Regards

enzo

CommentFileSizeAuthor
moodlesso.tar_.gz10.53 KB-enzo-

Comments

borgo’s picture

Well, I tried to use it and it took me a while till I fugured out that 2 things.

1. on /user/*/edit page what is called "Last name" should be called "Moodle Password" - where as with username, you enter your moodle site password
2. on /admin/settings/moodlesso I had to set "Salt" to same string as in my moodle config.php file

I am now able to login to drupal and moodle simultaneously. Sadly I need more than that, synchronized users = any change to drupal user account is reflected in moodle. Was there any work done on this?

So for now, I changed modlesso.module lines 174-175

	$form['moodle']['moodle_password'] = array(
			'#type' => 'password',
			'#title' => t('Moodle Password'),
			'#description' => t('Password associated with your moodle username'),
			'#required' => true,
			'#default_value' => $moodlesso_user->moodle_password
	);
Bodeman’s picture

I am trying this out and I don't understand the comment about Salt equal to the same string as in config.php. Did you add a new string there or are you referring to some existing string?

Indeed this seems clunky.

-enzo-’s picture

Hello Bodeman

When I said salt I mean moodle use in their configuration an optional salt string used in password generation. For this reason I mean we need to use the same salt we had in our moodle installation.

Besides Moodle is clunky :P

Chris Johnson’s picture

One way to achieve synchronized users is to use Moodle's "External database authentication" feature. You can read about it here: http://docs.moodle.org/en/auth/db

benomite’s picture

Is there a version of this SSO compatible with moodle 2.0?
If not, do you know what to modify in the moodlelib.php file?
Thanks!

fixer22’s picture

#4 thx! its perfect