58 Commits

Author SHA1 Message Date
David Mudrak
8a6f2291f2 MDL-30170 MNet peers administration - highlight the undelete widget
The patch highlights the undelete radio selector at the host edit form.
It moves it to the end of the form (near the submit button) and displays
an explanation above the radio selector.

Also, the list of deleted hosts is now displayed below the table of
active peers at the Manage peers page.

The data returned by mnet_get_hosts() function now contain the deleted
status, too. It is possible to obtain deleted hosts from that function
now.
2011-12-15 21:51:31 +01:00
David Mudrak
a014e3bcd8 MDL-27107 auth_mnet - consider all incoming roaming users as confirmed
The 'confirmed' field can't be optional. If the identity provider did
not export it, the new remote user would be created with 'confirmed' set
to default zero and as such could be a subject of scheduled deletion.
2011-08-28 02:44:45 +02:00
David Mudrak
35d76df31d MDL-25367 user images are sent a received over MNet during SSO again 2010-11-26 09:19:55 +00:00
David Mudrak
13b78fda00 Profile fields to be synced via MNet now respect the 'use defaults' option 2010-11-26 09:19:44 +00:00
Petr Skoda
a9637e7df4 MDL-14679 fixed a lot more old style uses of insert_record() 2010-09-03 17:47:41 +00:00
David Mudrak
4378e6a2ff MDL-23600 MNet: do not rely on existing user record with ID 1 2010-08-08 10:58:38 +00:00
Dan Marsden
2c0b7ba20e MNET MDL-23001 bad use of get_config causing mnet SSO fail. 2010-06-30 02:08:35 +00:00
Penny Leach
fd1972490e mnet MDL-14117 truncate values in $dn to the RFC 3280 lengths when making new mnet keys
merged from MOODLE_19_STABLE
2010-02-18 03:11:51 +00:00
Penny Leach
f867d2aa77 mnet NOBUG added some phpdocs 2010-02-17 01:37:55 +00:00
Penny Leach
fc363065cb mnet MDL-21582 fixing notices 2010-02-16 02:37:42 +00:00
Penny Leach
61506902f3 mnet MDL-20660 allow admins to configure fields to be sent over mnet 2010-02-16 02:05:30 +00:00
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
287efec6f6 mnet MDL-21276 get rid of all the $MNET* globals 2010-02-02 03:13:40 +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
939ea0bc44 mnet MDL-21294 change errors to exceptions in mnet server 2010-01-13 01:08:38 +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
Petr Skoda
3f226cc99f MDL-20639 fixed mnet security trouble - credit goes to Adrian Schlegel 2009-11-17 17:32:17 +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
nicolasconnault
6dbcaceef1 MDL-19418 Replaced ereg* by preg* 2009-06-22 01:22:37 +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
mjollnir_
b91b274b92 MDL-16180 - add portfolio support to mnet 2008-08-30 11:25:29 +00:00
mjollnir_
bd2bf45169 adding missing global $DB in mnet functions 2008-08-21 15:10:02 +00:00
peterbulmer
baed22bb1c MNET-12558 Additional commenting and variable name change 2008-08-20 05:57:06 +00:00
peterbulmer
1ce2da5836 MDL-12558 modify emails as they are being sent
replace urls in-place to direct users to their idp first
2008-08-03 23:24:12 +00:00
thepurpleblob
38612df899 MDL-15476
Can now override the public key lifetime by specificying value
for $CFG->mnetkeylifetime in config.php

Merged from STABLE_19
2008-06-30 14:55:48 +00:00
thepurpleblob
90715d7a8d MDL-14793
Added some debugging messages, if anything fails.

Merged from STABLE_19
2008-06-30 14:16:39 +00:00
skodak
cc38ff5d6d MDL-15097 mnet conversion revisited 2008-06-05 18:07:41 +00:00
skodak
a5d424df7c MDL-14679 converted some get/set_field() 2008-06-02 21:39:23 +00:00
thepurpleblob
15c31560d8 MDL-14659
Add bypass list for proxy usage.
2008-05-06 14:59:39 +00:00
thepurpleblob
2e34d3f979 MDL-14406
MNET can now establish a peer through a proxy

Merged from STABLE_19
2008-04-30 14:35:32 +00:00
donal
09f0abb2ff MDL-12492: Thanks to Nigel McNie, this addresses a problem which prevents hosts from re-keying when their keys expire. 2008-02-15 08:32:22 +00:00
donal72
77ba581090 Create DistinguishedName records with a subjectAltName field, and recognise incoming certificates' subjectAltName fields: MDL-11020, MDL-10326 2007-10-16 13:28:45 +00:00
donal72
e945004fd1 Bugfix caused by typo in /mnet/lib.php: This issue will have broken mnet for many users. 2007-10-02 06:45:40 +00:00
stronk7
b16393cb07 Adding the $Id tag to some scripts to allow better changes detection.
(soory, I deleted a few trailing spaces within comments...)
2007-08-29 10:48:44 +00:00
donal72
c80934aa48 MDL-9314 : Fix typo $access / $accessctrl 2007-08-03 08:54:57 +00:00
donal72
68bcd355af Rename the 'promiscous' mode to 'dangerous' as promiscuous is used elsewhere. 2007-08-02 05:27:06 +00:00
mjollnir_
2520258128 Merged Donal's changes to MNET to allow moodle to also network with mahara.
changelog follows

    [MNET-manual] added version.php, install.xml and upgrade.php patches
    Route remote users back to their home server without going through jump.php and land.php
    Display app-specific strings in the user view
    Display the application icon in the Remote Host block
    Hide the 'logs' tab if the application under review is not Moodle
    Hide the 'logs' tab if the application under review is not Moodle
    Update user record to note that picture == 1 once a picture has been
    transferred.
    Change 2 to uri - is this fluid?
    Add application paramter to bootstrap function
    Find the application
    Workaround for PHP5.2.2 bug: http://bugs.php.net/bug.php?id=41293
    $HTTP_RAW_POST_DATA was not being populated
    Ensure we get an application for our Peer
    Update the URI to use for MNET
    The default 'wantsurl' should be empty
    Use the appropriate 'land' url for the remote application
    Add hidden form elements for 'application'
    Add awareness of new Application concept
    Add awareness of new Application concept
    Add awareness of new Application concept
    Add awareness of new Application concept
    Add awareness of new Application concept
    Add awareness of new Application concept
    Add awareness of new Application concept
2007-07-14 03:00:12 +00:00
donal72
6bed4299ce MDL-9420 - SSO fails over https 2007-04-18 02:23:20 +00:00
donal72
1008dad65a MNet goes from ISO8859-1 -> UTF-8; #MDL-8514 MDL-8514 2007-02-20 02:06:56 +00:00
donal72
cdf2232920 Mnet: Rename field: access to accessctrl for Oracle interop: MDL-8237 2007-01-23 21:27:50 +00:00