993 Commits

Author SHA1 Message Date
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
Sam Hemelryk
a3c7198453 enrol MDL-23232 Added missing caps and plugins checks and copied both sets from the manager to implementing scripts 2010-07-13 03:43:41 +00:00
Sam Hemelryk
2c770b7af2 enrol MDL-23231 Added total enrolled users count to the overview page heading + title 2010-07-13 02:42:01 +00:00
Petr Skoda
91b99e8018 MDL-23232 added support for enrol_plugin->all_enrol() which indicates plugin allows users to add new enrolments manually 2010-07-12 17:46:48 +00:00
Sam Hemelryk
23cee7a4cf enrol MDL-22867 Fixed a couple of bugs and made some slight display changes.
* Set the default per page limit to 100 instead of 20
* Set the default enrolment role to enrol_manual:roleid config
* Added course name to page title
* Fixed centering bug of cohort dialogue
* Fixed double display bug
2010-07-12 09:01:59 +00:00
Sam Hemelryk
2ec702c999 enrol MDL-22867 Added functionality to add cohort sycn or preform a one off member enrolment on the enrolled users screen. 2010-07-12 08:28:13 +00:00
Sam Hemelryk
f5ce6b71da enrol MDL-22854 Fixed navigation for the cohort add instance page 2010-07-12 06:18:08 +00:00
Petr Skoda
edfd6a5e73 MDL-14589 user icons now stored in file storage pool 2010-07-11 11:43:15 +00:00
Petr Skoda
e384d2dc7b MDL-22780 sync ext db enrol when user logs in - except admins in case something goes really wrong in plugins 2010-07-10 18:53:52 +00:00
Petr Skoda
341217658e MDL-23151 new ext sync option and minor refactoring 2010-07-08 10:57:23 +00:00
Helen Foster
5a4c4d4d9b MDL-22997 adding help strings 2010-07-07 14:21:56 +00:00
Helen Foster
53ccc14fd2 MDL-22997 adding help strings 2010-07-07 14:15:29 +00:00
Sam Hemelryk
a70eb30fa9 enrol MDL-22854 New ajaxified enrolment interface 2010-07-07 02:46:34 +00:00
Petr Skoda
2e0406a53a repeating upgrade typo fixed 2010-07-06 16:10:17 +00:00
Petr Skoda
3a11c09f5b MDL-21676 user_picture refactoring, reenabling email requirement - towards Gravatar support 2010-07-04 18:36:34 +00:00
Petr Skoda
a4cdd6d2c8 MDL-23068 removing obsolete $result and removing empty upgrade files that would be probably never used at all + minor cleanup/fixing 2010-07-04 10:27:56 +00:00
Petr Skoda
eae1948cee MDL-22910 workaround for inability of Oracle and MS sql to find distinct text fields, improved perf in all dbs 2010-06-30 20:42:11 +00:00
Martin Dougiamas
3bd9a7fe59 NOBUG: Added a little notice about the new interface coming soon 2010-06-30 09:29:31 +00:00