Google - Moodle User sync error 1402: Invalid Password

132 views
Skip to first unread message

Shaun Gill

unread,
May 26, 2011, 5:47:37 AM5/26/11
to google-app...@googlegroups.com
Hi all,

I am in the process of setting up the Google Apps SSO feature to work with Moodle.

I have done everything needed so far including public / private key generation & uploading, installation & configuration of Moodle Google blocks and enabling of API settings in Google.

Our Moodle server currently authenticates through LDAP. When manually running the cron file to create accounts in Google Apps, I get the following error message for each user:

Starting Moodle to Google Apps synchronization Google Apps error: Google Apps error: The server encountered the following errors processing the request: Error 1402: InvalidPassword Invalid Input: \"not cached\".

I checked our Moodle database and the "not cached" is coming from the password field. Moodle does not store the password in the DB as it is obtained through LDAP.

However I can't understand why when creating the Google accounts, I am getting the message of "InvalidPassowrd", as Google does not store the password does it?!

Any help would be greatly appreciated.

Many thanks,

Shaun

Claudio Cherubino

unread,
May 26, 2011, 8:52:49 AM5/26/11
to google-app...@googlegroups.com
Hi Shaun,

I don't know the details of how Moodle interacts with Google Apps, can you explain how it authenticates to create users for the domain?
I guess authentication is done through SSO, so passwords are correctly stored on your side.
Have you tried checking the Moodle/Google Apps Integration forum?


Thanks
Claudio

--
You received this message because you are subscribed to the Google Groups "SAML-based Single Sign On for Google Apps" group.
To post to this group, send email to google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-saml...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-apps-saml-sso?hl=en.

Shaun Gill

unread,
May 26, 2011, 10:02:14 AM5/26/11
to google-app...@googlegroups.com
Hi Claudio,

Within Moodle I have installed three 'blocks' - GMail, Google Apps and Google User Sync. The Google User Sync is configured with my admin username / password and domain URL for Google Apps. You then set a cron interval for how often Moodle to Google synchronization should take place. The other 2 blocks are just to display information on the Moodle homepage.

Within Moodle there is also a 'Google Authentication' section which I have configured. This includes the domain name, RSA Key file upload and SSL Signing Certificate upload.

I have enabled single sign on feature in the Google Apps control panel and also enabled API access. Also uploaded the SSL Signing Certificate to Moodle as required.

As mentioned in my first post, we currently authenticate Moodle users using Active Directory and LDAP.

I have just changed a setting under 'LDAP Server Settings' in Moodle to Not Hide Passwords, meaning the encrypted password is stored in the Moodle Database (With this setting set to 'Hide Passwords', it meant that the entry in the database was 'Not Cached', causing the error earlier). This has now solved the Invalid Password error. However I am not receiving the following error:

Synchronization haulted: Google Apps error: Unable to Connect to ssl://www.google.com:443. Error #102575976: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? Execution took 0.223913 seconds.

So I have now gone from one problem to another, although progress none the least!

Thanks,
Shaun

Claudio Cherubino

unread,
May 27, 2011, 2:19:37 PM5/27/11
to google-app...@googlegroups.com
Hi Shaun,

It still looks like a configuration problem within Moodle but unfortunately this is not the best place to get support for it.
I'd recommend asking in the Moodle forum.
Thanks

Claudio

Reply all
Reply to author
Forward
0 new messages