94 Commits

Author SHA1 Message Date
Stephen Bourget
037273d87e MDL-12689: convert auth plugins to use settings.php 2017-04-03 10:50:09 -04:00
Frederic Massart
7fc7486f49
MDL-57193 auth_db: Flip the array outside the loop for better perf
Also as the recent changes where affecting the whitespaces quite
a lot, I took the liberty of aligning a few lines which weren't.
2016-12-02 16:29:47 +08:00
John Okely
ec3e79134f
MDL-57193 auth_db: Use a recordset and array_key_exists 2016-12-02 16:29:47 +08:00
Josh Willcock
34949c1a55
MDL-57193 auth_db: Fixed bug suspends all users if external DB has > 10k 2016-12-02 16:29:47 +08:00
Andrew Nicols
21e8b48d13 MDL-51758 libraries: Remove password_compat library from core 2016-07-18 10:06:57 +08:00
Adrian Greeve
3261b9eeea MDL-46682 auth/db: Increase of chunk size and update change.
The update query was not checking the mnet auth id and could
have been updating the wrong entry.
2016-07-06 16:41:51 +08:00
Jerome Mouneyrac
6f08f36c49 MDL-46682 auth/db: IN clause crashes when too many users to sync 2016-07-06 09:18:41 +08:00
Simey Lameze
5e60be8aaf MDL-52781 auth_db: deprecate clean_data method.
The old clean_data method has been deprecated as the user_create_user and user_updated user
    will be responsible by validating the user data.
2016-04-21 15:24:36 +08:00
Simey Lameze
ce59760476 MDL-50705 auth_db: apply standard cleaning to all fields
Also unit tests were added to cover the new clean_data() method.
2016-03-10 13:17:08 +01:00
John Okely
78a713685d MDL-50307 auth_db: Stop using AS to prevent error with some drivers 2015-08-11 12:11:43 +08:00
Charles Fulton
b6f28375b7 MDL-45113 auth: add is_configured method and convert auth_db to use it 2015-07-31 15:16:08 +00:00
Zachary Durber
a6fe447a9a MDL-43415 auth_db: support textarea and uppercase fields 2015-02-10 13:47:22 +08:00
Vadim Dvorovenko
4ad0d0f2f5 MDL-43415 auth_db: Adding custom profile fields to "Lock user fields"
Adding custom profile fields to "Lock user fields". It's needed to sync
custom user profile fields with external DB.
2015-02-10 10:37:12 +08:00
David Monllao
c00cbdc784 MDL-20365 auth_db: Warning users about case sensitive plain passwords
Also, changing returned passwords to lower case when
maching against an md5() string or a sha1() string.
2014-11-27 13:57:06 +08:00
Eloy Lafuente (stronk7)
e3d9fc3f5a MDL-20365 auth_db: cross-db passfield case and saltedcrypt unit test 2014-11-26 12:11:46 +01:00
Sam Hemelryk
c7c397ca39 MDL-20365 auth_db: post integration tweaks
* Fixes SQL indentation.
* Amended the new auth_dbsaltedcrypt string.
2014-11-25 09:05:24 +13:00
Ray Morris
f97b63bfd1 MDL-20365 auth_db: Add salted crypt() password hash option 2014-11-12 16:32:34 -06:00
Mark Nelson
e0e6d931f3 MDL-45936 auth_db: use core functions when creating/updating a user 2014-06-14 15:59:45 -07:00
Mark Nelson
8bf0f20795 MDL-42932 core_calendar: introduced calendar type system setting 2013-12-09 18:40:46 -08:00
Ankit Agarwal
963cdce4e2 MDL-42097 auth: Auth plugins must check passwordurl before returning it 2013-12-03 14:17:42 +08:00
Petr Škoda
6cf2091571 MDL-16073 add test for connection to external database for authentication and enrolments 2013-10-08 21:53:51 +02:00
Rajesh Taneja
bb78e249cd MDL-39961 Events: Replace Legacy events - User
This change includes:
* Added user_updated event, replacing old event
* Added user_created event, replacing old event
* Added user_deleted event, replacing old event
* Added user_loggedout event, replacing old event
* Added user_enrolment_created event, replacing old event
* Added user_enrolment_deleted event, replacing old event
* Added user_enrolment_updated event, replacing old event
2013-09-02 16:10:05 +08:00
Petr Škoda
2f1e464a88 MDL-40438 migrate all collatorlib:: and textlib:: uses 2013-08-06 21:04:35 +02:00
Simon Coggins
ec2d8ceb88 MDL-35332 lib: Improve security of hashed passwords 2013-02-09 06:47:57 +13:00
Petr Škoda
e7aeaa6590 MDL-37304 cleanup auth_db and use progress_trace 2012-12-29 21:57:57 +01:00
Petr Škoda
ba87b41b53 MDL-35695 do not connect to ext database when not necessary during login 2012-10-07 21:36:23 +02:00
Petr Škoda
5c28e3a8c6 MDL-32572 fix notice when changing internal auth_db passwords 2012-09-18 13:17:35 +02:00
Petr Škoda
bee0220935 MDL-32572 detect username conflicts in auth_db sync 2012-09-18 12:35:15 +02:00
Petr Škoda
a0a5ca2578 MDL-32572 always lookpup passwords only in records from current auth plugin
This bug should not be creating any problems thanks to our design of login process, but it should be fixed anyway.
2012-09-18 12:29:13 +02:00
Petr Škoda
28fd4d6c6b MDL-34635 use user->suspended flag in auth_db sync 2012-08-02 10:05:10 +02:00
Petr Škoda
f0364be67a MDL-13363 remove non-function user undeleting 2012-08-02 10:03:14 +02:00
Petr Skoda
a4d25731df MDL-30718 add missing timecraeted and timeupdated, fix user undeleting 2012-01-08 14:51:00 +01:00
Petr Skoda
ab6e0848c1 MDL-29025 standardise cli verbose output and general cleanup 2011-09-11 12:43:43 +02:00
Petr Skoda
f91f3f63a7 MDL-28182 always use full user object when deleting users 2011-07-22 22:46:32 +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
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
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
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
Petr Skoda
03ea0b32cc MDL-20210 dod not stop login process when can not connect to auth/db external database 2010-10-22 09:07:02 +00:00
Petr Skoda
bc31625aba MDL-24356 fixed DML conversion - based on patch by Jay Knight 2010-09-27 09:41:59 +00:00
Petr Skoda
1dffbae2da MDL-24321 switching to stdClass in /auth/ 2010-09-21 08:09:22 +00:00
Petr Skoda
dd88de0ebd MDL-14679 fixed remaining old style update_record()s 2010-09-03 18:01:25 +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
Petr Skoda
99f9f85f00 MDL-23489 auth plugins can specify own edit profile url - patch submitted by Jay Knight + tweaking change password url to use new moodle_url at the same time, it is backwards compatible, custom plugins may still use string url for now 2010-08-18 22:07:00 +00:00
Petr Skoda
6b8ad965dc MDL-16919 we have to really use the username cleaning only when manually adding new accounts, any sync with external system needs the exact match without any cleaning! 2010-06-06 14:06:30 +00:00
Dan Poltawski
5211c7ec51 auth/db: MDL-19469 - Swich from hardcoded auth type
thanks to Jay Knight for the patch
2010-05-16 13:10:26 +00:00
Petr Skoda
2c10db3b3c MDL-22060 fixed $a in string to match new rules
AMOS START
 REM fixed $a[] in [auth_dbdeleteuser, auth_db]
 REM fixed $a[] in [auth_dbinsertuser, auth_db]
 REM fixed $a[] in [auth_dbreviveduser, auth_db]
 REM fixed $a[] in [auth_dbsuspenduser, auth_db]
 REM fixed $a[] in [auth_dbupdatinguser, auth_db]
AMOS END
2010-04-11 16:55:17 +00:00
Inaki
b8fc9582e6 auth cas/db/ldap: MDL-18689 Fix typos in auth/{cas,db,ldap}/auth.php
Forward-ported from MOODLE_18_STABLE
2010-04-10 15:26:39 +00:00
Rossiani Wijaya
07ed083e4e MDL-16919 - Allow username to contain alphanumeric lowercase characters, underscore (_), hyphen (-), period (.) or at symbol (@) 2010-01-13 06:23:54 +00:00