810 Commits

Author SHA1 Message Date
Petr Skoda
12b8f43314 MDL-21524 fixed wrong var names, credit goes to Heiko Schach 2010-07-27 19:07:58 +00:00
Petr Skoda
74f64f62bb MDL-22783 fixing default roles in ims settings 2010-07-25 17:33:14 +00:00
Petr Skoda
d67fb0413c MDL-23412 fixed incorrect settings defaults - it was causing problems in install 2010-07-25 17:21:57 +00:00
Petr Skoda
0cd579d7de MDL-22788 fixed wrong currency default 2010-07-25 17:19:29 +00:00
Sam Hemelryk
9f15347e2c enrol MDL-23447 Others users page now only lists roles that have moodle/course:view 2010-07-23 08:21:42 +00:00
Aaron Barnes
fa36ca3db7 MDL-22783 upgrade enrol/flatfile plugin to use enrolments
Adding/removing files missed in last patch
2010-07-22 03:33:28 +00:00
Aaron Barnes
e8e0d84584 MDL-22781 upgrade enrol/flatfile plugin to use enrolments
Adding/removing files missed in last patch
2010-07-22 03:11:27 +00:00
Aaron Barnes
88f2f61c7d MDL-22788 upgrade enrol/paypal plugin to use enrolments
Adding file missing from previous commits
2010-07-22 02:08:15 +00:00
Aaron Barnes
f719e91f67 MDL-22788 upgrade enrol/paypal plugin to use enrolments
Adding files missing from previous patches
2010-07-22 02:07:19 +00:00
Aaron Barnes
5ea8855350 MDL-22788 upgrade enrol/paypal plugin to use enrolments
Patch by Eugene Venter
2010-07-22 01:58:54 +00:00
Inaki
0762b758d6 enrol/ldap MDL-23442 Give a bit more of detail about what's missing and why it's needed 2010-07-21 07:32:17 +00:00
Martin Dougiamas
36c9121693 MDL-23442 Added a missing string 2010-07-21 04:03:44 +00:00
Inaki
1331264bdf enrol/ldap: MDL-23412 Do not use any PHP LDAP constants unless the module is loaded and enabled.
Guard all the configuration settings with a proper check, don't display
any setting and notify the user about the missing extension.
2010-07-20 21:53:09 +00:00
Inaki
6969b70aa5 enrol/ldap: MDL-23424 don't use $CFG->enrol_ldap_user_memberfield if it's not defined 2010-07-20 10:28:58 +00:00
Inaki
dc0288a665 enrol/ldap: MDL-23424 don't upgrade $CFG->enrol_ldap_version if it's not defined 2010-07-20 10:25:02 +00:00
Sam Hemelryk
57e8a9361f enrol MDL-23384 fixed issue with cohort sync JavaScript not redirecting after successfully enrolling a cohort 2010-07-20 03:56:22 +00:00
Martin Dougiamas
caf0021225 MDL-23412 Fixed a typo 2010-07-20 03:06:23 +00:00
Sam Hemelryk
62bf1746a2 enrol ldap MDL-23412 Quick fix for two notices in ldap settings, needs review by maintainer 2010-07-20 02:50:01 +00:00
Inaki
5704585cf4 enrol/ldap: MDL-22784 Conversion of the LDAP enrolment plugin to the new enrolment infrastructure.
We've moved some of the LDAP auth plugin "knowledge" of different LDAP
servers to a common library, and we've added support for nested groups
enrolments for selected LDAP servers.

Lots of changes in the language pack, as all the plugin messages have been
internationali[sz]ed (it also includes renaming of quite a few string
identifiers).

During plugin settings migration, we rename 'version' setting to
'ldap_version', as we store the plugin version itself as a setting in the
plugin config table and the two collided.

Performance is not great for larga data sets but this can be improved later
(20000 users, 4000 courses and 100 users/course take around 1h25m on a somewhat
tuned postgresql-8.4 on a 2.66GHz Core2 Duo w/ 4 GB of RAM).

AMOS BEGIN
  MOV [description,enrol_ldap],[pluginname_desc,enrol_ldap]
  MOV [enrol_ldap_autocreate,enrol_ldap],[autocreate,enrol_ldap]
  MOV [enrol_ldap_autocreate_key,enrol_ldap],[autocreate_key,enrol_ldap]
  MOV [enrol_ldap_autocreation_settings,enrol_ldap],[autocreation_settings,enrol_ldap]
  MOV [enrol_ldap_bind_dn,enrol_ldap],[bind_dn,enrol_ldap]
  MOV [enrol_ldap_bind_dn_key,enrol_ldap],[bind_dn_key,enrol_ldap]
  MOV [enrol_ldap_bind_pw,enrol_ldap],[bind_pw,enrol_ldap]
  MOV [enrol_ldap_bind_pw_key,enrol_ldap],[bind_pw_key,enrol_ldap]
  MOV [enrol_ldap_bind_settings,enrol_ldap],[bind_settings,enrol_ldap]
  MOV [enrol_ldap_category,enrol_ldap],[category,enrol_ldap]
  MOV [enrol_ldap_category_key,enrol_ldap],[category_key,enrol_ldap]
  MOV [enrol_ldap_contexts,enrol_ldap],[contexts,enrol_ldap]
  MOV [enrol_ldap_course_fullname,enrol_ldap],[course_fullname,enrol_ldap]
  MOV [enrol_ldap_course_fullname_key,enrol_ldap],[course_fullname_key,enrol_ldap]
  MOV [enrol_ldap_course_idnumber,enrol_ldap],[course_idnumber,enrol_ldap]
  MOV [enrol_ldap_course_idnumber_key,enrol_ldap],[course_idnumber_key,enrol_ldap]
  MOV [enrol_ldap_course_search_sub,enrol_ldap],[course_search_sub,enrol_ldap]
  MOV [enrol_ldap_course_settings,enrol_ldap],[course_settings,enrol_ldap]
  MOV [enrol_ldap_course_shortname,enrol_ldap],[course_shortname,enrol_ldap]
  MOV [enrol_ldap_course_shortname_key,enrol_ldap],[course_shortname_key,enrol_ldap]
  MOV [enrol_ldap_course_summary,enrol_ldap],[course_summary,enrol_ldap]
  MOV [enrol_ldap_course_summary_key,enrol_ldap],[course_summary_key,enrol_ldap]
  MOV [enrol_ldap_editlock,enrol_ldap],[editlock,enrol_ldap]
  MOV [enrol_ldap_ldap_encoding,enrol_ldap],[ldap_encoding,enrol_ldap]
  MOV [enrol_ldap_ldap_encoding_key,enrol_ldap],[ldap_encoding_key,enrol_ldap]
  MOV [enrol_ldap_general_options,enrol_ldap],[general_options,enrol_ldap]
  MOV [enrol_ldap_group_memberofattribute,enrol_ldap],[group_memberofattribute,enrol_ldap]
  MOV [enrol_ldap_group_memberofattribute_key,enrol_ldap],[group_memberofattribute_key,enrol_ldap]
  MOV [enrol_ldap_host_url,enrol_ldap],[host_url,enrol_ldap]
  MOV [enrol_ldap_host_url_key,enrol_ldap],[host_url_key,enrol_ldap]
  MOV [enrol_ldap_idnumber_attribute,enrol_ldap],[idnumber_attribute,enrol_ldap]
  MOV [enrol_ldap_idnumber_attribute_key,enrol_ldap],[idnumber_attribute_key,enrol_ldap]
  MOV [enrol_ldap_memberattribute,enrol_ldap],[memberattribute,enrol_ldap]
  MOV [enrol_ldap_memberattribute_isdn,enrol_ldap],[memberattribute_isdn,enrol_ldap]
  MOV [enrol_ldap_memberattribute_isdn_key,enrol_ldap],[memberattribute_isdn_key,enrol_ldap]
  MOV [enrol_ldap_nested_groups,enrol_ldap],[nested_groups,enrol_ldap]
  MOV [enrol_ldap_nested_groups_key,enrol_ldap],[nested_groups_key,enrol_ldap]
  MOV [enrol_ldap_nested_groups_settings,enrol_ldap],[nested_groups_settings,enrol_ldap]
  MOV [enrol_ldap_objectclass,enrol_ldap],[objectclass,enrol_ldap]
  MOV [enrol_ldap_objectclass_key,enrol_ldap],[objectclass_key,enrol_ldap]
  MOV [enrol_ldap_opt_deref,enrol_ldap],[opt_deref,enrol_ldap]
  MOV [enrol_ldap_opt_deref_key,enrol_ldap],[opt_deref_key,enrol_ldap]
  MOV [enrol_ldap_roles,enrol_ldap],[roles,enrol_ldap]
  MOV [enrol_ldap_search_sub_key,enrol_ldap],[search_sub_key,enrol_ldap]
  MOV [enrol_ldap_server_settings,enrol_ldap],[server_settings,enrol_ldap]
  MOV [enrol_ldap_template,enrol_ldap],[template,enrol_ldap]
  MOV [enrol_ldap_template_key,enrol_ldap],[template_key,enrol_ldap]
  MOV [enrol_ldap_updatelocal,enrol_ldap],[updatelocal,enrol_ldap]
  MOV [enrol_ldap_user_attribute,enrol_ldap],[user_attribute,enrol_ldap]
  MOV [enrol_ldap_user_attribute_key,enrol_ldap],[user_attribute_key,enrol_ldap]
  MOV [enrol_ldap_user_contexts,enrol_ldap],[user_contexts,enrol_ldap]
  MOV [enrol_ldap_user_contexts_key,enrol_ldap],[user_contexts_key,enrol_ldap]
  MOV [enrol_ldap_user_search_sub,enrol_ldap],[user_search_sub,enrol_ldap]
  MOV [enrol_ldap_user_settings,enrol_ldap],[user_settings,enrol_ldap]
  MOV [enrol_ldap_user_type,enrol_ldap],[user_type,enrol_ldap]
  MOV [enrol_ldap_user_type_key,enrol_ldap],[user_type_key,enrol_ldap]
  MOV [enrol_ldap_version,enrol_ldap],[version,enrol_ldap]
  MOV [enrol_ldap_version_key,enrol_ldap],[version_key,enrol_ldap]
  MOV [search_sub_key,enrol_ldap],[course_search_sub_key,enrol_ldap]
AMOS END
2010-07-19 21:52:52 +00:00
David Mudrak
9f38cdce0a MDL-22997 Enrol plugins help - credit goes to Helen for wording the texts 2010-07-19 16:42:09 +00:00
Petr Skoda
ec9132b5bb removing unused adv cohort role option from settings 2010-07-19 12:55:19 +00:00
Aaron Barnes
6fa788ab37 MDL-22781 upgrade enrol/flatfile plugin to use enrolments
Patch by Eugene Venter
2010-07-19 04:31:47 +00:00
Aaron Barnes
24df3e1a06 MDL-22788 upgrade enrol/paypal plugin to use enrolments
Patch by Eugene Venter
2010-07-19 04:22:07 +00:00
Petr Skoda
9d126c7d8a MDL-21782 removing confusing and unused capability from meta enrol, we use general enrolconfig cap instead 2010-07-18 13:20:44 +00:00
Petr Skoda
99c5d186ed MDL-21782 removing confusing and unused capability from cohort enrol, we use general enrolconfig cap instead 2010-07-18 13:20:15 +00:00
David Mudrak
6a39275870 NOMDL Removing duplicate line, no need to reload $instance 2010-07-18 12:36:48 +00:00
David Mudrak
2d3522ae1e NOMDL Fixed incorrect throwing of exceptions - missing 'new' or unknown exception class 2010-07-18 12:30:49 +00:00
David Mudrak
cd17f05ba1 MDL-22787 Fixed regression causing upgrade process halt without error
Sorry for this, I put that line there with good intention but did not
realize that the file must of course be included during the reflection
in upgrade.
2010-07-18 09:53:29 +00:00
David Mudrak
de5b395861 MDL-22787 Fixed remote unenrol - blame copy & paste 2010-07-18 00:35:43 +00:00
David Mudrak
f70207bc15 MDL-22787 Fixed enrol_mnet upgrade procedure
For any courses where at least one remote student was enrolled via 1.x
enrol_mnet plugin, the record in the table enrol was created
automatically by core during the upgrade to the new enrolment framework.
We just need to set the custom field to explicitly indicate that the
course is open for all remote hosts.
2010-07-17 23:39:02 +00:00
David Mudrak
053c49d1c9 MDL-22787 Bumping versions of MNet enrol related plugins to force xml-rpc methods re-registration 2010-07-17 22:36:21 +00:00
David Mudrak
af827747a3 MDL-22787 MNet Fix: enrol/mnet/enrol.php/available_courses is not indexed by courseid 2010-07-17 22:35:58 +00:00
David Mudrak
e3c6db931b MDL-22787 MNet: Finished server side of remote enrolment service 2010-07-17 22:35:38 +00:00
David Mudrak
152a2273be MDL-22787 MNet: Fixing regressions in auth_mnet caused by changes in enrol_mnet
This smells - IMHO auth_enrol should not do anything with the enrolment
related information. These two plugins seem to be tied too much...
2010-07-17 22:34:12 +00:00
David Mudrak
e56476c1e4 MDL-22787 MNet XML-RPC enrol/mnet/enrol.php/available_courses prefers host-specific instance 2010-07-17 22:31:57 +00:00
David Mudrak
c07e728146 MDL-22787 Fixed XML-RPC enrol/mnet/enrol.php/available_courses returned by 2.0 MNet server
Returns defaultrolename, fixed URLs in course summary and the returned
array must be indexed sequentially.
2010-07-17 22:30:20 +00:00
David Mudrak
d5bd0b0169 MDL-22787 MNet: implementation of enrol_mnet server-side service methods 2010-07-17 22:29:28 +00:00
David Mudrak
484b3e9f29 MDL-22787 Fixing the drift between my CVS and git, to be increased again in a while... 2010-07-17 22:29:03 +00:00
David Mudrak
fe73e93545 MDL-22787 MDL-21993 New mnetservice plugin type
This commit introduces new plugin type called mnetservice. Once the MNet
framework is redesigned, this plugin will define the service itself, the
strings for it and the the client tools for administrator. The server
side is implemented mainly in enrol_mnet plugin which publishes xml-rpc
methods.

AMOS BEGIN
 MOV [remoteenrolhosts_desc,core_mnet],[clientname_help,mnetservice_enrol]
AMOS END
2010-07-17 22:18:07 +00:00
David Mudrak
82195aaefe MDL-22787 Instances of enrol_mnet can be added to the course 2010-07-17 22:17:10 +00:00
David Mudrak
6f948538bb MDL-22787 Initial structures for the new MNet enrolment plugin 2010-07-17 22:16:48 +00:00
Sam Hemelryk
6db3eee02b enrol MDL-23117 Implements the other users UI for users with roles in a course but not enrolled.
At the same time this commit introduces a standardised dialogue YUI module to enrol and implements it across the board.
This commit also addresses MDL-23292 and MDL-23319.
2010-07-16 08:30:06 +00:00
Petr Skoda
869483b61e MDL-23325 fixed wrong course id 2010-07-16 06:41:14 +00:00
Petr Skoda
f728d49b00 MDL-19380 uploadlib cleanup before readding of antivirus integration 2010-07-14 08:40:48 +00:00
Petr Skoda
2a6dcb72a2 MDL-23237 new timecreated field in user_emrolments and adding timestart to enrol plugins that know it 2010-07-13 20:58:17 +00:00
Petr Skoda
a942f7572c fixed inverted !is_numeric() 2010-07-13 17:06:16 +00:00
Petr Skoda
217d039722 MDL-23253 plugin now may indicate if the want "Enrol me" link in navigation 2010-07-13 17:04:17 +00:00
David Mudrak
94cf0a1e56 MDL-23245 Fixed plugin type of auth_mnet in config_plugins table 2010-07-13 11:14:29 +00:00
Sam Hemelryk
823a807e01 enrol MDL-23232 Added validation of role when assigning 2010-07-13 03:54:21 +00:00
Sam Hemelryk
c41f920004 enrol MDL-23232 Fixed regression in ajax.php 2010-07-13 03:50:23 +00:00