142 Commits

Author SHA1 Message Date
jerome mouneyrac
c044e281b5 mnet MDL-21582 fix empty mnet debug variable that display a notice on the peer services page 2010-02-11 08:20:27 +00:00
Penny Leach
d36fa8159b mnet MDL-21256 reworked some more of admin/mnet to use forms and new output stuff 2010-02-11 02:50:28 +00:00
Penny Leach
96bd292127 mnet MDL-21256 & the start of a proper fix for MDL-20660
Unfortunately these are tangled up together a bit
2010-02-11 02:49:11 +00:00
Penny Leach
71f61c41f3 mnet MDL-15505 added new mnet_debug function and started migrating to it 2010-02-05 03:56:45 +00:00
Penny Leach
48fb39411f mnet MDL-21098 small fixes - ss out issue and edge case simultaneous keyswap loop 2010-02-05 03:56:22 +00:00
Penny Leach
287efec6f6 mnet MDL-21276 get rid of all the $MNET* globals 2010-02-02 03:13:40 +00:00
Penny Leach
cd8f1cf656 mnet MDL-16858 verify the signature in the xmlrpc response 2010-02-02 02:13:25 +00:00
Penny Leach
5f27814116 mnet MDL-21473 xmlrpc client should check in the remote_ rpc tables 2010-01-29 02:59:27 +00:00
Penny Leach
8586dbe2a5 mnet MDL-21473 make new tables for remote functions that don't exist locally
I also fixed up two columns in the existing table that had underscores in them
2010-01-28 22:46:34 +00:00
Penny Leach
d2ac37c1ab mnet MDL-21261 mnet overhaul - adding and removing files I missed in the last big commit 2010-01-28 20:17:12 +00:00
Penny Leach
de260e0f7b mnet MDL-21261 large overhaul. This commit changes:
- The way that mnet rpc functions are registered.  Plugins must now
  create db/mnet.php which is an array, similar to services.php.  This
  *replaces* the old mnet_publishes() functions.  version.php must be
  bumped to trigger this.

- More information about each rpc-available function is stored in the
  database, including the class it belongs to, the file it is found in,
  and whether or not it is static.  Methods that are not static must be
  in a class with a constructor that takes no arguments (this can easily
  be achieved with a small wrapper if necessary)

- The xmlrpc dispatcher has been rewritten to remove all the
  dependencies on hardcoded information about auth,mnet,portfolio and
  repository, and just use the information in the database.

- The old hardcoded hidden mnet/testclient.php has been moved to the
  Admin menu under "Development" and rewritten.

- The xmlrpc introspection method profiling is now using php and zend
  reflection - which is a lot nicer than the old way, which was using a
  php-based php parser.  This fixes some inconsistent handling of
  methods without arguments that were advertising their return value as
  the only method parameter.  While this is a *fix*, it breaks BC
  slightly - the old 1.9 broken mnet/testclient.php will now not work
  properly with 2.0

- Dangerous mode is still supported, but old mod/*/rpclib.php is
  now unsupported, due to the fact that any plugin can export mnet
  functions with db/mnet.php.  This is a slight BC break.

Still TODO:

- TEST TEST TEST
- Document the two small BC breaks in release notes
- Document the contract for db/mnet.php
2010-01-28 05:25:50 +00:00
Penny Leach
c0b22a3f96 mnet MDL-21294 fixed some errors in the new mnet exception stuff
I think I must have tested mnet client/server around the wrong way
2010-01-13 03:46:45 +00:00
Penny Leach
939ea0bc44 mnet MDL-21294 change errors to exceptions in mnet server 2010-01-13 01:08:38 +00:00
Petr Skoda
af0e9032f9 MDL-21319 preventing debug output and cookies in mnet xmlrpc server script 2010-01-12 10:59:08 +00:00
Penny Leach
47c18e9b98 mnet MDL-17735 changed signature method url to rsa, not dsa 2010-01-12 01:59:47 +00:00
Penny Leach
bac44e6dc9 mnet MDL-19239 changed all instances of fetching config from db to use get_config 2010-01-11 22:53:11 +00:00
Penny Leach
f4b58166b6 mnet MDL-17169 trim the raw xmlrpc response before passing it to the xml parser
merged from MOODLE_19_STABLE
2010-01-11 01:02:43 +00:00
Penny Leach
edf1fc350a portfolio: MDL-20892 moved portfolio/type/* plugins to portfolio/* 2009-11-18 13:27:38 +00:00
Andrew Davis
6959330979 all MDL-20821 Removed more deprecated functions 2009-11-18 06:05:10 +00:00
Petr Skoda
3f226cc99f MDL-20639 fixed mnet security trouble - credit goes to Adrian Schlegel 2009-11-17 17:32:17 +00:00
jerome mouneyrac
5ac7a171ec mnet MDL-16305 a mnet host is now never really deleted from the database but marked as deleted. 2009-11-02 06:59:07 +00:00
Petr Skoda
1d42298086 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 12:22:45 +00:00
danmarsden
45e4294df2 MNET MDL-13503 allow path to openssl.cnf to be set in config so that windows installs and packages can reliably enable networking. 2009-09-11 10:01:14 +00:00
skodak
0a127169fe MDL17980 reverting last commit - other devs agreed, to be explained in tracker 2009-08-03 07:35:41 +00:00
peterbulmer
1b509b3699 MDL17980 mnet improvements
* Allow multiple roles to be allocated by identity provider
* Allow existing enrolment plugins to manage mnet enrolments


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2009-08-03 03:38:23 +00:00
tjhunt
ebff477995 MDL-19882 Add missing require_login-s before require_capability. 2009-07-20 08:57:18 +00:00
tjhunt
31a9987770 install: MDL-19610 encapsulate empty($CFG->rolesactive) checks in a during_initial_install() function. 2009-06-24 09:17:56 +00:00
nicolasconnault
6dbcaceef1 MDL-19418 Replaced ereg* by preg* 2009-06-22 01:22:37 +00:00
jerome
88d9e9d90e mnet MDL-10935 fix unicode character when the remote site send the course name for updating enrolment, merged from 19 2009-02-06 00:46:37 +00:00
mjollnir_
1cc8e4c13d Fixed misnamed variable I believe I was introduced in 1.33 2009-01-29 10:58:41 +00:00
skodak
1caea91efb MDL-17457 moved a lot of code into lib/db/install.php + other refactoring and cleanup 2009-01-11 09:41:48 +00:00
skodak
b636fdfbc1 MDL-14123 Full IPv6 support - replaced mnet ip_in_range() by standard ipv6 compatible address_in_subnet(); replaced $_SERVER['REMOTE_ADDR'] with standard getremoteaddr() 2009-01-09 21:41:47 +00:00
jonathanharker
078c1134bf MDL-17548 MNET: Fix email links for sites with path component in wwwroot
Where Moodle sites had a path in their wwwroot, the MNET function that
forced remote users to go via their identity provider (to make sure they
were logged in) previously directed the user back to a URL like
contentprovider.com/moodle/moodle/mod/forum/view.php?f=7 where there
should only be one /moodle in the middle of the URL.
2008-12-14 22:50:22 +00:00
skodak
eb7f89bc15 MDL-17419 misconfigured openssl extension blocks installation - openssl.cnf missing?? 2008-11-28 12:54:15 +00:00
jerome
46c8e3b0d6 MDL-15352: trivial change, add a clear error message when can't retirve listing 2008-10-24 05:36:59 +00:00
jerome
659054c521 MDL-15352: doesn't use anymore mnet system function, implemeted new mnet function, remote moodle service will appear into the peer service 2008-10-23 08:14:24 +00:00
jerome
ef378cdcf4 MDL-15352: doesn't use anymore mnet system function, implemeted new mnet function, remote moodle service will appear into the peer service 2008-10-23 08:14:23 +00:00
jerome
d3dfe9aecb MDL-15352: first version of remote moodle plugin 2008-10-22 04:04:23 +00:00
peterbulmer
c8a6dfee9b Typo correction in comment 2008-10-07 22:25:48 +00:00
peterbulmer
334e66c1c2 MDL16286 - bugfixes
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-28 04:19:45 +00:00
peterbulmer
8d60e9427d MDL16286 - redefine function boundaries.
Better defined what the decrypt / signature functions do & brought a lot of the error-exits together


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-28 04:19:04 +00:00
peterbulmer
34ebb3cfa2 MDL-16286 MDL-16285 better variable names and improved structure
Another one of those diffs that is a little more understandable when ignoring whitespace changes.


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-28 04:18:28 +00:00
peterbulmer
4399f32491 Created commit f319290: MDL-16285 MDL-16286 - Farm menial statements out to function
& improve variable names


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-28 04:17:34 +00:00
peterbulmer
469b60c52d MDL-16285 Renamed generic variable
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-28 04:16:59 +00:00
peterbulmer
aad3a24ced MDL-16286 MDL16285 add comment & invert logic flow
(This diff is best viewed ignoring whitespace changes)
Ignore logic flow so that errors are dealt with first


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-28 04:16:22 +00:00
peterbulmer
99112dfece MDL-16286 farm permission-to-call checks out to a function
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-28 04:04:22 +00:00
peterbulmer
99677c349f MDL-16286 Remove redundant lines and improve variable names
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-28 03:47:04 +00:00
peterbulmer
8263d8d7ca MDL-16286 minor formatting adjustment
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-28 03:45:22 +00:00
dongsheng
8e47233775 "format code again" 2008-09-26 04:56:51 +00:00
dongsheng
8503aae437 "fixed code format" 2008-09-26 04:51:50 +00:00