436 Commits

Author SHA1 Message Date
skodak
1b813f5c2a MDL-17772 fixed guest access; MDL-17754 $USER object initialisation cleanup 2009-01-02 21:05:16 +00:00
skodak
b7b64ff2e0 MDL-17754 next round of session related refactoring 2009-01-02 20:32:05 +00:00
skodak
0ad6b20cb2 MDL-17754 session code refactoring; removing test cookie which will be replaced by wwwroot checks 2009-01-02 13:42:43 +00:00
iarenaza
997bcd9e26 auth/ldap: MDL-9405 sync_users() can create duplicated users
Merged from MOODLE_18_STABLE

If we are using auth_ldap_sync_users.php to synchronize our users, and we
have a database which is case-sensitive when doing comparisons (Postgres and
Oracle at least), and any of our users has the vale of the username attribute
in mixed-case (like 'John Smith'), we get duplicated users.

This is because we don't make sure the username attribute value is 'lowercased'
after we retrive it from the LDAP server and before we insert it into the
database.
2008-12-26 16:01:30 +00:00
dongsheng
771dc7b298 "MDL-14129, fix error() in moodle2" 2008-12-12 05:45:43 +00:00
dongsheng
60e40dda6c "MDL-14129, remove the rest error() in moodle2" 2008-12-12 04:53:32 +00:00
jonathanharker
3b8c248237 MDL-17549 auth/radius: add CHAP and MSCHAP auth support, detect PHP extension
* Added support for CHAP and MSCHAP authentication schemes
       contributed by Stanislav Tsymbalov http://www.tsymbalov.net/
       original code at http://sourceforge.net/projects/moodleradius/
     * Tweak the detection of PHP RADIUS extension and Pear code
     * Update the warning notices to use more Moodly CSS classes

    lib/pear: Add RADIUS and CHAP PEAR libs

     * Add PEAR Auth_RADIUS and Crypt_CHAP packages to lib/pear


Author: Jonathan Harker <jonathan@catalyst.net.nz>
2008-12-12 04:44:53 +00:00
skodak
84f06d9c72 MDL-17567 sibolleth: fixed code to use new DML syntax 2008-12-09 22:13:08 +00:00
exe-cutor
2f5237edea Merged various fixes from 19 stable 2008-12-08 10:49:44 +00:00
exe-cutor
2db6ec1946 Merged Shibboleth logout support from 1.9 stable 2008-12-04 16:28:42 +00:00
moodler
49f5ec4cfd auth/cas MDL-17121 Upgraded to latest version which is LGPL 2008-11-07 02:01:10 +00:00
peterbulmer
28c3e7d86f MDL-17038 bugfixes
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-10-30 01:18:32 +00:00
peterbulmer
9dbc81ef23 MDL-17038 - truncate overlength varchar fields before attempting to insert
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-10-30 01:17:55 +00:00
peterbulmer
6da155db35 MDL-17038 formatting correction
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-10-30 01:17:11 +00:00
peterbulmer
995087b904 MDL-17038 Change to use sensible variable names
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-10-30 01:16:47 +00:00
peterbulmer
6ff7d16b25 MDL-17038 - refine query to limit size of returned data.
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-10-30 01:16:06 +00:00
peterbulmer
f213ba93b9 MDL-16286 remove additional reference to (now undefined) $sql
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-07 03:26:10 +00:00
peterbulmer
ae18d3e644 MDL-16335 additional comment
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-07 03:25:27 +00:00
peterbulmer
4711957d99 MDL-16285 Simplify separate treatment of executing peer.
Change 'if' to comply with moodle coding standards
Improvements to comment


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-07 03:24:56 +00:00
peterbulmer
1c85006caf MDL-16286 - replace get_records_sql with more generic get_records
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-07 03:22:34 +00:00
peterbulmer
a01ee3136f MDL-16335 - alter grouping, rename var and add comment to improve readability
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-07 03:21:57 +00:00
peterbulmer
210d7a46cd MDL-16335 remove unnecessary clone
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-07 03:20:32 +00:00
mjollnir_
d9be2106ed MDL-16180: add support for bouncing user back to originating host in mnet:jump/land
useful for jumping/landing/jumping back as part of an SSO session start that is just the first step for something else (which might be portfolio)
2008-08-29 12:42:39 +00:00
stronk7
f679d73093 Found another get_record() call when looking to MDL-16245. Fixed. 2008-08-28 23:00:43 +00:00
skodak
14482ff99e MDL-16245 fixed forgotten get_record() 2008-08-28 07:26:24 +00:00
iarenaza
5261baf11e MDL-16061 Revert incorrect fix for "Remove 'username' from the $moodleattributes array"
Merged from MOODLE_18_STABLE.

The fix is wrong, as it breaks auth_db_sync_users.php and
auth_ldap_sync_users.php at least. No new users are added to Moodle, as the
username is missing from the new user info record.

The fix needs to go into update_user_record() in lib/moodlelib.php to make it
skip the 'username' key, as we really need get_userinfo() to return the
username as part of the user info array.
2008-08-25 22:44:45 +00:00
iarenaza
cfcb7a17cb MDL-15799 LDAP - user data mapping doesn't work. Merged from MOODLE_18_STABLE
The Right Way(tm) to write a LDAP filter is enclosing it in parentheses (see
RFC 4515/2254).
2008-08-24 20:46:49 +00:00
iarenaza
19ac43c7a6 MDL-16061 Remove 'username' from the $moodleattributes array.
It doesn't make sense at all (username is not part of the externally mapped
fields) and produces a notice that breaks HTTP headers with debugging enabled.
2008-08-15 11:22:57 +00:00
jerome
e9366bf849 MDL-15175: ensures cross-db: add a lowercase conversion for the username, merged from 19 2008-08-14 09:55:56 +00:00
jerome
1ed6ae073d MDL-15175: fix sync with external Oracle database merged from 1.9 2008-08-13 06:41:46 +00:00
peterbulmer
dbca4e44ca MDL-15933 Require jump destination MNET peer to be non-deleted.
Also require landing source MNET peer to be non-deleted.
2008-08-11 04:48:00 +00:00
stronk7
8dd009f379 Fixed copy&paste error. Credit goes to Sergio Rabellino.
http://moodle.org/mod/forum/discuss.php?d=102933 ; merged from HEAD
2008-08-07 17:10:28 +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
skodak
2942a5cd34 MDL-9983, MDL-13998 core events related cleanup; merged from MOODLE_19_STABLE 2008-07-06 17:57:06 +00:00
Francois Marier
6800d78e06 Drift between CVS and git
- large deletions
- lucene updates
- error() => print_error()
- NO_MOODLE_COOKIES define
- various other things
2008-06-25 17:31:23 +00:00
skodak
31693d6fe7 MDL-15398 reverting previous incorrect patch 2008-06-24 22:10:30 +00:00
fmarier
874487c0d8 auth/ldap: fix PHP warnings and remove bad "Choose one" id
Merged from MOODLE_19_STABLE
2008-06-19 02:30:37 +00:00
skodak
245ac55791 MDL-14679 last forgotten bits of dml conversion 2008-06-09 19:48:24 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
skodak
df884cd852 MDL-15098 dml auth conversion 2008-06-07 15:41:25 +00:00
skodak
f67cab32ec MDL-15094 some forgotten conversions 2008-06-05 18:01:22 +00:00
skodak
70ca450a01 MDL-15094 some forgotten conversions 2008-06-05 14:17:06 +00:00
skodak
7b0d12b271 MDL-15097 mnet related code converted 2008-06-04 21:54:47 +00:00
skodak
8618fd2aeb MDL-14679 converted some delete_records 2008-06-02 21:52:27 +00:00
skodak
a5d424df7c MDL-14679 converted some get/set_field() 2008-06-02 21:39:23 +00:00
skodak
ab122f4604 MDL-14679 2008-05-31 17:48:51 +00:00
iarenaza
15f80fd887 MDL-4248 Fix error when updating user profiles and any of these fields is empty
According to http://es2.php.net/manual/en/function.ldap-modify.php#43216 we
need to specify an array() value to delete an attribute's value, instead of an
empty string.

Merged from MOODLE_18_STABLE
2008-05-31 15:00:42 +00:00
skodak
185721a498 MDL-14679 towards /admin/auth conversion 2008-05-31 13:57:49 +00:00
skodak
b9a6636029 MDL-14679 towards /admin conversion 2008-05-31 10:43:51 +00:00
skodak
5d910388bb MDL-14679 towards /user conversion 2008-05-30 22:11:31 +00:00