Login not working after bridge w. phpBB Login not working after bridge w. phpBB
 

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

Login not working after bridge w. phpBB

Started by Draxxx007, June 28, 2005, 01:16:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Draxxx007

Hi!
Sorry I am new, I'm having some problems below,
I'd really appreciate any help with this, as I'm really stuck..

URL: http://www.zionliberationfront.com/RelaySystem
Version of phpBB: 2.0.14
Version of PHP: 4.3.11
Which database server and version: MySQL v4.0.24
Did someone install this for you/who: I did, via Fantasico
Have you searched for your problem: yes
If so, what terms did you try: bridge, coppermine login errors
State the nature of your problem: I installed phpBB and coppermine, and bridged them using the below script ammendments, my problem is that when I hit login on coppermine, I get re-routed to the phpbb login, and then when I try to login the script returns to the phpBB index, when I jump across to the gallery, my user is not logged in. I therefore cannot access admin on the coppermine gallery.
Do you have a test account for us: yes, U:test P:test


[b]phpbb.inc.php[/b]

// database configuration
define('PHPBB_DB_NAME', 'xxxx'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'xxxx'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', 'xxxx'); // 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', '/RelaySystem/');
// 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', 'ZLF_Forum'); // The prefix used for board cookies



[b]init.inc.php[/b]

define('COPPERMINE_VERSION', '1.3.2');
// User database integration
// Uncomment the applicable line if you want to use it
define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
// define('UDB_INTEGRATION', 'vbulletin23');
// define('UDB_INTEGRATION', 'vbulletin30');
// define('UDB_INTEGRATION', 'yabbse');
// define('UDB_INTEGRATION', 'smf');
// define('UDB_INTEGRATION', 'woltlab21');
// define('UDB_INTEGRATION', 'punbb');
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');
// Start output buffering
ob_start();
// Report all errors except E_NOTICE
// This is the default value set in php.ini
// error_reporting (E_ALL ^ E_NOTICE);
error_reporting(E_ALL);



[b]cpg_redir.php[/b]

<?php
if (!$_SERVER['HTTP_HOST']) {
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/RelaySystem';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>



It may be a cookie thing, as I wasn't 100% sure on the cookie details in phpbb.inc.php.
From phpbb config;
cookie domain = zlf.com
cookie name = ZLF_Forum
cookie path = /phpBB2/

Since I was unable to login to the coppermine gallery, I have been unable to syncronize groups between phpBB and coppermine.

Thanks in Advance! Smile
Best Wishes,
Draxxx007

kegobeer

Well,

$cpg_path='/RelaySystem';

isn't the location of your Coppermine gallery.

$cpg_path='/RSI_Captures';

is where Coppermine is.

Your test user doesn't work.

QuoteYou have specified an incorrect or inactive username, or an invalid password.

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Draxxx007

Thanks kegobeer!!!

Made the change as you suggested, and fixed the test login.

The change now sends me back to the gallery after login, which is sweet, but the login on the phpBB doesn't carry over to the coppermine gallery.. Any suggestions?

Thanks Mate!
D007

kegobeer

Link before logging into forum:

http://www.zionliberationfront.com/RelaySystem/

Link after logging into forum:

http://zionliberationfront.com/RelaySystem/index.php?sid=b38aee54f7cd268f3dc93aaa1112710b

Notice the missing www.?  That means a different cookie is set.  Without knowing the phpbb code, I'd look in the login.php file and see why there's no www.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Draxxx007

Thanks again kegobeer..  Does this info help?

This is from phpBB;
cookie domain = zlf.com
cookie name = ZLF_Forum
cookie path = /phpBB2/


phpbb.inc.php
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'ZLF_Forum'); // The prefix used for board cookies


All I can think of is that cookie domain should = zionliberationfront.com...
But above when in states in the phpbb.inc.php what should the cookie prefix be?

Thanks kegobeer! U rock!
Cheers,
D007

kegobeer

You also are having problems with the cookie data.  Why is the cookie domain zlf.com?  If I log into your forum, then remove all of the text after the main url (http://zionliberationfront.com/RelaySystem/), I'm not logged in anymore.

This is a problem with your configuration of phpBB and it's cookies.  I never have a cookie set on my machine when I'm on your forum.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

kegobeer

Search our forum and you may find some phpBB info - otherwise you should check out phpBB's forums for help with your phpBB cookie settings.

[off topic]Tsk, tsk, tsk.  Altering the USAF symbol without consent....  ;)[/off topic]
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Draxxx007

LOL.. 
Thanks for all of your help kegobeer.. Your a true coppermine/php  legend!  ;D
I'll check with phpBB cookie stuff and will see if I turn anything up..

Cheers Mate!
D007

Draxxx007

Hi kegobeer,

Ok, I have fixed the cookie issue (user now remains logged in if session info is removed). I can't find why the www. is missing from the URL.. But thats not really a prob at the moment..
I still can't seem to link the logins. If you login to the forum, and hit the 'Gallery' button to jump to coppermine, the user is not logged in..

Any ideas on that??

Thanks Boss!! :)
D007

kegobeer

Quote from: Draxxx007 on June 28, 2005, 04:07:11 AM
Hi kegobeer,

Ok, I have fixed the cookie issue (user now remains logged in if session info is removed). I can't find why the www. is missing from the URL.. But thats not really a prob at the moment..
I still can't seem to link the logins. If you login to the forum, and hit the 'Gallery' button to jump to coppermine, the user is not logged in..

Any ideas on that??

Thanks Boss!! :)
D007

That is the problem.  There are two cookies being set.  One for www.zionliberationfront.com and one for zionliberationfront.com.  You need to figure out why phpBB sends you to zionliberationfront.com instead of www.zionliberationfront.com when you log in.  Maybe a configuration option somewhere in phpBB?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Draxxx007

kegobeer,
i could kiss your lovely cranium! You were right, it was a config issue on phpbb, which I have fixed.
I cleared the cookies and tried again to login, but it still doesn't recognise me in coppermine.
Mate, sorry to be so persistent.. But you & the help you have provided are invaluable!
Thx
D007

Tranz

phpbb 2.016 came out so you should upgrade it.

kegobeer

There are still two cookies being set, one at www.zion~ont.com (Coppermine) and one at zion~ont.com (phpBB).  (Too long to type, abbreviated with ~)

Plus, your phpBB cookie domain is .zionliberationfront.com.  Remove the leading dot.

Please search for phpbb cookie - use advanced search, show results as messages, sort by most recent.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Nibbler


Draxxx007

Nibbler!!

I could kiss you!!!  That fixed all of my problems... Login now works correctly!!
How simple was that.

Big Kudos to all Coppermine support staff! You Guys frickin' rock!!! :)

Thank You! Thank You! Thank You!!
Wish you all the very best!

Cheers,
D007