Moodle SSO

Moodle SSO

by lakshmi maktala -
Number of replies: 1

Has anyone made changes to Moodle's authorization code to allow both
usage of LDAP and CAS at the same time? Currently the way it is set-up
you have to pick one or the other and we'd like to have both methods
available to our students to log into Moodle.

Thanks,

Average of ratings: -
In reply to lakshmi maktala

Re: Moodle SSO

by Robert Garron -

Yes - they both work simultaneously or LDAP can work on its own, while CAS requires LDAP to function properly.

What we did to get it all working is:

1) Insure LDAP is setup correctly with your browser and PHP, if using LAMP on any OS - Mac, Microsoft, Linux.  Follow any LDAP tutorial for each operating system.

2) Select LDAP first on Moodle 2.x or greater to insure that LDAP is operational BEFORE starting with CAS -- You need LDAP for CAS to operate, at least we did - we wanted CAS only and it would NOT work correctly until we had the latest PHP libraries, Apache setup correctly with the correct plugins (and insure that your PHP libraries are consistent and linked correctly (We have many PHP versions for support issues and we had a library get incorrectly pointed along the way), and then to have LDAP fully operational with Moodle.

3) Next activate CAS and fill in the correct fields and it will all come together.

I am presenting the overview steps, as the details need to be attended to in as much as you need to watch what items need to match to have all of the servers work in concert.

Good Luck - if you need help drop a line back again...