629 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
a0d26f45f7 Merge branch 'MDL-30042-master-1' of git://git.luns.net.uk/moodle 2011-11-23 03:06:18 +01:00
Eloy Lafuente (stronk7)
ff64599f25 Merge branch 'w44_MDL-29897_m22_upgradetxt' of git://github.com/skodak/moodle 2011-11-09 16:35:57 +01:00
Andrew Robert Nicols
2a420f5cd4 MDL-30042: Sanitize httpwwwroot in mnet jump 2011-11-07 14:35:46 +00:00
David Mudrak
10df8657c1 MDL-29977 MNet does not allow to start a remote session when masquerading as another user 2011-11-04 10:02:19 +01:00
Petr Skoda
ee362526f8 MDL-29897 Update upgrade.txt files 2011-11-03 08:11:55 +01:00
Petr Skoda
e922fe23b6 MDL-29602 accesslib improvements
Refactoring and improvements of the accesslib.php library including prevention of access for not-logged-in users when forcelogin enabled, improved context caching, OOP refactoring of contexts, fixed context loading, deduplication of role definitions in user sessions, installation improvements, decoupling of enrolment checking from capability loading, added detection of deleted and non-existent users in has_capability(), new function accesslib test, auth and enrol upgrade notes.

More details are available in tracker subtasks.
2011-10-16 14:05:18 +02:00
Petr Skoda
c6bba40392 MDL-29025 fix missing $ espacing 2011-09-15 09:25:30 +02:00
Eloy Lafuente (stronk7)
3afd493065 Merge branch 'w36_MDL-29326_m22_sqlsrv' of git://github.com/skodak/moodle 2011-09-13 17:33:42 +02:00
Aparup Banerjee
af4f1cc722 MDL-26257 Authentication : whitespace/style fixes 2011-09-13 19:10:54 +08:00
Aparup Banerjee
631c9c02ab Merge branch 'MDL-26257' of git://github.com/bostelm/moodle 2011-09-13 19:07:22 +08:00
Petr Skoda
5cc6b84731 MDL-29326 add support for auth and enrol using mssqlnative adodb driver 2011-09-12 09:23:47 +02:00
Sam Hemelryk
f8adfe6cc0 Merge branch 'w36_MDL-28701_m22_tempcachedir' of git://github.com/skodak/moodle 2011-09-12 18:26:09 +12:00
Petr Skoda
ab6e0848c1 MDL-29025 standardise cli verbose output and general cleanup 2011-09-11 12:43:43 +02:00
Tom Lanyon
7aa06e6ded MDL-28701 Change all uses of $CFG->dataroot/temp to $CFG->tempdir 2011-09-10 10:35:39 +02:00
Henning Bostelmann
f4831673b6 MDL-26257 Shibboleth auth: run logout handler only if logged in via Shibboleth 2011-09-08 12:13:07 +01:00
Iñaki Arenaza
7edcbecad6 MDL-27689 Vague README-LDAP file in auth/ldap
README-LDAP referes to a file that was renamed (to auth.php) in Moodle
1.8 and no longer exists. Make clear what file we are referring to.
2011-09-01 12:43:58 +02:00
Eloy Lafuente (stronk7)
1f03315b18 Merge branch 'wip_MDL-16168_HEAD_CAS_crash_if_no_LDAP' of https://github.com/iarenaza/moodle 2011-08-29 01:30:37 +02:00
Iñaki Arenaza
fa5f5c206f MDL-28402 LDAP configuration values being stored in lower case, causing misconfiguration
It looks like array_change_key_case() does not work recursively, so we
were not actually lowercasing the expiration attribute key. As the
configuration setting is always lowercase they didn't match.
2011-08-29 01:07:30 +02:00
Iñaki Arenaza
ab8b1d15a5 MDL-16168 auth/cas CAS crashes if no LDAP is set up
Fix was pending for master. Credit goes to Ivan Dackiewicz.
2011-08-28 15:31:14 +02: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
Petr Skoda
f91f3f63a7 MDL-28182 always use full user object when deleting users 2011-07-22 22:46:32 +02:00
Petr Skoda
0881cb5135 MDL-27889 use new recaptcha google urls in lang packs 2011-07-19 10:27:20 +02:00
Eloy Lafuente (stronk7)
21ba26e814 Merge branch 'w27_MDL-28158_m22_cookies' of git://github.com/skodak/moodle 2011-07-11 15:33:03 +02:00
Petr Skoda
98eaf27e3c MDL-28280 remove obsolete unmaintained $CFG->usesid 2011-07-10 13:44:41 +02:00
Petr Skoda
0342fc3609 MDL-28158 add optional "Remember username" checkbox in login forms 2011-07-10 13:22:55 +02:00
Eloy Lafuente (stronk7)
26635fd7f9 Merge branch 'MDL-28169' of git://github.com/nebgor/moodle 2011-07-07 10:21:32 +02:00
Aparup Banerjee
c5a8abfedd MDL-28169 Installation Added 2.1 upgrade (idiot proof) lines to upgrade scripts. 2011-07-07 11:40:38 +08:00
Iñaki Arenaza
971db6a110 MDL-24666 sync_users.php can throw db exception on sites upgraded from 1.x
From 2.0 on we lowercase all the settings related to LDAP attributes
to cope with differences in LDAP servers when returning attribute
names as array indices (some lowercase them, some leave them as
specified in the query, some normalize them, etc.).

But we only lowercase them when saving the settings page. So on sites
that have been migrated from 1.x, it may happen that we still have
mixed-case attribute names. And this is fatal for the user_attribute
setting, as we might not detect it in the returned array from LDAP and
it will be empty (and the db layer throws and exception).

So we just make sure the attribute name is lowercased (and trimmed,
in case it's got some white space around it).

Signed-off-by: Iñaki Arenaza <iarenaza@mondragon.edu>
2011-07-04 21:47:43 +02:00
Eloy Lafuente (stronk7)
20d8d5c799 MDL-27148 whitespace fix 2011-04-18 01:38:41 +02:00
Petr Skoda
cf717dc26b MDL-27148 use new get_in_or_equal() param prefix instead of start 2011-04-14 15:15:01 +02:00
Petr Skoda
c6a074f867 MDL-26795 fix incorrect location of email change strings
AMOS BEGIN
 MOV [auth_emailchangecancel,auth_email],[emailchangecancel,core_auth]
 MOV [auth_emailchangepending,auth_email],[emailchangepending,core_auth]
 MOV [auth_emailupdate,auth_email],[emailupdate,core_auth]
 MOV [auth_emailnowexists,auth_email],[emailnowexists,core_auth]
 MOV [auth_emailupdatemessage,auth_email],[emailupdatemessage,core_auth]
 MOV [auth_emailupdatesuccess,auth_email],[emailupdatesuccess,core_auth]
 MOV [auth_emailupdatetitle,auth_email],[emailupdatetitle,core_auth]
 CPY [auth_emailnoemail,auth_email],[noemail,auth_ldap]
AMOS END
2011-03-27 17:19:23 +02:00
Petr Skoda
ee69d85a1f MDL-26634 LDAP NTLM SSO Multiple subnet separator is not specified and people use a wrong one
Credit goes to Inaki Arenaza.
2011-03-13 10:14:20 +01:00
Petr Skoda
431ac39634 MDL-26623 fix file permissions
The permissions are now going to be verified as part of the weekly release process.
2011-03-01 12:26:49 +01:00
Petr Skoda
8bdb31ed54 MDL-26564 fix regressions and other problems in csv user upload
This patch fixes incorrect password creating, updating and resetting, updating of user fields, unsupported auth plugins are correctly identified, modification of mnethostid is prevented, fixed problem with email duplicates, new password is generated for users without email, etc. It also includes coding style improvements, more inline docs, future TODOs and license information.
2011-02-28 08:27:31 +01:00
Eloy Lafuente (stronk7)
da622b497b Merge branch 'w07_MDL-25778_20_defaultcity' of git://github.com/skodak/moodle 2011-02-15 12:40:43 +01:00
Petr Skoda
9449d0c5e8 MDL-25778 fix default country and city on user upload form and revert change in auth plugins
Auth plugins should have separate defaults from site defaults).
2011-02-15 09:13:33 +01:00
Eloy Lafuente (stronk7)
2623f6bef2 Merge branch 'w07_MDL-25778_20_defaultcity' of git://github.com/skodak/moodle 2011-02-14 23:24:52 +01:00
Petr Skoda
fa7f750c60 MDL-25778 add defaultcity option
This is based on patch by Jonathan Harker.
2011-02-14 20:10:50 +01:00
Petr Skoda
cd138b26f1 MDL-26376 fix incorrect Shibboleth string and undefined property during first config saving 2011-02-12 17:00:36 +01:00
Sam Hemelryk
80c1289773 MDL-25637 Fixed whitespace 2011-01-24 16:20:30 +08:00
Aparup Banerjee
b692e4aa29 Performance MDL-25637 moved static count/sizeof functions out of for loop conditions 2011-01-24 14:51:21 +08:00
Helen Foster
f085c3eccb MDL-21250 capital letters removal 2010-12-08 19:47:46 +00:00
Helen Foster
bea9531a78 MDL-25475 lang string update thanks to Inaki Arenaza and Angelo Pappano 2010-12-01 12:17:44 +00:00
David Mudrak
42ae4ff290 MNet: fixed wrong column name in SQL cleanup code 2010-11-26 09:20:16 +00:00
David Mudrak
ee4cd8f16d Prevent MNet error message when multiple records for the user are found in mnet_session table 2010-11-26 09:20:06 +00: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
Inaki
40293947bb auth/cas: MDL-25062 CAS authentication plugin does not validate the CAS server certificate
If we enable the server validation but don't specify a certificate file path
flag the error and don't let the user save the settings.
2010-11-18 00:57:06 +00:00
Inaki
387d1dc0d5 auth/cas: MDL-25062 CAS authentication plugin does not validate the CAS server certificate
The CAS protocol security model requires that you verify the cas server
certificate before you trust the answer (valid authentication and username
etc.).

Credit goes to Joachim Fritschi for reporting it and providing a patch.
2010-11-18 00:12:23 +00:00
Petr Skoda
7415aed103 MDL-11728 finally defining the exact meaning of is_internal() in auth plugins
internal means "uses password hash for user authentication", there is a new is_synchronised_with_external() method that indicates if moodle should automatically sync user info with external system after login; I have also improved the default for prevent_local_passwords() which is now defaulting to !is_internal()
2010-11-14 02:01:59 +00:00
David Mudrak
8bda7ceca1 Fixed MNet strings that explicitly talk about Moodle site
The remote site can be Mahara site, too.
2010-11-12 09:36:50 +00:00