vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Integration with vBulletin - MediaWiki/vBulletin Single Sign-On (https://vborg.vbsupport.ru/showthread.php?t=191186)

Veridiac 10-17-2008 06:06 PM

I think I discovered my problem, I run vbDrupal, and drupal uses "user" php sessions, but mediawiki uses file, and apparently loading vbulletin's core stuff to get the authentication from the cookies will sometimes (but apparently not always...) cause drupal to start a session preventing mediawiki from opening the existing session (containing important edit tokens, etc)

Sooo for now I think I'm going to have to use a regular authentication plugin forcing users to sign in twice :( Nice work though, maybe eventually I'll track down what makes drupal start the session, or try again when I get around to upgrading vbdrupal.

azn_romeo_4u 10-18-2008 12:16 AM

Quote:

Originally Posted by shikareez (Post 1640896)
From MW 1.13+ the "AutoAuthenticate" Hook is renamed to "UserLoadFromSession". So just follow all the instruction and at all, just edit the hook name to "UserLoadFromSession" at near the end of AuthPlugin_vBSSO.php.

Thank you worked perfectly

Pavlus 10-18-2008 01:31 PM

So theres no solution for 1.13 for now? I tried to change this hook, but its not working.

thunder28 10-18-2008 03:45 PM

Hi

i have this problem:
when i will logged in to the wiki, i became this error
Code:

Forbidden
You don't have permission to access /mediawiki/index.php5/login.php on this server.

On the Loginsite i have this:

Code:

Fatal error: Call to undefined function is_member_of() in /is/htdocs/XXXXXXXXXX/XXXXXXXX/mediawiki/includes/AuthPlugin_vBSSO.php on line 258
xxxx is my homepage path.

sorry for my bad englisch.

greetz
thunder28

Slewey 10-23-2008 04:52 PM

Quote:

Originally Posted by shikareez (Post 1640896)
From MW 1.13+ the "AutoAuthenticate" Hook is renamed to "UserLoadFromSession". So just follow all the instruction and at all, just edit the hook name to "UserLoadFromSession" at near the end of AuthPlugin_vBSSO.php.

Had the same problem and this worked great for me! Thanks for sharing

And thanks for the bridge, exactly what I was looking for! Keep up the good work

NoeJeko 10-23-2008 05:06 PM

Hey guys - I'll try to get a version detection built in and automate this based upon version within the next couple of days. Thanks for pointing it out as we're not currently using MW 1.13.

Quote:

Originally Posted by thunder28 (Post 1647729)
Hi

i have this problem:
when i will logged in to the wiki, i became this error
Code:

Forbidden
You don't have permission to access /mediawiki/index.php5/login.php on this server.

On the Loginsite i have this:

Code:

Fatal error: Call to undefined function is_member_of() in /is/htdocs/XXXXXXXXXX/XXXXXXXX/mediawiki/includes/AuthPlugin_vBSSO.php on line 258
xxxx is my homepage path.

sorry for my bad englisch.

greetz
thunder28

It seems like you didn't set one of the directives in the Admin CP properly - or you didn't define VB_SYSTEM_PATH in LocalSettings.php

carrlos 11-01-2008 09:10 PM

Quote:

Originally Posted by carrlos (Post 1646834)
Is the link in Who's Online suppose to go to a download of the opensearch_desc.php file?????

https://vborg.vbsupport.ru/

http://www.androidmodding.com/wiki

Bump!!!!!

figu120 11-01-2008 11:31 PM

thanks

petchat 11-10-2008 08:09 AM

This is excellent, thanks so much!

Digital Jedi 11-12-2008 06:15 PM

Quote:

Originally Posted by Veridiac (Post 1646522)
I think I have it working, in addition to modifying the hook to UserLoadFromSession, and adding &$result to the function prototype I did the following:

Changed the User::newFromName to initialize the $user object itself without replacing it... when it was replaced the calling function appeared to still have the old $user object which was giving an error.

In doing that I first load defaults, then set the name, set mFrom to name, call load, check if the user has a valid ID and if not add to the database, and then continue on.

In addition, I Found that the sysop groups weren't being removed when I removed someone from admin group so I added $user->removeGroup for both before then adding it again (or not) depending on the users vb group.

I'm not totally familiar with mediawiki's authorization process (I just installed it actually) so some of this may be redundant, or worse something could be missing....

At any rate it appears to be working if I find any problems I'll post here, I'm attaching my copy of AuthPlugin_vBSSO.php if anyone wants to use it.


Edit: Not working at this time, something is causing edit tokens (and maybe more) to not be correct during POST requests, still investigating

Seems to have fixed things for me as well.


All times are GMT. The time now is 07:49 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
  • Page Generation 0.01276 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete