]> git.mjollnir.org Git - moodle.git/commit
auth/ldap: MDL-9405 sync_users() can create duplicated users
authoriarenaza <iarenaza>
Fri, 26 Dec 2008 16:01:30 +0000 (16:01 +0000)
committeriarenaza <iarenaza>
Fri, 26 Dec 2008 16:01:30 +0000 (16:01 +0000)
commit997bcd9e26b175e70e2afa4cbaf09a5d2e7bbec8
tree1cb7119b5b09f599acf49e67a3929dd429b5a750
parent28e6ac11742097673380d43b3aff5509a1f55f3b
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.
auth/ldap/auth.php