ak47suk1

convert moodle ldap auth to manual auth

Feb 1st, 2012
225
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     UPDATE `mdl_user` SET `auth`= 'manual' WHERE mdl_user.username IN (SELECT username FROM `TABLE temp`);
  2.      
  3.     UPDATE `mdl_user` SET `password`= md5(concat((SELECT password FROM `TABLE temp` WHERE `mdl_user`.username=`TABLE temp`.username ),'passwordsalt')) WHERE mdl_user.username IN (SELECT username FROM `TABLE temp`);
RAW Paste Data