Our SIS system is PeopleSoft, and all of our data is sitting in an Oracle database. We have created a view in our databse that has all of the correct information (all of the courses, the students and teachers enrolled, and all of the users rolls). We use the LDAP module to create the users in our system, and to allow them to authenticate into Moodle.
First we created the users via a script (auth_ldap_sync_users.php). We had a few problems getting the users create, but for the most part we have been able to resolve all issues. Then, we run enrol_database_sync.php. This script connects to the view we created in our PeopleSoft database. After some fine tuning we were able to get this to work correctly as well.
When everything is said and done all of the courses are created with the users assigned to them with the appropriate roles.
Here is our problem...When a user logs in they are unenrolled from all their courses. Also, more classes are created (without the appropriate information in them). For example:
UserA has been created and they are in Class1, Class2, & Class10. When they log in, using their username and password, the following happens:
- Their enrollment is removed from Class1, Class2, & Class10
- Three new classes are created without a fullname, shortname, or courseid
What are we missing?
Does it have anything to do with this: http://moodle.org/mod/forum/discuss.php?d=93079?