i got this error this time
Execute scheduled task: LDAP users sync job (auth_ldap\task\sync_task) ... started 10:39:46. Current memory use 9.9MB. Connecting to LDAP server... Creating temporary table tmp_extuser .....................Got 21 records from LDAP No updates to be done User entries to be added: 20 Inserted user android id 86 ... used 38 dbqueries ... used 0.10443687438965 seconds Scheduled task failed: LDAP users sync job (auth_ldap\task\sync_task),The given username contains invalid charactersand this is what appears in the logs
Failed to send an email from the user with id '-10' to the user with id '85' due to the following error: "Could not instantiate mail function.".
Ok, so now it tells you - you have a user with a username that contains invalid characters. Two options, in user settings you can allow special characters in usernames or you can find the offending user and fix it in LDAP. I find that sometimes I get an errant space in a username and that will have this effect.
The mail problem is something else. You do not have your outgoing mail set up correctly.
Thanks for your help, we kept digging on the root cause and we found that an issue with the account attributes mapping configurations in addition to access limitation to the domain OUs.
Appreciate your help and everyone else help.