user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%' at line 1 query: UPDATE users SET status = 1 where uid = % in /srv/www/htdocs-test/sites/all/modules/ldap_integration/ldapsync.module on line 136.
The current code is -
db_query("UPDATE {users} SET status = %d where uid = %", 1, $account->uid);
This is obviously missing a placeholder for the uid variable. Correct patch is attached. Unfortunately, I'm unable to test this with a proper patch, will request confirmation from client tomorrow.
Comments
Comment #1
erikwebb commentedAs this code entirely breaks this piece of functionality, I'd consider it critical.
Comment #2
johnbarclay commentedthis is a different module/package.
Comment #3
zanixldapsync was added to this module in the master branch
http://drupalcode.org/project/ldap_integration.git/commit/6afa43aa528088...
Comment #4
johnbarclay commentedok. I'll get it back in head.
Comment #5
johnbarclay commentedI committed this, and got ldap synch back in head.