As promised the configuration of the Moodle-Google Integration plugin:

  1. Download Google-Moodle Integration plugin
  2. Unzip the files and upload them to your Moodle installation
  3. Login to your Moodle site and click Notifications to update the newly installed blocks
  4. From the Users menu, select Authentication then Google Authentication
  5. Enter your Google domain name
  6. On your Moodle server create the private and public keys:

    Private Key (stored in Moodle only)
    Command: openssl genrsa -out rsaprivkey.pem 1024

    (Visit Google Documentation for Key Generation Help)

    Public Key (stored in Moodle and Google)
    Command: openssl req -new -x509 -key rsaprivkey.pem -out rsacert.pem

    (Visit Google Documentation for Key Generation Help)

  7. Upload the created RSA Key File (rsaprivkey.pem) to Moodle (Users -> Authentication -> Google Authentication)
    Upload the created SSL Signing Certificate (rsacert.pem) to Moodle (Users -> Authentication -> Google Authentication)
  8. Login to your Google Apps Admin Control Panel (http://google.com/a/yourdomain) in a new window
  9. Browse to Advanced Tools – > Authentication -> Setup Single Sign-on (SSO)
  10. Check the Enable Single Sign-on box
  11. Copy and paste the Sign-in, Sign-out and Change Password page URL’s from the Setup Instructions box located on the Google Authentication setup page in Moodle
  12. Upload the Verification Certificate (rsacert.pem created in step 6) and Save the changes in Google Apps
  13. In your Google Apps Control Panel, browse to Users and Groups -> Settings and check the Enable Provisioning API box
    Save the Changes
    (This allows users to be updated)
  14. Browse to Advanced Tools -> Manage OAuth Domain Key
  15. Upload the created certificate (rpacert.pem from step 6)
  16. Copy the OAuth Consumer Secret
  17. In Moodle, enable all Google Blocks and add them to the Front Page of your Moodle
    (I had issues with a couple of the blocks and therefore only enabled the GMail Block. See how you go but if you have issues disabling the other plugins would be the first port of call)
  18. Browse to Modules -> Blocks -> GMail Blocks and paste the Google OAuth Consumer Secret into the supplied field
    Save the Changes
  19. Select the Google User Sync block from Modules -> Blocks and fill in your Google Admin info.
    Save the Changes
  20. Test the config…

Our current configuration allows our staff and students to login to Moodle using their Active Directory credentials (via the Moodle LDAP authentication plugin) and link straight to their GMail account. This has allowed us to continue to provide a complete Single Sign-on (SSO) environment for our users.

3 Responses to “Google-Moodle Integration Config.”

  1. Josh says:

    Hi Andrew, love your blog. I think there is a new version of the plugin that you should mention (maybe link to this:http://code.google.com/p/moodle-google/downloads/list page instead of just the zip file)

    Regards

    Josh

  2. Urko says:

    Hello,

    I am trying to do exactly the same thing. I have Active Directory integration working on its own, and if I disable it and enable GApps authentication, I have also been able to get it working.

    However, I haven’t been able to get both to work at the same time, that is, to have Moodle act as a sort of “proxy” for Active Directory with Google Apps.

    Any tips?

  3. agreenlees says:

    Hi Urko

    Are you referring to the LDAP plugin when you mention Active Directory? Our authentication order (Site Administration -> Users -> Authentication -> Manage Authentication) is as per the below which may assist you:

    1. Manual Accounts
    2. No Login
    3. LDAP Server (linked to Active Directory)
    4. External Database (linked to School Admin System for non AD users)
    5. Google Authentication

    Then when a user logs in they simply press the GMail link and are automatically signed into their Google Account.

    Let me know how you go.

    Andrew Greenlees

Leave a Reply

(required)

(required)

© 2012 AG's Latest! Suffusion WordPress theme by Sayontan Sinha