Commit Graph

23 Commits

Author SHA1 Message Date
iarenaza c99f31c86b MDL-16061 Revert incorrect fix for "Remove 'username' from the $moodleattributes array"
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:35:26 +00:00
iarenaza 4e4955b55e 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:15:45 +00:00
jerome f6fd87d97b MDL-15175: ensures cross-db: add a lowercase conversion for the username, merged from 19 2008-08-14 09:53:19 +00:00
jerome 15a9e839f2 MDL-15175: fix sync with external Oracle database merged from 1.9 2008-08-13 06:35:22 +00:00
skodak 67ca52345c MDL-9491 fixed problem with broken change/reset password in db auth when using internal passwords; backported from HEAD 2007-04-22 21:42:57 +00:00
stronk7 3e7759c3b6 Add one missing return causing db(internal) pass change not to work.
Partially, MDL-9491
2007-04-22 14:18:40 +00:00
stronk7 f16220e6a9 Fixing authdb->close() in some places. Credir goes to Seiti. MDL-9212 2007-04-05 22:21:25 +00:00
skodak a045329951 (MDL-8973) Fix OOP model of new multi auth plugins + some other auth related fixes, fixed change_password, ldap updates, etc.; TODO: fix docs
backported from HEAD
2007-03-22 12:40:16 +00:00
skodak e8c5ac5251 MDL-8590 auth cleanup - reset password cleanup+fixes; backported from HEAD 2007-02-22 22:25:18 +00:00
skodak 20f2564695 MDL-8590 auth cleanup - part 6; backported from HEAD 2007-02-21 21:45:14 +00:00
skodak 9f9743cb88 MDL-8590 auth cleanup - part 1; backported from HEAD 2007-02-20 17:06:47 +00:00
skodak 5553359aa4 MDL-8542 External db auth cleanup
* configurable encoding conversions
* fixed handling of magic quotes
* proper sybase quoting
* adodb debug mode
* fixed language strings
* sha1 support
* connection setup command (use names 'utf8')

backported from HEAD
* mysqli support
* form field labels
* general cleanup and minor fixing
2007-02-16 10:48:07 +00:00
stronk7 931b508559 Applying new rs_xxx() functions everywhere. MDL-8134 2007-01-29 23:52:33 +00:00
stronk7 c024b94b02 Applying new rs_xxx() functions everywhere. MDL-8134 2007-01-29 10:47:25 +00:00
donal72 fb5c773965 Auth: Documentation update to reflect changes in signature of user_update_password method 2007-01-28 22:08:59 +00:00
donal72 da249a3028 Auth: Fix for error creating admin user (if you choose a new username). Also addresses an issue in the user_update_password method. 2007-01-28 10:27:05 +00:00
stronk7 150b5fb0e0 $form is an object (from data_submitted). 2007-01-23 16:33:15 +00:00
martinlanghoff 0f02788f70 auth/db/auth.php - fewer queries against the ext db
Previously sync script would query the ext db once for each field that
might be wanted (repeated for each user).  Changed to query once for each
user.

Originally by Peter Bulmer <peter.bulmer@catalyst.net.net>
Somewhat adapted by Martin Langhoff ;-)
2007-01-16 05:24:20 +00:00
martinlanghoff de6e7ee2a9 auth/db: fix fields not read from external database MDL-7712 2007-01-15 19:53:26 +00:00
stronk7 93901eb42f Change some connections to non-persistent and force new connections
to avoid mysql (and oracle, I think) reuse of the main one. MDL-8152
2007-01-11 20:08:00 +00:00
donal72 a9ad3633c7 Auth: Replace hardcoded strings: MDL-8069 2007-01-10 23:17:51 +00:00
donal72 b7b50143f3 Auth: Bugfix: MDL-8131 2007-01-10 00:50:59 +00:00
martinlanghoff b9ddb2d5ea multiauth: migrated all files to the new OO API, written new API documentation
Author: Martin Langhoff <martin@catalyst.net.nz>
2007-01-04 04:52:42 +00:00