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)

NoeJeko 10-06-2008 02:43 AM

Please follow the setup instructions for MediaWiki. After you have completed these, you should see LocalSettings.php.

KingPin6 10-06-2008 11:00 AM

thank you for your answer. They are on different domains actually, forum is on a abc.org and wiki is on abc.info, so the tld is different,

NoeJeko 10-06-2008 01:16 PM

This will not work for different domains as cookies aren't designed to be read across domains - just within a single domain.

daFish 10-06-2008 01:23 PM

Quote:

Originally Posted by NoeJeko (Post 1638571)
This will not work for different domains as cookies aren't designed to be read across domains - just within a single domain.

You're correct. However, IIRC the Mediawiki-Extension CentralAuth uses some kind of mechanism to tunnel cookies to make exactly this possible.

NoeJeko 10-06-2008 01:33 PM

Sorry, that is outside the scope of this product.

daFish 10-06-2008 04:22 PM

Quote:

Originally Posted by NoeJeko (Post 1638580)
Sorry, that is outside the scope of this product.

I didn't meant to completly integrate this plugin with CentralAuth but to get inspired by their methods of cross-domain-cookies which would be a great plus for sites who are running forum and wiki under their own domains. :)

NoeJeko 10-06-2008 04:27 PM

Quote:

Originally Posted by daFish (Post 1638714)
I didn't meant to completly integrate this plugin with CentralAuth but to get inspired by their methods of cross-domain-cookies which would be a great plus for sites who are running forum and wiki under their own domains. :)

At my job (not MyMMOGames), we use SAML tokens for cross-domain authentication. It can be done; I just do not have the time to devote to it for a community project like this for which I receive no compensation, heh.

KingPin6 10-07-2008 12:47 AM

ok changed to use a subdomain, same issue :( one thing (dunno if it makes a diff) is that wiki is not part of the forums folder, its set outside the forums folder, that ok?

getting mixed reports some people say it does allow them to login. will check further.

NoeJeko 10-07-2008 04:44 AM

Please check your cookie settings in vBulletin - make sure the cookie domain is set to ".domain.com".

KingPin6 10-07-2008 10:25 AM

thank you for your continued help. I reset it to that, now im getting somewhat farther, now on top it says
Code:

* <myip>* Talk for this IP* Log in* Log out
it doesnt change to my username, I have tried ctrl F5 to refresh with no change. thank you.

NoeJeko 10-07-2008 12:23 PM

Did you configure the admin control panel settings for disallowed usergroups/admin usergroups? Could you possibly paste (or PM) the values you have in the ACP settings here?

GriZzm0 10-08-2008 04:56 PM

Quote:

Originally Posted by KingPin6 (Post 1638234)
the system seems to work as far as sending me to me VB for logging in but when I get back to the wiki it seems to not have me logged in, I have tried multiple times to login. not sure why its not working. any ideas/hints welcome.

Linux, vb 3.7.3, MW 1.13

(not on my main forums, rather on a new forum im working on)

I had the same problem. As the first post says "Mediawiki version: 1.12.0+" I assumed that 1.13.* would work, but apparently it doesn't. Downgraded to 1.12.0 and it works like a charm. ;)

NoeJeko 10-08-2008 05:02 PM

That's interesting; I'll set up a MW 1.13 and try to test this.

GriZzm0 10-08-2008 06:03 PM

Quote:

Originally Posted by NoeJeko (Post 1640461)
That's interesting; I'll set up a MW 1.13 and try to test this.

Could you upload your monobook files somewhere? Just to see exactly how you've done it. ;)

all4jah 10-08-2008 08:13 PM

I get this error after installing and trying to login on my wiki page:

Quote:

Warning: require_once(/var/www/html/forum/global.php) [function.require-once]: failed to open stream: No such file or directory in /homepages/5/d100789014/htdocs/wiki/includes/AuthPlugin_vBSSO.php on line 254

Fatal error: require_once() [function.require]: Failed opening required '/var/www/html/forum/global.php' (include_path='/homepages/5/d100789014/htdocs/wiki:/homepages/5/d100789014/htdocs/wiki/includes:/homepages/5/d100789014/htdocs/wiki/languages:.:/usr/lib/php5') in /homepages/5/d100789014/htdocs/wiki/includes/AuthPlugin_vBSSO.php on line 254
Sorry, I'm new to this. What exactly does that mean?

GriZzm0 10-08-2008 09:30 PM

Quote:

Originally Posted by all4jah (Post 1640613)
I get this error after installing and trying to login on my wiki page:



Sorry, I'm new to this. What exactly does that mean?

If you read the readme file it tells you to change '/var/www/html/forum' to the path where you forum is located.


Edit:
@ NoeJeko

After some playing around with the monobook theme I managed to get it to "mimic" my vBulletin theme almot flawlessly in both firefox and opera but not IE6. Realized you had the same problem if you haven't noticed already. ;9 The left sidebar does not position correctly. I've tried to add "clear: left;" at several elements without any luck. I'll post another post if I find a solution. ;)

Jaxel 10-09-2008 02:51 AM

First I wanna say to you Joe (is that your name? NekoJoe?), I ABSOLUTELY APPRECIATE your work on this product! I had been using vBWikiStandard for a while now, but I was getting tired of the lack of support and constant problems with that script. So I decided to switch over to your bridge. I also decided to take the oppurtunity to upgrade to the newest version of MediaWiki...

Unfortunately, I didn't read the last page of comments (my fault!), and I missed that this mod is not yet compatible with MW 1.13... oops. I really dont want to go through the trouble of downgrading, only to upgrade again, as for some reason, on my server, the upgrade process was a lot of work. So I know its my fault, but I'm asking you to please upgrade this script for MW 1.13 as soon as possible. Hell, if all you can do is a temporary fix, that is good enough for me until you have more time on your hands!

Once again, thank you!

shikareez 10-09-2008 07:16 AM

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.

Jaxel 10-09-2008 02:25 PM

Sweet! Thanks friend!

Jaxel 10-10-2008 06:37 AM

For anyone that has been asking about vBulletin Skins...

https://vborg.vbsupport.ru/showthread.php?t=193244

emath 10-12-2008 12:36 AM

i get :
Quote:

Unable to add cookies, header already sent.
File: /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/LocalSettings.php
Line: 1
when i trying to access my wiki after installing the mode and did all right...

http://www.math-pl.co.il/maagar

emath 10-12-2008 12:58 AM

nvm..

BRotondi 10-12-2008 07:47 PM

Thanks for the new version and to all debuggers/helpers!

... nice that there ist such a project here :)

Bruno

NoeJeko 10-16-2008 12:46 AM

I'm still looking to address the MW 1.13 issues ... lack of time is catching up to me. This is not abandoned and a fix will be posted; I just cannot guarantee when.

Veridiac 10-16-2008 03:15 PM

I discovered the reason (or at least one reason) that 1.13 doesn't work - the hook used to authenticate from a session (AutoAthenticate) was removed and changed to a new one that also requires a result

The new hook is UserLoadFromSession http://www.mediawiki.org/wiki/Manual...oadFromSession

I'm going to try changing it myself to see if thats all it is *crosses fingers*

Veridiac 10-16-2008 06:02 PM

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

BRotondi 10-16-2008 07:57 PM

ey wow! Great Work!! Thanks in the name of the vb/Wiki-Community :up:
(even I cannot test it myself, since still 1.9)

Bruno

carrlos 10-17-2008 03:03 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.

Thanks a million shikareez!! That did the trick!!

From this point on I solemnly swear to read all posts on all pages before installing any add-on!! I actually had 1.12 installed then upgraded before installing this!!! :D

Edit:
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

GriZzm0 10-17-2008 10:01 AM

Quote:

Originally Posted by carrlos (Post 1646834)
Thanks a million shikareez!! That did the trick!!

From this point on I solemnly swear to read all posts on all pages before installing any add-on!! I actually had 1.12 installed then upgraded before installing this!!! :D

Edit:
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

It's not like you'll download the "real" opensearch_desc.php. Your browser asks if you want to download it as the php script change the content header to xml as the output is an xml file.

carrlos 10-17-2008 01:18 PM

Quote:

Originally Posted by GriZzm0 (Post 1646931)
It's not like you'll download the "real" opensearch_desc.php. Your browser asks if you want to download it as the php script change the content header to xml as the output is an xml file.

So how do I remove the link or change the link to go to my wiki instead???

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 04: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.01553 seconds
  • Memory Usage 1,842KB
  • 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
  • (5)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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