Welcome, Guest. Please Login or Register.
July 14, 2025, 04:34:31 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Login using userid and password from other database « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Login using userid and password from other database  (Read 1332 times)
eteune
Jr. Member
**
Posts: 64


Estoy un tlacuache!

WWW
Login using userid and password from other database
« on: August 28, 2003, 02:58:00 PM »
Reply with quote

YaBB SE Version: 1.5.4
PHP Version: 4.1.1
MySQL Version: 4.0.x
Server Platform: Windows
Link to Forum:

Problem Description:
Is it possible to use the login and password information from a different mySQL database sitting on the same machine as my YaBBSE install for login to YaBBSE ?
I have a portal already in place and the users are complaining that they have to login to the portal then login to the BB. So I need to combine them.

As a second option, I'm sure it has been covered but how do I use YaBBSE's login scheme for a larger portal of which YaBBSE is a part?

Any suggestions or pointers to exisiting threads/answers greatly appreciated.

Ed

Logged

...sin otra luz ni guía
sino la que en el corazón ardía.
(San Juan de la Cruz)
eteune
Jr. Member
**
Posts: 64


Estoy un tlacuache!

WWW
Re:Login using userid and password from other database
« Reply #1 on: August 28, 2003, 03:07:13 PM »
Reply with quote

Sorry, here is part of the answer I was looking for already posted:

http://www.yabbse.org/community/index.php?thread=25559

Maybe I could use the same ideas to go the other way and use my exising login scheme for YaBBSE, any ideas?

Ed
Logged

...sin otra luz ni guía
sino la que en el corazón ardía.
(San Juan de la Cruz)
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Login using userid and password from other database
« Reply #2 on: August 28, 2003, 07:31:15 PM »
Reply with quote

What portal are you using?

It's fairly easy to integrate YaBB SE in - I've done it at least 5 times.

-[Unknown]
Logged
eteune
Jr. Member
**
Posts: 64


Estoy un tlacuache!

WWW
Re:Login using userid and password from other database
« Reply #3 on: August 28, 2003, 08:18:12 PM »
Reply with quote

Several actually, mostly written by myself.
In the process of rewriting the ASP version into JSP and also working on a PHP version.
On top of that have another project where one of the project managers likes YaBBSE so well after I demoed it, that he wants to use YaBBSE's login scheme for the entire PHP base site.
So I guess I was just looking for some high level stuff first to explain to the teams and then I will just have to dig down in the code myself to understand it better.
But any pointers are greatly appreciated.

Ed
Logged

...sin otra luz ni guía
sino la que en el corazón ardía.
(San Juan de la Cruz)
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Login using userid and password from other database
« Reply #4 on: August 29, 2003, 08:13:32 PM »
Reply with quote

Well, I'm going to first say that I hate ASP with a passion.  Sorry.

For the PHP, it's actually pretty simple.

You have to connect to the database - which isn't too hard, just look at how index.php does it... and then you read the cookie:
list ($id, $pass) = unserialize(stripslashes($_COOKIE[$cookienameFromSettingsPhp]));

And then you check for the "passwd" column in members, where ID_MEMBER = $id.

Then, you check that $pass against md5_hmac(passwd_in_database, 'ys'). (md5_hmac is in Load.php.)

-[Unknown]
Logged
eteune
Jr. Member
**
Posts: 64


Estoy un tlacuache!

WWW
Re:Login using userid and password from other database
« Reply #5 on: September 02, 2003, 12:54:18 PM »
Reply with quote

No need for apologizing, like I said, I am now rewriting the old ASP stuff into Java/JSP and PHP. Java/JSP because it integrates with our company's product and PHP because I like it.

Thanks for the tip, I will give it a spin shortly.
Logged

...sin otra luz ni guía
sino la que en el corazón ardía.
(San Juan de la Cruz)
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Login using userid and password from other database « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.153 seconds with 21 queries.