When running sync_users.php from CLI in auth/ldap/cli its stops with !!! Error writing to database !!! and doesn't add any new users.
The last few lines displayed follow the format
Updating user name.surname id 1223
User entried to be added: 544
Inserting user namex.surnamey id 26865
Inserting user namexx.surnameyy id 26867
.
.
.
Inserting user namez.surnamex id 26894
!!! Error writing to database !!!
Can I manually add the ldap users I need to get around this problem as a short fix?
How do I find out why its failing adding the user 26895 (or is it even failing then)
Extra Info:
The script stops at the same place each time but I can't tell why or how to manually force the updates through. Is there a way to preserve the temp table, make any edits that might be needed and force the update through?