![]() |
[SMF] Imported User Password Hack
Resource : [SMF] Imported User Password Hack
Type : Source Code Modification Version : 0.1 Author : mf @ http://www.videngineering.net Description : After SMF import, no need to reset password! vBulletin impex hashes all imported passwords with salt; md5(old_password . salt). For most forums, that means md5(md5(password) . salt). For SMF, however, that means md5(md5_hmac(password, username) . salt). Since vB login checks for md5(md5(password) . salt), that means an imported SMF user will have to have his/her password reset. That, or you install this little hack. Tested : Yes, tested on 3.5.0 Stable (will not work on vB 2.x or 3.0.x) Screenshot : None, obviously Notes : My first hack :speechless: |
Good stuff! Glad I could help you a bit and so cool that you worked it out how to do this. [Installed]
|
Pretty cool, and grats as well for this being your first hack. I am sure this will be inspiration for other password hacks too.
This gave me an idea though... maybe upon importing, add all users to a secondary usergroup and have the plugin system redirect to a page where the user can enter htier old password nad have it changed to the new vb-hash format and then it takes them out of that secondary usergroup. |
Quote:
|
Quote:
Quote:
|
Posted it up there,... maybe the plug in can take the password entered, verify it against the old hash, then update the field with the new vb hash and take them out of the 2nd group. Then it becomes completely invisiable to the end user.
|
Quote:
|
For reference: http://www.vbulletin.com/forum/showthread.php?t=156593
|
I just WISH there was something like this when I imported SMF...
I lost a bunch of active members because of the reset... :( |
I have installed this modification correctly in 3.5 stable but it does not work :(
why? |
Quote:
|
Quote:
What exactly does not work, can't they login? Do you get an error - more information is as usual 'very handy'. |
Quote:
You have used 1 out of 5 login attempts. After all 5 have been used, you will be unable to login for 15 minutes. I do not get any code's error but simply the forum does not recognize SMF imported password :( |
Hello;)
Same problem,as described above... I did SMF import,installed (correctly) required hack,but passwords are not recognized and I do not get any specific error... :o Any suggestion/fix available? Thanks,have a good day |
I am extremely sorry, but I cannot seem to reproduce your issues. I just went through all the steps on my newly upgraded 3.5.0 stable vBulletin, and I can successfully login SMF users. The only thing I can think of is your SMF forum might have been imported incorrectly.
|
3.5.1
not working :) thx any way |
I recently purchased vbulletin and I was a bit disappointed that my users would have to reset their passwords to login to the "new" forum
I'm really happy with this hack.. I just tried it and it's working perfectly ! I just upgraded from SMF 1.0.5 to vBulletin 3.5.1 THANK YOU SOOO MUCH ! |
Quote:
ImpEx's primary goal is to protect the database, not to force in passwords that break the schema and code and can be easily reset. I explain how easy it is to reset the passwords here : http://www.vbulletin.com/docs/html/impex_passwords Also making users update passwords is more secure as people rarely rotate them. |
Quote:
Quote:
|
Quote:
|
Quote:
|
Thanks For This Great Modification ! [ Installed ! ]
|
this doesn't work on 3.5.3
|
Did not work for me on 3.5.4... :( 40,000 users have to reset passwords now.
|
I downloaded version 3.5.0 and tried this with a fresh install and it didn't work.
The import went OK, but users cannot insert their old password. I did notice that some of the code that the author of this mod mentioed arte actually slightly different in the version 3.5.0, that I downloaded. Perhaps some settings have been changed since the author originally wrote this mod? Anyway, it doesn't work anymore. Shame. :tired: |
Quote:
|
Hi
I actually found that a few of the lines in the vBulletin code were slightly different from the ones posted in your instructions. I wonder if there has been some slight ammendments done even to the 3.5.0 version? Either that or I got the instructions wrong, but I don't think so. I can't remember which template it was now, but it was towards the end of the process. |
So which version does this ACTUALLY work on? I am converting a SMF 1.1.1 forum to 3.6.4, and I need to know if this will work. I don't mind trying an older copy of vBulletin and upgrading afterwards.
|
I'm importing SMF 1.1.4 to vB 3.7b5, and it seems that SMF's password hashing has changed since this mod was released. It now uses sha1() instead of md5_hmac().
So I had a go at it, and got vB authentication working without having to edit any files (except one line in config.php). All it needs is: 1) In your ./includes/config.php, insert this line: PHP Code:
2) Create a plugin on the 'login_failure_verify_password' hook, and paste this PHP into it: PHP Code:
The way this works is, if the regular vB password verification fails (using the md5 version of the password, which will fail if they still have their impex'ed SMF password set), the plugin is called. Because we set DISABLE_PASSWORD_CLEARING in config.php, vB is now including the clear text password from the browser during login. So the plugin can take that cleartext password, and hash it using SMF's method, and see if that matches the stored hash. If it does, then they have a valid SMF style password. Note that the code above also works for any usernames which have been changed from 'joeblow' to 'imported_joeblow' due to username conflicts on the impex Although I'm using vB 3.7b5, I think this method should work for 3.6 as well. I have no idea which versions of SMF this will work for - all I know is, it works for the SMF v1.1.4 users I'm importing. I may add automatic changing of the password to a native vB password the first time an SMF user logs in, and release this as a mod. But if not ... maybe the above will help someone out. -- hugh |
would this work for an ikonboard 3.0 import as im having the same issue with passwords - thanks
|
the mod in the first post i not working :(
anyone interested in updating? |
All times are GMT. The time now is 10:30 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|