Quantcast
Channel: Authentication
Viewing all articles
Browse latest Browse all 8413

Re: LDAP Sync before user login

$
0
0
by Ricardo RBatista.  

Hi my name´s Ricardo I´m from Brazil and here is very common the accentuation in the First and Lastname.When I use the sync_users.php in AD LDAP Names (First and Lastname) like José da Silva this erros occurs:

Database transaction aborted automatically in /var/www/moodle/auth/ldap/cli/sync_users.php Default exception handler: Erro ao gravar na base de dados Debug: Duplicate entry '1-' for key 'mdl_user_mneuse_uix' INSERT INTO mdl_user (confirmed,auth,mnethostid,username,lang) VALUES(?,?,?,?,?) [array (   0 => 1,   1 => 'ldap',   2 => '1',   3 => '',   4 => 'pt_br', )] Error code: dmlwriteexception * line 429 of /lib/dml/moodle_database.php: dml_write_exception thrown * line 1107 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end() * line 1149 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw() * line 875 of /auth/ldap/auth.php: call to mysqli_native_moodle_database->insert_record() * line 65 of /auth/ldap/cli/sync_users.php: call to auth_plugin_ldap->sync_users()

Potential coding error - existing temptables found when disposing database. Must be dropped!

If I use names like Jose da Silva (no accentuation ´ ) It´s work fine.

Do you or anybody knows anything about that ?

 

  


Viewing all articles
Browse latest Browse all 8413

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>