Best practice forum (Archived)

T-11746 - Changed the totara sync behaviour around user passwords

 
David Curry (Core Developer)
T-11746 - Changed the totara sync behaviour around user passwords
by David Curry (Core Developer) - Monday, 3 February 2014, 5:22 PM
Group Totara

Below is a comment explaining the changes in the Totara 2.5.7 patch "T-11746 - Changed the totara sync behaviour around user passwords" the full comment thread is on the partners forum here: https://totara.community/mod/forum/discuss.php?d=3632

-----

Hey Guys,


I have a patch in review for this issue now, you should hopefully see it in the next 2.5 release (4th of Feb). But I thought I should describe the new behaviour and let people have their say in advance.

So how it works with the new patch is the same if you put something in the password field. So if you put "pw112" in there it would set that as the password for the user, for both new or existing users. However if you left it blank instead of throwing a sanity error when checking the file it will now generate passwords for new users and email them on the next cron run, and leave the password as whatever it currently is for existing users.

As for Niek's original comment about only syncing new users passwords, that is now possible by just leaving all the rest blank. But there is also a new setting in the patch which is specifically "Only sync new users passwords", which should reduce the modifications that you have to make to the sync files. This defaults to off to maintain current behaviour, so you shouldn't even notice it unless this is something you want to do.

I hope that covers all the bases, let me know if I missed anything.

Cheers,
David

Susan Hurley
Re: T-11746 - Changed the totara sync behaviour around user passwords
by Susan Hurley - Wednesday, 26 February 2014, 9:59 AM
Group Partners

But the field Password is no longer required, correct? I am inferring from this page:

/admin/tool/totara_sync/admin/sourcesettings.php?element=user&source=totara_sync_source_user_csv

that we can now upload a user with only the fields "idnumber","timemodified","username"

Is that correct??

Thanks!

Susan

David Curry (Core Developer)
Re: T-11746 - Changed the totara sync behaviour around user passwords
by David Curry (Core Developer) - Wednesday, 26 February 2014, 1:39 PM
Group Totara

Hey Susan,

Yes, you are right. Enabling the password column in the user source settings is optional, and if you don't it will generate new passwords and send emails to new users (if you gave them an email). This patch hasn't changed that at all, just the behaviour around blank fields when you have activated the column.

Cheers,
David

Susan Hurley
Re: T-11746 - Changed the totara sync behaviour around user passwords
by Susan Hurley - Wednesday, 26 February 2014, 3:02 PM
Group Partners

Thanks David. Is it not a recent change in Sync, though, that it no longer requires a firstname, lastname, and email address? I was surprised to see that recently.

Thanks again!

Susan

Faruq Fayaz
Re: T-11746 - Changed the totara sync behaviour around user passwords
by Faruq Fayaz - Tuesday, 21 October 2014, 8:04 AM
 

Hi,

I'm getting passwords overwritten.

So just to be clear in order to leave passwords the same, I open up the password field in the source settings, then set it to zero in the uploaded csv file where I'd like other fields to be updated?

Faruq