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
  #12  
Old 03-19-2010, 06:34 AM
giorgino giorgino is offline
 
Join Date: Dec 2009
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm absolutely sure
I've searched in all internet caves! lol
Your solution is a great solution

I've to migrate my phpBB board this sunday, and the only thing that I can do is overwrite password field with user e-mail, so that user can login to vB forum without recover his password via standard procedure.

My board isn't a tech board and my user are all newbe to forum structure...
Reply With Quote
  #13  
Old 03-19-2010, 12:33 PM
viarun viarun is offline
 
Join Date: Feb 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a beta copy that should work with phpBB. Sent you a pm.
Reply With Quote
  #14  
Old 03-19-2010, 12:52 PM
giorgino giorgino is offline
 
Join Date: Dec 2009
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you viarun
Reply With Quote
  #15  
Old 03-19-2010, 03:55 PM
giorgino giorgino is offline
 
Join Date: Dec 2009
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So viarun. First of all, really thank you for your support and great plugin

I've done this steps:

1. Copied the entire phpbbAuth folder in my root (I'm using vB4 Suite in root of my domain)
2. I haven't changed the path to controller.php. The defaut path seem to be ok for me ( ./phpbbAuth/controller.php )
3. I've copied hooks_phpbb.xml in xml folder (inside /include/xml/ )
4. I've modifyied login.php in vB root
5. I've uploaded hooks_phpbb.xml in Acp
6. I've setup the phpbb information in phpbbconfig.inc.php
test: the login procedure go
7. following your istructions:

in includes/class_bootstrap.php search for:
$show['nopasswordempty']
change: defined('DISABLE_PASSWORD_CLEARING') ? 1 : 0;
to: defined('DISABLE_PASSWORD_CLEARING') ? 0 : 1;

the login procedure go to blank page
Reply With Quote
  #16  
Old 03-19-2010, 04:37 PM
viarun viarun is offline
 
Join Date: Feb 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Should probably do this via PM, since it's not related to ipb, but rather phpbb.

Sent a PM.
Reply With Quote
  #17  
Old 03-19-2010, 10:24 PM
Adam H Adam H is offline
 
Join Date: Apr 2008
Location: UK
Posts: 248
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amazing mod and ive eventually got it working , i had a problem that it wasnt working because my SQL tables were actually different from Viarun , I think this maybe because my IPB install was originally IPB2 but then upgraded to IPB3 so it wasnt a clean install of IPB3

For those of you that have the members table like this : ibf_members , rather than what Viarun has said above with his table being ibf_members_converge .

You will need to use this controller.php file instead of Viaruns :

ATTACHED TO THIS POST

I hope this helps some people as it took me a good 4 hours to finally work it out................yes i know im slow but its been a long day lol.

Enjoy everyone and Massive thank you to viarun for a great mod
Attached Files
File Type: zip controller.zip (2.0 KB, 47 views)
Reply With Quote
  #18  
Old 06-12-2010, 02:22 AM
arabsdesign arabsdesign is offline
 
Join Date: Dec 2004
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and about vb 3.8.5

r ican used this or no

if no how iget this itry search and not see any thing
Reply With Quote
  #19  
Old 06-15-2010, 06:27 AM
neetusn neetusn is offline
 
Join Date: Dec 2009
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have got punbb and passwords saved are in SHA1 format and want to migrate it in to vbulletin but i am also facing password migration issue. i tried you plugin am getting file not found error for controller.php as i have tried path ./phpbbAuth/controller.php and ./contoller.php . I have copied ipdAuth inside the install folder.
Reply With Quote
  #20  
Old 06-25-2010, 08:59 AM
neetusn neetusn is offline
 
Join Date: Dec 2009
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have used this plugin for punbb but Imported users and Members are not able to login , getting wrong user id password error
Reply With Quote
  #21  
Old 07-09-2010, 04:06 PM
viarun viarun is offline
 
Join Date: Feb 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by neetusn View Post
i have used this plugin for punbb but Imported users and Members are not able to login , getting wrong user id password error
Not surprising, as this module wasn't developed for punbb

The module works fine for IPB, and you can see that others ported the module for phpbb.

To make it function for punbb, someone would have to port the code to work in that environment.
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 08:34 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.09846 seconds
  • Memory Usage 2,338KB
  • Queries Executed 26 (?)
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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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