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
  #282  
Old 02-23-2009, 12:46 PM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jaxel View Post
Getting this to work with MW 1.13.4 is EASY... You DONT need to edit class_core.php...

1. Install Media Wiki, following the standard install instructions...

2. Install this mod, following the standard instructions...

3. Open AuthPlugin_vBSSO.php. FIND: "AutoAuthenticate" and replace with "UserLoadFromSession".

4. Open wiki/includes/User.php FIND:
PHP Code:
define'EDIT_TOKEN_SUFFIX''+\\' ); 
Replace with:
PHP Code:
define'EDIT_TOKEN_SUFFIX''+#+' ); 
DONE. EASY. Step 4 fixes missing token problems, as well as login/logout issues that people keep claiming... If they simply followed step 4, instead of updating class_core.php, they wouldnt have these problems. I wish NekoJoe would upload this mod to explain these fixes.

http://www.8wayrun.com/wiki/Special:Version
Just upgraded to version 1.14... works great.
Reply With Quote
  #283  
Old 02-23-2009, 11:20 PM
rexford.kim rexford.kim is offline
 
Join Date: Oct 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting slow MediaWiki 1.13.4 performance after installing Single Sign On 2.1.0 with vBulletin 3.8.1 installed. When running MediaWiki 1.13.4 by itself without the Single Sign On 2.1.0 it was running fine. However after installing the Single Sign On 2.1.0, the MediaWiki is very slow to load and any link I click on that is stored locally is very slow to load at least 30 seconds to load.

I changed the memory limit.

# If PHP's memory limit is very low, some operations may fail.
ini_set( 'memory_limit', '512M' );

Apache Logs message:

[Mon Feb 23 17:15:41 2009] [error] [client 10.15.15.41] PHP Notice: Constant CWD already defined in /srv/www/htdocs/forum/global.php on line 16, referer: https://<WEBSITE>.com/forum/wiki/ind...ge&action=edit


[Mon Feb 23 17:16:35 2009] [notice] child pid 19984 exit signal Segmentation fault (11)

[Mon Feb 23 17:16:35 2009] [notice] child pid 19986 exit signal Segmentation fault (11)
Allowed memory size of 536870912 bytes exhausted (tried to allocate 134862061 bytes)

When I comment out the line to run the Single Sign On 2.1.0 speed on the MediaWiki returns to normal.

Does anybody have any suggestions, workarounds, or solutions?
Reply With Quote
  #284  
Old 02-23-2009, 11:54 PM
rexford.kim rexford.kim is offline
 
Join Date: Oct 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dexter_kcd View Post
One more thing to throw onto your plate....

I was speaking with the server administrator at my webhost, and he mentioned that this mod seems to be generating a PHP error every time a user access a page on the wiki:




Apparently the server PHP log is filled with thousands of those. He believes it has something to do with how the VB_SYSTEM_PATH constant is defined.

Dexter...
I am getting the same error message slow MediaWiki 1.13.4 performance after installing Single Sign On 2.1.0 and with vBulletin 3.8.1 installed.

[Mon Feb 23 17:46:50 2009] [error] [client 10.15.15.41] PHP Notice: Use of undefined constant VB_SYSTEM_PATH - assumed 'VB_SYSTEM_PATH' in /srv/www/htdocs/forum/wiki/LocalSettings.php on line 28
Reply With Quote
  #285  
Old 02-24-2009, 05:21 PM
Radek125 Radek125 is offline
 
Join Date: May 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Radek125 View Post
I am having this exact same issue. My users are randomly getting this error, including my main admin account, all others work fine. I've tried deleting the user's manualy in the wiki db, and it APPEARS to work, but only works the very first time you load the wiki, clicking on any other page after will make the error pop up again.
Anyone that can help here? I've reinstalled the user table, gone through the code, every page on this thread and cannot find the answer.


A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
INSERT INTO `user` (user_id,user_name,user_password,user_newpassword, user_newpass_time,user_email,user_email_authentica ted,user_real_name,user_options,user_token,user_re gistration,user_editcount) VALUES (NULL,'radek-SiN','','','20090224191517','',NULL,'','quickbar=1 \nunderline=2\ncols=80\nrows=25\nsearchlimit=20\nc ontextlines=5\ncontextchars=50\ndisablesuggest=0\n ajaxsearch=0\nskin=\nmath=1\nusenewrc=0\nrcdays=7\ nrclimit=50\nwllimit=250\nhideminor=0\nhighlightbr oken=1\nstubthreshold=0\npreviewontop=1\npreviewon first=0\neditsection=1\neditsectiononrightclick=0\ neditondblclick=0\neditwidth=0\nshowtoc=1\nshowtoo lbar=1\nminordefault=0\ndate=default\nimagesize=2\ nthumbsize=2\nrememberpassword=0\nenotifwatchlistp ages=0\nenotifusertalkpages=1\nenotifminoredits=0\ nenotifrevealaddr=0\nshownumberswatching=1\nfancys ig=0\nexternaleditor=0\nexternaldiff=0\nshowjumpli nks=1\nnumberheadings=0\nuselivepreview=0\nwatchli stdays=3\nextendwatchlist=0\nwatchlisthideminor=0\ nwatchlisthidebots=0\nwatchlisthideown=0\nwatchcre ations=0\nwatchdefault=0\nwatchmoves=0\nwatchdelet ion=0\nvariant=en\nlanguage=en\nsearchNs0=1','ab56 1306e81ea646114f994a7d863120c','20090224191517','0 ')
from within function "User::addToDatabase". MySQL returned error "1062: Duplicate entry 'radek-SiN' for key 2 (db1)".
Reply With Quote
  #286  
Old 02-27-2009, 02:30 PM
BRotondi BRotondi is offline
 
Join Date: Sep 2008
Location: Zurich
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Radek125: Sorry, no clue...

Quote:
Originally Posted by Jaxel View Post
Just upgraded to version 1.14... works great.
I upgradet also to 1.14 and 3.8.1, but still the same issue: Logout does not logout Wiki and login via Wiki is not processed in vB.

Why does it work on one half of the users, but not on the others?

Really a nice Plugin, ... would be nice if it works 100%...
Bruno
Reply With Quote
  #287  
Old 03-01-2009, 07:39 PM
System69 System69 is offline
 
Join Date: Sep 2008
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has any one a working isntallation with vB 3.8.1 and MediaWiki v1.14.0?

What was to do to get it to work?
Reply With Quote
  #288  
Old 03-01-2009, 08:55 PM
System69 System69 is offline
 
Join Date: Sep 2008
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it working so far, but if i logg me in in Wiki, it seemd to be all ok, forum tell's me that the login is OK, it goes back to the wiki, but i'm still not loged on. any ideas?
Reply With Quote
  #289  
Old 03-01-2009, 09:11 PM
dutchbb dutchbb is offline
 
Join Date: Nov 2003
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by System69 View Post
I got it working so far, but if i logg me in in Wiki, it seemd to be all ok, forum tell's me that the login is OK, it goes back to the wiki, but i'm still not loged on. any ideas?
I searched for hours to solve that bug, here is the answer: https://vborg.vbsupport.ru/showpost....&postcount=246

Coder should update the first post.
Reply With Quote
  #290  
Old 03-02-2009, 01:20 PM
Praxis Praxis is offline
 
Join Date: Jun 2007
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is anyone running this with mod security in a chroot environment? If you are how is it working and did you do anything special? I have it installed but it is running terrible and only works properly when we turn off the VB authorization. When we use VB auth it will eat memory until it crashes, reload the script over and over again with CPU usage going to 100% on both processors and it takes a minute or two to show each page. Once we use wiki auth again it works like a charm.
Reply With Quote
  #291  
Old 03-02-2009, 03:57 PM
BRotondi BRotondi is offline
 
Join Date: Sep 2008
Location: Zurich
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perhaps someone is interested in these informations:
- Installation Instructions + german adds: mmog_wiki_v2.1.0.doc
- The options menu of mmog 2.1: (high resolution)

Greetings, Bruno
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 06:56 AM.


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.05403 seconds
  • Memory Usage 2,330KB
  • 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
  • (5)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
  • (1)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