Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-24-2010, 06:20 PM
iwpg iwpg is offline
 
Join Date: May 2008
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Reverse Authentication

Hello!

I am having a very difficult time with authentication running on 2 platforms, Vbulletin, and DZOIC Handshakes.

Hoping that someone could come up with a MOD to use dzoic's login credentials (instead of Vbulletin's) based on cookies. Authentication would check dzoic's database, not vbulletin's for proper login.

Example pages:
http://www.financeglobe.com/SocialNet/forum/
http://www.financeglobe.com/SocialNet/

Many thanks,

Mike

--------------- Added [DATE]1264365448[/DATE] at [TIME]1264365448[/TIME] ---------------

I forgot to tell everyone how it is currently running:

The user will login to the dzoic script, and that stores a cookie for the credentials, and loads the login.php for the forum, and logs the user in for vbulletin.

The issue with this is that changing passwords has been a headache, as well as having 2 different login cookies makes it very difficult to manage. At times, the forum will log the user out because a session or cookie expired, while keeping the user logged into dzoic. This makes the user logged into one, but not the other.
Reply With Quote
  #2  
Old 01-26-2010, 11:55 PM
iwpg iwpg is offline
 
Join Date: May 2008
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what I have so far to log in to Vbulletin from an external script. The salt system is not working, not really sure how to put it together. Anyone please?

Code:
function vbulletin_login($values){

$email = $values["username"];
$password = $values["password"];

//Get the url parameters and then sql escape them to prevent sql injections
$userin = mysql_real_escape_string($email);
$passin = mysql_real_escape_string($password);

// Query to pull out the salt value for the given user
$fetchrows = mysql_query("select * from vbuser WHERE username ='$userin'");
$r = @mysql_fetch_array($fetchrows);
$userpass = $r["password"];
$userid = $r["userid"];
$substatus = $r["usergroupid"];
$salt = $r["salt"];
define('COOKIE_SALT', 'LICENSE KEY HERE');		
			
$fetchrowss = mysql_query("select * from vbsession WHERE userid ='$userid'");
$s = @mysql_fetch_array($fetchrowss);
$sessionhash = $s["sessionhash"];
			
setcookie("fnfuserid", $userid, time()+(60*60*24*365), "/", ".financeglobe.com", 1);
setcookie("fnfpassword", md5($password . COOKIE_SALT), time()+(60*60*24*365), "/", ".financeglobe.com", 1);
setcookie("fnfsessionhash", $sessionhash, time()+(60*60*24*365), "/", ".financeglobe.com", 1);

}//vbulletin_login
Reply With Quote
  #3  
Old 02-05-2010, 10:44 PM
iwpg iwpg is offline
 
Join Date: May 2008
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anybody please?
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 09:35 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.03686 seconds
  • Memory Usage 2,181KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete