vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Force vB login when user logs into your custom auth system (https://vborg.vbsupport.ru/showthread.php?t=119279)

f1vlad 06-20-2006 10:00 PM

Force vB login when user logs into your custom auth system
 
(note this is a follow up to what started this duscussion at https://vborg.vbsupport.ru/showthread.php?t=108559)

My script forces vB login in a following manner:

http://www.brainsights.com/portfolio...ginprocess.gif

[Step #1]
One way synchronize users from my custom built password-protected system into vBulletin. This means that I do not allow any registrations on vB. Users register on my own customized system. Then on first login, vB user is automatically created. On following logins, if user already exists, my script simply updated vB user table off of my user table.

Note #1: this scenario presumes that usernames and passwords on your system and on vB are ideantical.
Note #2: 'salt' for password encryption is not used, i.e. it's an empty string.

[Step #2]
I used vB login script to create somewhat of a hybrid of mine. This script is available for your use at your own risk [script attached]

Basically, you are blindly assigning cookies and session upon successful login.

http://www.brainsights.com/portfolio...3/vbhack02.jpg

Hope this helps to someone, it did help me a great deal as well as my audience. Before, many folks refused to enter username/password twice, not to mention registering twice.

Update: tested with Pro@vbulletin.org on his vBulletin v. 3.5, and concluded that it won't work well with that. Session table requires some more information.

SirSteve 04-27-2007 10:06 PM

Did this ever work out?

f1vlad 04-27-2007 11:48 PM

It did and still is working on my vB 3.0.7. I have worked with a couple of guys who have 3.5 and the change made in authentication process of 3.5 doesn't allow me to force login my way. I hope someone else manages to figure newer versions as I am running some newer forums and would like to have it.


All times are GMT. The time now is 05:36 PM.

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.01080 seconds
  • Memory Usage 1,712KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete