Bridged phbb a dozen times b4 suddenly not working?!?! Bridged phbb a dozen times b4 suddenly not working?!?!
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Bridged phbb a dozen times b4 suddenly not working?!?!

Started by MetalHellsAngel, July 08, 2005, 03:36:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MetalHellsAngel

Ok I have bridged coppermine with phpbb dozens of times in the past and never had any problem with it I even wrote up an integration for it with mxbb portal . Now all the sudden I'm getting this login error. I'm sure your familer with Not being logged in error from the look of the posts in this forum...lol ;). Well Let's see now Ok..

Here's the setup
database: the same I'v checked it three times

the bridge has the correct information in it I acutlly copied and pasted the the cookie name from my phpbb acp into the bridge file so I know that good. I also am positive that the db prefix is correct for phpbb.

Here's the Bridge file:
// database configuration
define('PHPBB_DB_NAME', 'metal'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', '******'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', '******'); // The password to use to connect to the database

// The web path to your phpBB directory
// If your URL to your board is for example 'http://yoursite_name.com/phpBB2/',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/metal/Forums/');
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', TRUE);
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies

// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'metal_phpbb_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'sessions'); // The session table
define('PHPBB_GROUP_TABLE', 'groups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'user_group'); // The group/user table


Here's The Link to My Site and the testing Account info

Test User: Testing
Test Pass: Testing

Nibbler

The test account is Tester, not Testing.

Your forum is not setting proper cookies, just using sessions. You need to be setting a proper cookie (with phpbb2mysql_) for Coppermine to be able to recognise you.

MetalHellsAngel

Oh sorry its

Username: Tester
Pass: Tester

So I guess your saying I need to talk to the phpbb people to figure out the whoo cookie there right? Or is there something else I can do?

Thanks,
Angel

MetalHellsAngel

I posted the issue in the phpbb forums this is the answer I recieve. Would it be possible that using the 1.4 cpg would fix this I noticed in a different post your using a new bridge.

Quotephpbb uses sessions, because people are becooming worry of letting cookies be stored onto there pc, thus causing problems. These problems consist of errors on forms when cookies get disabled. Also sessions are faster because it just stores it on to the server which can handle a bigger load.

Thanks,
Angel

Nibbler

The phpbb coppermine bridge does not support authentication via sessions, either in 1.3.x or 1.4.x

MetalHellsAngel

Here is the info in my cookie from my temp internet files does this help at all, because I see that both my site and cpg have input information into the cookie.

1c2f8ba665236c223a7c90973761a0a6
f5e846228640e2b23def32da8039f284
metalhell.servemp3.com/
1024
4091548672
29724393
2732184208
29721577
*
cpg140_data
YTozOntzOjI6IklEIjtzOjMyOiI2YmVlMzMxNmNhYjgyYTg2ZGRhZDZkZTNkZGViYjc2MyI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjt9
metalhell.servemp3.com/
1024
151888256
29727614
284279616
29721579
*

MetalHellsAngel

I noticed, after doing an uninstall and reinstall that when I first bridge coppermine and phpbb that I'm logged in then if I close the browser window then go back then I'm not logged in so what up with that??


t.y.i.a.,
Angel

Joachim Müller

OK, this thread is more complicated than it should be, let me summarize the facts:
  • The phpbb people say the prefer session-based authentification over cookie based authentification. That's fine for them and their app.
  • Coppermine needs to be able to find out if a user is authenticated. Coppermine does this by reading a cookie, it does not use sessions
  • You need to set up your phpbb install to use cookies instead of sessions, so coppermine is able to read this cookie
  • I'm no phpbb expert, but I'm convinced that there's a switch in phpbb's configuration that allows you to set your prefered authentification method (sessions vs. cookies). Although it may be set to "sessions" by default, and although the phpbb people might have told you that they prefer sessions as well, you have to set it to "cookies" in order to enable bridging between coppermine and phpbb. Everything else is irrelevant, there's no need to quote the phpbb people nor post the temporary internet files