Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
ipbAuth - Use old Invision Power Board Passwords after migrating to vBulletin Details »»
ipbAuth - Use old Invision Power Board Passwords after migrating to vBulletin
Version: 1.00, by viarun viarun is offline
Developer Last Online: Oct 2018 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 4.0.1 Rating:
Released: 02-15-2010 Last Update: Never Installs: 18
Uses Plugins
Re-useable Code Additional Files  
No support by the author.

For anyone that's migrating from IPB ( Invision Power Board ) 2.X to vBulletin 4.x. The reason I built this is because the impex import system does not migrate passwords for a move from IPB to vBulletin. This is largely because the passwords are hashed differently, so there's no way to "convert" a password.

This plugin takes a different approach, where you keep the old IPB passwords around, and authenticate users against it first. If they authenticate successfully, then we sync the password the user typed in with vBulletin. Voila...a migration without making your users reset their passwords.

Borrowed heavily from ideas by malcolmx in his LDAP Auth Plugin. THANKS MALCOLMX!

Installation Notes:

1. copy ipbAuth directory to your vb forum installation directory
2. change the path to controller.php directory in ipb-plugin.xml
3. copy the hooks_ipb.xml to FORUM_ROOT/includes/xml directory
4. in login.php search for:
Code:
if ($vbulletin->GPC['vb_login_username'] == '')
         {
          eval(standard_error(fetch_error('badlogin', $vbulletin->options['bburl'], ....
         }
And add this hook statement like so:
Code:
(if ($vbulletin->GPC['vb_login_username'] == '') 
{ 
  eval(standard_error(fetch_error('badlogin', $vbulletin->options['bburl'], .... 
} 
($hook = vBulletinHook::fetch_hook('ipb_login_hook')) ? eval($hook) : false;
5. activate plugin system (if not done already) in admincp
6. in admin cp import the product at "Plugins & Products -> Download / Upload Plugins", use "Import Plugin Definitions XML File" at the bottom of the page, example import input './ipbAuth/ipb-plugin.xml'
7. in includes/class_bootstrap.php search for:

Code:
$show['nopasswordempty']
then change:

Code:
defined('DISABLE_PASSWORD_CLEARING') ? 1 : 0;
to:

Code:
defined('DISABLE_PASSWORD_CLEARING') ? 0 : 1;
( note that this causes the browser to skip hashing the password in javascript, and passwords will be sent cleartext to the server. technically, a security risk, although many, many, bulletin board systems do this by default. This is the only sensible way to get the cleartext password to be synced though. no other clean way to sync IPB to vB. You can, of course, turn this whole plugin off after most of your users have migrated, and then remove this change. The passwords are properly hashed in the database, and not written to disk, so the risk is relatively low.)


8. Configure the database settings in ipbconfig.inc.php ... this should point to your IPB database that has the members_converge table in it. Be sure to supply a username and password that can read and update the table. Make a copy of the database first...before you turn this plugin on!

9. Make a backup copy of the old IPB database first...before you turn this plugin on!

10. Test

A little story: The whole reason this happened was that IPB treated me like crap. I was a long-time customer of their hosted board service on their 2.X product. Last weekend, I had planned to upgrade to 3.x, and move my board to my own servers. So, I logged into their site and purchased the 3.x product.

It popped up an error that basically said they had flagged the purchase, and were going to keep my money, but not let me download the software until I could be "verified"...perhaps up to 2 days later. So, I decided I didn't like being treated like a thief. I bought a brand-new copy of vB, and wrote this plugin to ease the migration for my board members. I'm posting it here so that hopefully, more people can move away from IPB. Karma rocks.


Download

Download Now

File Type: zip ipbAuth.zip (4.9 KB, 112 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-16-2010, 10:31 AM
viarun viarun is offline
 
Join Date: Feb 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heh. I like that someone gave it 1 star, but without downloading it, trying it, etc.

Suppose someone is trying to boost their own plugin's popularity? Kids....
Reply With Quote
  #3  
Old 02-16-2010, 11:22 AM
BlackJacket's Avatar
BlackJacket BlackJacket is offline
 
Join Date: Nov 2008
Location: 070108111114105100100
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I gave you 5 stars! Even though i would not need this mod i can see the usefulness it has. Thanks and welcome to VB!
Reply With Quote
  #4  
Old 02-16-2010, 11:54 AM
Gnoll's Avatar
Gnoll Gnoll is offline
 
Join Date: Dec 2009
Location: İzmir
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ill never use this but useful for impex used forums , might be you sent this to vB-IMPEX team then they add to impex
Reply With Quote
  #5  
Old 02-16-2010, 02:51 PM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod and very handy for those switching over.

This feature was suggested about 2-3 years ago but the Jerry said that the first concern was preserving the database and thus it was never added.
Reply With Quote
  #6  
Old 02-16-2010, 05:03 PM
viarun viarun is offline
 
Join Date: Feb 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep. To be clear, this mod doesn't alter the vB database at all. It requires access to the old IPB database. It doesn't change the structure, but it does overwrite the old IPB passwords, one by one, as users get synced and login.

Probably not a good candidate to move into Impex, as it requires DISABLE_PASSWORD_CLEARING. The really right way to do this, and support more than just IPB, would be adding "imported_password" and "imported_salt" columns into vB, and then extending the javascript used at login so that you wouldn't have to DISABLE_PASSWORD_CLEARING. That sounded like too much work for me
Reply With Quote
  #7  
Old 03-01-2010, 12:18 AM
DaSpyda DaSpyda is offline
 
Join Date: May 2009
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OMG, if I had this two years ago, I would've saved tons of hours of answering "My login doesn't work" emails!!!

Dang...
Reply With Quote
  #8  
Old 03-09-2010, 12:49 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice mod
Reply With Quote
  #9  
Old 03-13-2010, 01:51 PM
giorgino giorgino is offline
 
Join Date: Dec 2009
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is possible to port this add on for phpBB -> vB?
Reply With Quote
  #10  
Old 03-19-2010, 02:04 AM
viarun viarun is offline
 
Join Date: Feb 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by giorgino View Post
Is possible to port this add on for phpBB -> vB?
Yes, it should be a pretty easy exercise.

If you are sure that this isn't solved elsewhere, I would take a shot at it.

Not familiar with phpBB, so I would want to be sure there's no existing solution for this before I went and did the research.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04829 seconds
  • Memory Usage 2,320KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete