protected function _importUser(array $user, array $options)
{
$salt = XenForo_Application::generateRandomString(30);
$hash = md5($user['user_password'] . $salt);
$import = array(
'username' => $user['user_login'],
'email' => $user['user_mail'],
'user_group_id' => 2,
'authentication' => array(
'scheme_class' => 'XenForo_Authentication_vBulletin',
'data' => array(
'hash' => $hash,
'salt' => $salt
)
),
'homepage' => $user['user_profile_site'],
'register_date' => $user['user_date_register'],
);
...
You need to write importer for it.
vBulletin auth class has md5(md5(pass),salt) encoding and you may associate your md5 users with vB external auth after convertion of their hashes to md5(hash,salt).
Thats how I did it. And no need any extra authentications. Import and forgot.
Thanks. I'm new to this, so bare with me.
Much appreciated!
- Can you explain the "data" field in the xf_user_authenticate table? What's require for that?
- Will "scheme_class" update post import once the user signs in for the first time?
a:2:{s:4:"hash";s:32:"643fa83c6a024553b927c7dfd69d682c";s:4:"salt";s:3:"KcB";}
a:3:{s:4:"hash";s:64:"a7cffe8fe9e9a68a6197f1d6e4e14e2c111da2d55f9cf8badafe1ba17ba3335d";s:4:"salt";s:64:"4a5104930061756165b6b2209469d0a470156117e43ca18995dc9f004d15469b";s:8:"hashFunc";s:6:"sha256";}
Is the above explanation for an older version of the encoding? I need to do a similar thing, but my data field looks like:
I have inherited a forum that gives me a (amongst other stuff) a list of user info with plain text password - bizarrely.
Does th info in my post above have 2 different encodings of the password?
Will I find the details for that in the import area?
Yes if vBulletin IMPEX has a Joomla importer that works.Hi! Is it possible to get joomla passwords to work after a conversion?
It might work. Hard to say.I can get from joomla to xenforo via joomla-smf-vbulletin-xenforo. Impex doesn't work for joomla 2.5 just 1.5.
Joomla is a CMS. What exactly do you need imported? Articles? Users? Anything else?
What format does Joomla use for passwords? MD5? SHA1?
We use essential cookies to make this site work, and optional cookies to enhance your experience.