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

Reply
 
Thread Tools
MediaWiki/vBulletin Single Sign-On Details »»
MediaWiki/vBulletin Single Sign-On
Version: 2.2.0, by NoeJeko NoeJeko is offline
Developer Last Online: Apr 2011 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.7.x Rating:
Released: 09-17-2008 Last Update: 05-01-2009 Installs: 112
Uses Plugins
Additional Files  
No support by the author.

Overview:
This hack provides single sign-on capability for MediaWiki using your vBulletin users. You must ensure your cookie path in Admin CP is set to '/' for this to work. Also, I have not tested this if your wiki and your forums are on different subdomains - but as long as your have your cookie domain set properly it *should* work. This is not a user bridge - it is a complete single sign-on using your vBulletin user repository.

The install process has been extremely simplified in version 2.x of this product. You only have to edit LocalSettings.php, import a product, and change a setting in your Admin Control Panel. It's been completely packaged as a vBulletin product - unlike the previous hacked up version, heh. I didn't originally plan to release this so I designed it so it worked - not so it could be redistributed. I searched high and low for a functional MediaWiki bridge - almost bought NuHIT's product, and then realized it had been abandoned for over a year.

This hack no longer requires an edit to class_core.php.

I'll do my best to support it, but I can make no promises.

This thread is for discussion of this mod on vB 3.7.x. For vB 3.8.x, please use the MediaWiki/vBulletin Single Sign-On 3.8 thread

Demo of plugin in action: MyMMOGames - Multiplayer Gaming and Media Community

Also, if you use memcached - ensure you do not cache sessions. If you do, restart it at least once a week. If you don't, you'll end up with invalid session errors out of MediaWiki.

Requirements:
MediaWiki Version: 1.11.0-1.14.0
vBulletin Version: 3.6.9-3.8.2

Features:
- Provides single sign on capability between vBulletin and Mediawiki. vBulletin user repository is used
- Configurable sysop/bureaucrat groups
- Configurable disallowed user groups
- Configurable "Who's Online" display
- Counts users viewing wiki in vBulletin's "Who's Online"

Installation/Upgrade:
Please read the included "readme.txt" file in the "docs (do not upload)" folder.

Options:
Admin Control Panel->vBulletin Options->MMOG Wiki Options

Change Log:
1.0.0.0 - Sep 18, 2008
- Initial Release

1.0.3.0 - Sep 29, 2008
- Bugfix: Incorrect redirects for login/logout

2.0.0.0 - Sep 30, 2008
- Feature: Streamlined installation procedure
- Feature: Wiki path set in ACP
- Bugfix: Forum paths no longer hardcoded

2.1.0 - Oct 4, 2008
- Feature: ACP option to use MediaWiki Short URLs
- Feature: ACP option to set sysop groups
- Feature: ACP option to set bureaucrat groups
- Feature: ACP option to disallow login to certain groups
- Feature: ACP option to change WOL display text

2.2.0 - May 1, 2005
- Bugfix: Users are not logged out when logging out of the forum
- Bugfix: No longer requires modification to class_core.php
- Feature: Mediawiki 1.13.0+ supported (verified on 1.14.0 also)

If you like it, please click "mark as installed" The more people that use this, the more time I will make to try and support/update it.

Been pulling your hair out looking for this as long as I have? Nominate it for Mod of the Month =]

AuthPlugin was inspired by and modified from this existing MediaWiki Extension:

http://www.mediawiki.org/wiki/Extension:QISSingleSignOn

Show Your Support

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

Comments
  #202  
Old 12-23-2008, 04:14 PM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

User mangling token has been fixed in a previous post... in fact, you dont need to make thos edits to class_core.php.

https://vborg.vbsupport.ru/showpost....&postcount=143
Reply With Quote
  #203  
Old 12-23-2008, 08:42 PM
BRotondi BRotondi is offline
 
Join Date: Sep 2008
Location: Zurich
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel View Post
For those who can't logout from the wiki, make sure you add that line LocalSettings.php as instructed

$wgGroupPermissions['*']['createaccount'] = false;
no effect... Still not working. Bruno
Reply With Quote
  #204  
Old 12-24-2008, 12:09 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hrm, I must have missed that. That seems to work.
Reply With Quote
  #205  
Old 12-24-2008, 12:25 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have to logout two times, either twice from the wiki or once from the forum and again from the wiki to be truly logged out from the wiki. Not a big deal for my forum, but good to know in any case.

Quote:
Originally Posted by Lionel View Post
For those who can't logout from the wiki, make sure you add that line LocalSettings.php as instructed

$wgGroupPermissions['*']['createaccount'] = false;
The instructions say that's to prevent users from registering on the wiki instead of the forum.
Reply With Quote
  #206  
Old 12-25-2008, 05:13 AM
kapoor22 kapoor22 is offline
 
Join Date: Jan 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dexter_kcd View Post
The specs above say it was tested on 3.6.9, and I don't think there was anything significantly changed in the user authorization between 3.6.8 and 3.6.9. I would speculate that it would work for you.

Dexter...
Thanks for your input Dexter. I gathered the courage to install the wiki with this SSO hack.

NoeJeko,

Thank for the excellent plug-in. Here is my story -

I was able to install and make it to work on vb v3.6.8 with MediaWiki v1.12.0, however, the following 4 lines of errror message continues to show up on all th pages of MediaWiki -

__________________________________________
Notice: Use of undefined constant VB_SYSTEM_PATH - assumed 'VB_SYSTEM_PATH' in $wikihome/LocalSettings.php on line 26
Notice: Constant CWD already defined in $forumhome/global.php on line 16
Notice: Undefined index: HTTPS in $forumhome/includes/class_core.php on line 1594
Notice: Undefined index: HTTPS in $forumhome/includes/class_core.php on line 1594
Notice: Undefined index: HTTP_REFERER in $forumhome/includes/class_core.php on line 1621
__________________________________________
For the sake of privacy I have modified the absolute paths with the env varibales $forumhome and $wikihome
__________________________________________


The cookie appear to be recognized after the forum user has logged in the forum. But the user is not able to directly login from MediaWiki. If you would like, I could PM you the link to the wiki on the site. You help is very much appreciated.

Thanks again!
Reply With Quote
  #207  
Old 12-25-2008, 02:20 PM
kapoor22 kapoor22 is offline
 
Join Date: Jan 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kapoor22 View Post
Thanks for your input Dexter. I gathered the courage to install the wiki with this SSO hack.

NoeJeko,

Thank for the excellent plug-in. Here is my story -

I was able to install and make it to work on vb v3.6.8 with MediaWiki v1.12.0, however, the following 4 lines of errror message continues to show up on all th pages of MediaWiki -

__________________________________________
Notice: Use of undefined constant VB_SYSTEM_PATH - assumed 'VB_SYSTEM_PATH' in $wikihome/LocalSettings.php on line 26
Notice: Constant CWD already defined in $forumhome/global.php on line 16
Notice: Undefined index: HTTPS in $forumhome/includes/class_core.php on line 1594
Notice: Undefined index: HTTPS in $forumhome/includes/class_core.php on line 1594
Notice: Undefined index: HTTP_REFERER in $forumhome/includes/class_core.php on line 1621
__________________________________________
For the sake of privacy I have modified the absolute paths with the env varibales $forumhome and $wikihome
__________________________________________


The cookie appear to be recognized after the forum user has logged in the forum. But the user is not able to directly login from MediaWiki. If you would like, I could PM you the link to the wiki on the site. You help is very much appreciated.

Thanks again!
I modified error_reporting in php.ini file to get ride of the error notifications showing up on the wiki page -

error_reporting = E_ALL & ~E_NOTICE

But the wiki login redirection back to wiki page is still not working. I could not find 'create account' link which will take the new user to vBulletin forum registration page.

Your input is very much appreciated.

Thanks!
Reply With Quote
  #208  
Old 12-25-2008, 02:21 PM
kapoor22 kapoor22 is offline
 
Join Date: Jan 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BTW, I initially tried this plug-in with MediaWiki v1.13.3 but that attempt was not successful. The I tried with Mediawiki v1.12.0 and it works like a charm, other than the 'log-in redirection' issue and 'create account' redirection to forum registration page. Still trying to resolve these issues in test environment.

.
Reply With Quote
  #209  
Old 12-25-2008, 05:26 PM
kapoor22 kapoor22 is offline
 
Join Date: Jan 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is one possible solution which seem to work for me to fix the two issues I reported earlier-

Open $wikihome/includes/templates/Userlogin.php and hard code the complete URL of the website as shown below for the SSO logon and for lost password page. Somehow [$bburl] is not providing the complete URL, not sure why.

__________________________________________________ ________________
<form name="userlogin" method="post" action="http://$COMPLETE_WEBSITE_URL/forum/login.php?url=/wiki/index.php/Main_Page">

<input type='submit' name="wpLoginattempt" id="wpLoginattempt" tabindex="5" value="<?php $this->msg('login') ?>" />
<br /><a href="http://$COMPLETE_WEBSITE_URL/forum/login.php?do=lostpw">Forgot password?</a>
__________________________________________________ ________________

That's it. Thanks NoeJeko, for an excellent plug-in. This will make my 35000 users happy.

.
Reply With Quote
  #210  
Old 12-25-2008, 09:43 PM
NoeJeko NoeJeko is offline
 
Join Date: Sep 2007
Location: Silicon Valley, CA
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey guys - sorry for not replying sooner - I've been in Germany and for some reason I was not receiving notifications from this thread. I'll do my best to research these issues and provide a fix.
Reply With Quote
  #211  
Old 12-25-2008, 09:58 PM
SARA75 SARA75 is offline
 
Join Date: Mar 2006
Location: Turin - Italy
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by obsidian View Post
- Install media Wiki
- Edit the Localsettings file with

define( VB_SYSTEM_PATH, '/var/www/html/forum' );
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
[S]$wgGroupPermissions['*']['createaccount'] = false;[/S]

- Set the VB path in the localsettings file and then uploaded it.
- Edited the AuthPlugin_vBSSO.php file from:
$wgHooks[AutoAuthenticate ][] = 'vBSSOAutoAuth';
to
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
- uploaded the files in the upload directory
Quote:
Originally Posted by Jaxel View Post
In wiki/includes/User.php find:
PHP Code:
define'EDIT_TOKEN_SUFFIX''+\\' ); 
Replace with:
PHP Code:
define'EDIT_TOKEN_SUFFIX''+#+' ); 
Following these steps but changing
$wgGroupPermissions['*']['createaccount'] = true;
to
$wgGroupPermissions['*']['createaccount'] = false;
in wiki/includes/DefaultSettings.php (I don't know why, but on LocalSettings doesn't works for me)

I get it finally works correctly
MediaWiki 1.13.3
VB 3.7.4PL1

Thanks :up:
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 10:55 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.04700 seconds
  • Memory Usage 2,331KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete