167 Commits

Author SHA1 Message Date
skodak
70ca450a01 MDL-15094 some forgotten conversions 2008-06-05 14:17:06 +00:00
skodak
185721a498 MDL-14679 towards /admin/auth conversion 2008-05-31 13:57:49 +00:00
skodak
be544ec380 MDL-14679 towards authlib conversion 2008-05-30 20:54:19 +00:00
skodak
576c063b31 MDL-14679 towards authlib conversion 2008-05-30 20:54:19 +00:00
skodak
ae040d4bcc MDL-14679 finished moodlelib conversion 2008-05-30 19:59:50 +00:00
skodak
59669b63f0 MDL-14543 fixed broken deleting from auth sync - credit goes to Juris Treibahs ; merged from MOODLE_19_STABLE 2008-04-25 13:22:02 +00:00
dongsheng
4105cafff9 MDL-12531, make the new member value available to all the affected plugins, thanks, Robert 2008-04-08 05:53:12 +00:00
dongsheng
6f87ef52b9 MDL-14055, change to human-readable strings from hard-coded integer, thanks for Matt's patch. 2008-03-26 01:35:04 +00:00
mjollnir_
2b214bc1dc Merged from MOODLE_19_STABLE: MDL-13161 - auth/db - suppress php warning when there are no users using db auth 2008-01-27 20:05:49 +00:00
skodak
03cedd6283 MDL-11432 eliminated majority of RecordCount uses, added several missing rs_close() - this should help improve perf on some platforms - Eloy says ;-) 2007-10-10 12:19:27 +00:00
skodak
90afcf3280 MDL-10260 added new user_delete() hook into auth plugins; refactored user delete code = new function delete_user() in moodlelib.php + improved cleanup in core tables when deleting user 2007-08-21 20:52:36 +00:00
skodak
ab6ff8a4b5 MDL-9491 fixed problem with broken change/reset password in db auth when using internal passwords 2007-04-22 21:40:28 +00:00
stronk7
d972bfd01a Add one missing return causing db(internal) pass change not to work.
Partially, MDL-9491

Merged from MOODLE_18_STABLE
2007-04-22 14:19:43 +00:00
nicolasconnault
77a297d274 Fixed many xhtml errors 2007-04-20 07:54:42 +00:00
stronk7
a7e323672d Fixing authdb->close() in some places. Credir goes to Seiti. MDL-9212
Merged from MOODLE_18_STABLE
2007-04-05 22:22:28 +00:00
skodak
6bc1e5d577 (MDL-8973) Fix OOP model of new multi auth plugins + some other auth related fixes, fixed change_password, ldap updates, etc.; TODO: fix docs 2007-03-22 12:27:52 +00:00
skodak
c57dcb62c2 MDL-8590 auth cleanup - reset password cleanup+fixes 2007-02-22 22:20:51 +00:00
skodak
430759a5fe MDL-8590 auth cleanup - part 6 2007-02-21 21:42:10 +00:00
skodak
139ebfdb3b MDL-8590 auth cleanup - part 1 2007-02-20 17:03:36 +00:00
skodak
0813712fb8 MDL-8542 External db auth cleanup
* some more sync script fixing
2007-02-16 10:55:05 +00:00
skodak
8ae42b8d78 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')
* mysqli support
* form field labels
* general cleanup and minor fixing
2007-02-16 10:45:53 +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
stronk7
b09cba5084 Set Assoc mode always after DB connection. Discovered by MDL-7443
Merged from MOODLE_17_STABLE
2006-11-13 22:59:58 +00:00
skodak
810944af7f we are going 100% unicode now - removed use of $CFG->unicodedb and current_charset(); MDL-7439 - part 2, only hotpot and wiki left 2006-11-11 17:23:20 +00:00
stronk7
f9ec4d3722 Adding support for the new mssql_n driver
Merged from MOODLE_17_STABLE
2006-10-19 18:29:47 +00:00
martinlanghoff
13e8d6e46f auth/db/lib (bugfix) only update mdl fields during login if 'onlogin' set
Previous operation was update all moodle fields from the external database
during each login & sync ignoring this setting. Now if this setting is
'oncreation' then the field is only copied once (on creation of user).
2006-09-28 01:05:10 +00:00
toyomoyo
d76a5a7fed replacing references to user_* tables 2006-09-19 01:44:33 +00:00
martinlanghoff
3279a35540 auth/db: When using internal passwords we must register auth_update_user_password()
Now users can update their password correctly. We did have this before, I
wonder if it got dropped in a merge.
2006-07-18 01:36:47 +00:00
martinlanghoff
bd18fe9ced auth/db: use auth_validate_form() to set auth_db_stdchangepassword when passtype is 'internal'
When using the 'internal' password handling, set auth_db_stdchangepassword
so we allow users to change their password normally.
2006-07-18 01:36:24 +00:00
skodak
af38593211 fixed auth_user_exists(), now works the same as the one in ldap plugin 2006-04-22 16:01:02 +00:00
stronk7
5c30945a81 Only decode from utf8 if we aren't running under utf8.
(anyway we need a setting to decide the original encoding
and to be perfect)
2006-03-28 19:14:23 +00:00
skodak
df1931578a password handling refactoring and added conversion of passwords to unicode 2006-03-11 11:26:36 +00:00
martinlanghoff
33a9fd4745 Added auth_db_sync_users.php 2006-01-16 03:02:30 +00:00
martinlanghoff
ae57432404 auth/db now support internal passwords and sync_users() 2006-01-16 02:54:16 +00:00
martinlanghoff
3f26679388 Merged from MOODLE_15_STABLE - auth/db: Better support for utf-8 user data. 2005-08-31 06:01:14 +00:00
martinlanghoff
a40803130b Per-auth-backend field locks support. Merged from MOODLE_15_STABLE
* Extended set_config()
 * Implemented get_config() which takes over $CFG loading in setup.php
 * admin/auth.php has special handling if post vars starting in pluginconfig_
 * admin/auth.php print_auth_lock_options() prints a form fragment -- being called from most plugins now
 *  user/edit.php follows the new convention when locking down fields, both javascript UI and on POST.
 * admin/auth: More solid checking for auth GET/POST var.
 * admin/auth: print_auth_lock_options() now handles user field mapping options for LDAP and similar modules
 * admin/auth: user mapping options have moved to config_plugins table
 * auth/ldap module has migrated to using new field mapping vars -- simplified config.html a lot
 * auth settings migration to config_plugins
2005-06-02 05:39:41 +00:00
stronk7
ef9b35a01b Tabs are out 2005-05-16 19:38:21 +00:00
moodler
ce54d95cef Keep and reset $CFG->prefix as per bug 3223 2005-05-14 02:46:20 +00:00
martinlanghoff
e739b19a7e Merged from MOODLE_14_STABLE - Fixed bug 2319 DB auth not fetching user data fields correctly -- credits go to andres.marquez@accenture.com and doug nutsch 2005-03-07 02:01:25 +00:00
moodler
f0fd3436be Some cleanups just to make these pages look acceptable 2005-02-09 12:55:34 +00:00