35 Commits

Author SHA1 Message Date
Inaki
7a9f7d6c8a enrolment plugins: MDL-21337 Missing global $OUTPUT variable in some enrolment plugins configuration page 2010-01-13 22:16:01 +00:00
Inaki
c757ef825b enrol/ldap: MDL-13952 Don't auto create courses if auto creation not enabled.
Merged from MOODLE_18_STABLE
2009-11-04 21:00:58 +00:00
Petr Skoda
4317f92f3f MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 12:51:40 +00:00
Petr Skoda
f19b623bd9 MDL-20695 do not use trigger_error together with echo, it just duplicates info when debugdisplay on 2009-10-31 22:55:17 +00:00
nicolasconnault
c60e66aee3 MDL-19795 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 04:59:01 +00:00
tjhunt
6cbcbf0fb3 blocklib: MDL-19010 eliminate remaining calls to blocks_repopulate_page 2009-05-08 08:22:59 +00:00
tjhunt
9101efd312 cleanup: MDL-17083 Remove the old teacher, teachers, student and students columns from the course table.
For something that has been deprecated for over two years, they were still used in a lot of places!
2008-11-13 08:40:57 +00:00
skodak
0cbe81112a MDL-14580 rewritten course sorting algorithms 2008-06-16 14:25:53 +00:00
iarenaza
2230061c5b MDL-15182 Fix LDAP enrolment course auto-creation at user login 2008-06-07 21:21:37 +00:00
skodak
7c3600238e MDL-14679 converted some add/stripslashes 2008-06-03 08:24:31 +00:00
iarenaza
37ad7544f9 MDL-15039 Apostrophes in idnumber prevent users from being unenrolled via LDAP
If any member of a course has an ID number containing an apostrophe (eg.
CN=Paddy O'Brien,OU=Students,DC=etc...), no other members will ever be
unenrolled via LDAP.

Thanks to Michael Woods for the bug report and proposed solution.

Merged from MOODLE_18_STABLE.
2008-06-02 22:39:39 +00:00
skodak
50c5bef452 MDL-14679 towards enrol conversion 2008-06-02 21:02:52 +00:00
stronk7
d936580e1f Not visible courses don't cause unenrolment under LDAP anymore. Credit goes to Iñaki Arenaza. MDL-14097 ; merged from 19_STABLE 2008-03-30 00:45:58 +00:00
danmarsden
7993f4bdaa Fix for MDL-12998 and MDL-13079 Ldap not unenrolling users correctly 2008-01-21 23:22:12 +00:00
iarenaza
59b567692d Remove additional check when dealing with hidden courses in LDAP enrolment.
The check is superfluous and uses an inexistant variable ($type) that
was removed when we switched to role based enrolment.

Fixes MDL-11098 MDL-10282 and MDL-8346.
2007-09-15 21:38:13 +00:00
skodak
b0efa7ec07 MDL-9169 Error in function call in ldap/enrol.php; typo found by Svante Agnestig; merged from MOODLE_18_STABLE 2007-04-02 13:16:55 +00:00
skodak
8f80eba57d MDL-4313 LDAP doesn't properly escape extra quotes in course details + minor role unassign change; merged from MOODLE_18_STABLE 2007-03-29 21:40:48 +00:00
danmarsden
4f896599f8 MDL-9102 incorrect use of unset_config() 2007-03-28 23:36:23 +00:00
mjollnir_
87c75906ed update enrol/ldap to work with roles.
Credit: Alastair Pharo <alastair@catalyst.net.nz>

1) Some config settings have changed (ones that related specifically to
teachers and students).  There is a check in place however to migrate
old configurations to new ones.

2) Perviously two syncs happened - one for students, one for teachers.
Now sync gets called the same number of times as there are roles.
Those roles that have config settings associated with them then run
through all the records.  This means syncing takes longer the more
roles you configure (which is expected anyway I suppose).
2006-09-26 01:31:33 +00:00
danmarsden
f2b7abf058 Bug #5882 ldap enrolment doesn't work. $USER->student getting munged
patch from Iaki.
2006-07-24 00:37:58 +00:00
danstowell
6d19caab41 Change to make LDAP enroller simply ignore accounts with blank idnumber - see moodle.org discussion with Inaki 2006-07-06 13:13:42 +00:00
martinlanghoff
74da3c2c89 [multienrol]Improved get_student/teacher_courses() functions to cache enrolment type that saves lots of recursive database query 2006-03-09 03:15:42 +00:00
martinlanghoff
1919f9926e [multienrol]Replaced configuration variable override with class property 2006-03-09 03:15:01 +00:00
martinlanghoff
f9667a5aea [multienrol]Initial commit for multi enrolment plugin feature 2006-03-09 02:48:29 +00:00
moodler
5a0345c2e1 Merged parameter fixes from stable 2005-12-05 04:53:57 +00:00
patrickslee
20fdb1b755 Fixed a wrong call to add_teacher in LDAP plugin (Merged from MOODLE_15_STABLE) 2005-11-02 20:35:32 +00:00
martinlanghoff
50f1b47543 Merged from MOODLE_15_STABLE - enrol/ldap - fix course auto-creation to work with the new blocks infrastructure. doh! (thanks penny!) 2005-09-02 06:52:36 +00:00
martinlanghoff
33a30ca9e6 Merged from MOODLE_15_STABLE - enrol/ldap - fixed default objectclass, and we can now bind non-anonymously 2005-08-26 04:11:22 +00:00
martinlanghoff
4f03006577 Merged from MOODLE_15_STABLE - LDAP servers being down or unavailable should not prevent login - we now fail with a notice() rather than with an error() 2005-08-17 22:38:24 +00:00
martinlanghoff
0cce156053 Merged from MOODLE_15_STABLE - Fix calls to enrol_student() and add_teacher() where nulls were being passed erroneously - credits to jeff graham 2005-08-12 01:51:14 +00:00
martinlanghoff
1007a3f1a3 enrol/ldap: bugfixes suggested by Jeff Graham here http://moodle.org/mod/forum/post.php?reply=124170 -- fixes course creation not pulling summaries, form errors in ldap_search_sub, calls to deprecated blocks_get_default_blocks() and DB errors when inserting new enrolments. With these fixes, it may even work. 2005-06-25 02:41:56 +00:00
martinlanghoff
0bf73dd33a Enrol/LDAP now uses correct password to login -- fixes #3237 2005-05-17 03:26:14 +00:00
mjollnir_
d54ced8618 Fixing typo in ldap enrolment plugin (variable missing _) 2005-03-29 00:21:55 +00:00
martinlanghoff
6ebaf0edcb Fixed bogus warnings about empty LDAP contexts. 2005-01-17 21:07:00 +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