10062 Commits

Author SHA1 Message Date
moodler
b5c6d80dfe I've not tested this at all :-( but it was sent to me by the original
author of this feature as a bug fix.

PLEASE TEST!   (See bug 2179 for example)
2004-11-22 16:25:29 +00:00
moodler
735547525a Added dummy constructor to keep PHP5 happy. 2004-11-22 16:09:06 +00:00
martignoni
b5e74921f3 String trysearching added 2004-11-22 16:00:13 +00:00
martignoni
71bce841c6 Confirmation for deleting course categories 2004-11-22 15:58:35 +00:00
martignoni
604c058b35 Changed $ongoingcustom definition 2004-11-22 15:51:41 +00:00
martignoni
6088c640d8 Added new lang entries for lesson module 2004-11-22 15:49:18 +00:00
martignoni
f14aa0a774 A few new strings for Version 2004111000. 2004-11-22 15:11:02 +00:00
villate
eefebe2471 A few new variables translated 2004-11-22 14:51:47 +00:00
moodler
35a0379ac2 Merged sesskey fix in social activities block from stable 2004-11-22 14:44:24 +00:00
scop22
31ad9e60b3 Fix buggy string in moodle.php 2004-11-22 13:59:36 +00:00
scop22
d4bf677d37 Many new translated strings in some major modules: lesson.php, quiz.php, moodle.php, survey.php, wiki.php 2004-11-22 13:01:20 +00:00
carlesbellver
530935f148 *** empty log message *** 2004-11-22 07:59:33 +00:00
martinlanghoff
b36a8fc4f5 Auth/LDAP
Bugfix - value truncation to fit Moodle database
- Added truncate_userinfo() to cleanup data coming from external auth
- Fixed auth_user_create() to truncate user info as appropriate

Auth_ldap_user_sync
- created external script that calls the function
- much faster update strategy on postgres and mysql: auth_sync_users now to uses bulk inserts into a temp table, and then use LEFT JOINs and plain old SELECTs to determine what users it has to insert.
- we now loop over smaller sets of data -- we are still memory-bound, but (a) it'll be easy to use LIMIT to manage that and (b) memory use is much lower now in all cases.
- postgres: phased commits in auth_user_sync() for the batch user upload phase
- Several feature and performance enhancements:
  - if a value is removed from ldap, it will be cleared from moodle
  - no-op updates (where the data does not change) are skipped
  - if a user disappears and then reappears in LDAP in two separate calls to auth_user_sync(),the account will be marked deleted and then be revived. before, the account would have been deleted and created anew.

Multi-source ldap values:

The LDAP auth module now accepts a comma separated set of LDAP field names. When creating or updating a user record, auth/ldap will retrieve all the relevant fields. The right-most values overwrites all the others.

This is particularly useful when updating the user's email address from an LDAP source, which may contain the email address in one of several fields (traditionally: mail, mailForwardingAddress, mailAlternateAddress).

If a value is updated and is set to update external auth and this field is using this multi-source ldap configuration, the auth/ldap module will retrieve the old value, find which field it was sourced from, and update that field in LDAP. If it fails to find the original source of the value, it will log it in error_log.


Log of patchsets applied:
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-131
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-137
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-139
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-172
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-173
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-189
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-190
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-208
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-212
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-216
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-279
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-282
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-287
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-294
2004-11-22 07:46:10 +00:00
mjollnir_
1a31c2b366 Merged from MOODLE_14_STABLE: Don't need to select course.* in rebuild course cache 2004-11-22 05:46:18 +00:00
mjollnir_
e6d1d120b1 Merged from MOODLE_14_STABLE: Changes to calls to get_courses to not get all fields 2004-11-22 05:41:14 +00:00
mjollnir_
ed040b1f2d Merged from MOODLE_14_STABLE: Recent course/scale optimisations 2004-11-22 05:22:20 +00:00
mjollnir_
b565bbdfe2 Merged from MOODLE_14_STABLE: Fixes in datalib and backuplib for postgres invalid sql 2004-11-22 04:24:30 +00:00
mjollnir_
a967637614 Merged from MOODLE_14_STABLE: modify_database function change - if no ; in single line sql strings, add it 2004-11-22 04:11:07 +00:00
mjollnir_
01669f1619 Merged from MOODLE_14_STABLE: Fixed another instance of getting all fields from all courses (in log selector) 2004-11-22 03:35:31 +00:00
mjollnir_
da862d410f Merged from MOODLE_14_STABLE: Fix for calendar set filters to not query the database for groups of a course if it doesn't use groups 2004-11-22 03:17:49 +00:00
martinlanghoff
911378628f Fixed typo in index name 2004-11-22 02:58:23 +00:00
martinlanghoff
64031bbb0f Enrol/LDAP - initial commit, a bit rough around the edges.
This code is in production in a high-volume environment, so it has already proven to be reliable and scalable. Configuration is still tricky, and some corner cases may or may not be handled elegantly.

Please test!
2004-11-22 02:41:41 +00:00
martinlanghoff
6e8ca9837e Enrol/LDAP - enrol_student() and add_teacher() now populate the 'enrol' field. 2004-11-22 02:38:31 +00:00
martinlanghoff
5cd796869e Enrol/LDAP - DB Patches + version bump
These patches add an 'enrol' column to the user_students and user_teachers tables for the enrolment plugins to be able to keep track of source of the enrolments. Follows similar conventions to the user table with its 'auth' field.

This is a merge of the following patches:
 arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-187
 arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-192
2004-11-22 02:36:14 +00:00
mjollnir_
4f3fecf4a6 On enrol students to a course page, force searching if too many users to display (controlled by MAX_USERS_PER_PAGE - not previously used and bumped up to 1000 as a more reasonable limit) - trying to put 30,000 users in a drop down menu crashes some browsers 2004-11-22 01:40:18 +00:00
mjollnir_
eb46f6a322 Merged from MOODLE_14_STABLE: Indexes for workshop and version bump (honoring partial freeze) 2004-11-21 22:03:48 +00:00
mjollnir_
81c41b659e Merged from MOODLE_14_STABLE: Indexes for wiki and version bump (honoring partial freeze) 2004-11-21 21:16:41 +00:00
mjollnir_
5417b5b07a Merged from MOODLE_14_STABLE: Indexes for survey and version bump (honoring partial freeze) 2004-11-21 20:43:27 +00:00
koenr
59aa644972 filling in missing strings (finely understood 'instances' :-') ) 2004-11-21 17:49:50 +00:00
rkingdon
5c2b2dd83a User Pictures to dialogue headers. 2004-11-21 15:30:14 +00:00
paca70
706552f038 Updates for postgres 2004-11-21 15:01:33 +00:00
moodler
72b9f333b9 Merged fix for hiding unneeded sections in course navmenu 2004-11-21 06:28:17 +00:00
rkingdon
7decbe4b12 Added vetting of conversationid; fixed bug 2194 (Problems with
backup/restore); Tidied Postgres table.
2004-11-21 04:01:10 +00:00
defacer
3c7e1b65be Fixes for slightly incorrect behavior on days where the DST setting changes.
Not quite correct in some places though (those require more attention).
2004-11-20 20:10:03 +00:00
defacer
0fa6d31143 Removed a useless space :) 2004-11-20 19:44:28 +00:00
defacer
331063054a Slight change to the HOWTO to be more clear.
Removed the $course var from MoodleBlock (useless now).
2004-11-20 19:36:47 +00:00
dhawes
7e8dc20869 spacing and quotes cleanup 2004-11-20 19:06:29 +00:00
defacer
3088137459 Fixed a couple PHP notices which cropped up 2004-11-20 18:30:31 +00:00
moodler
76ca0f31fd Merged fix for bugs 2199 and 2200 from stable 2004-11-20 17:51:04 +00:00
martinlanghoff
c95aa089a8 Merged from MOODLE_14_STABLE: Fixing handling of empty memory_limit for PHP without memory_limit (mostly Windows binaries) 2004-11-20 10:38:43 +00:00
mjollnir_
429a24b7fc Merged from MOODLE_14_STABLE: Fixing bug # 2199 - missing some teacher roles in course/category.php 2004-11-20 10:38:01 +00:00
skodak
d52d5a8e85 merged from MOODLE_14_STABLE; updated parameter cleaning, preparation for new file.php SC#5 2004-11-19 21:28:29 +00:00
mjollnir_
7e0286af89 Merged from MOODLE_14_STABLE: Indexes for scorm and version bump (honoring partial freeze) 2004-11-19 05:28:51 +00:00
mjollnir_
a5e2b34dac Merged from MOODLE_14_STABLE: Indexes for resource and version bump (honoring partial freeze) 2004-11-19 05:00:40 +00:00
mjollnir_
556b96786e Merged from MOODLE_14_STABLE: Indexes for quiz and version bump (honoring partial freeze) 2004-11-19 04:14:13 +00:00
defacer
9e094fd54b Silly me... forgot to update url_get_path when I moved this thing in here. 2004-11-19 03:29:16 +00:00
defacer
db9b01eda2 Proof of concept for the things you can do with the new Blocks and Pages APIs.
What's important to stress here is that this demo is completely self-contained;
it does not require modifying ANY core Moodle code.
2004-11-19 03:16:56 +00:00
mjollnir_
33a55a6d55 Merged from MOODLE_14_STABLE: Indexes for lesson and version bump (honoring partial freeze) 2004-11-19 03:13:05 +00:00
mjollnir_
6513df237c Merged from MOODLE_14_STABLE: Indexes for label and version bump (honoring partial freeze) 2004-11-19 03:05:38 +00:00
defacer
a177631062 Updated the configuration-handling logic to the same level as the new instance-
configuration handlers. Much more easy to use and precise.
2004-11-19 03:01:31 +00:00