Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: phpbb3.0.6 and Coppermine 1.4.25 Bridge - log in circle  (Read 7177 times)

0 Members and 1 Guest are viewing this topic.

eva4art

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
phpbb3.0.6 and Coppermine 1.4.25 Bridge - log in circle
« on: January 03, 2010, 03:19:07 am »

Hi,

I have the same problem as many others before. The login page takes me to the forum, I log in succesfuly and get redirected to the gallery but I am not loged in.
I downloaded and installed a new phpbb3.0.6 and Coppermine 1.4.25.
I uploaded the phpbb3.inc.php file into the coppermine/bridge folder.
I added the extra lines to the bridgemgr.php file.
I did the bridging but got into a login loop.
I red through the corresponding posts and tried different cookie setups, cleared the browser cookies and cache but no luck. Please, help. Here is my info:

Coppermine install: http://eva4art.com/coppermine_gallery
Forum install: http://eva4art.com/phpbb3_forum
Coppermine version: cpg1.4.25
Forum version: phpbb 3.0.6
Test user account: testuser / testing

BridgeManager settings:
Forum URL:  http://eva4art.com/phpbb3_forum
Relative path to your BBS's config file:  ../phpbb3_forum/
Use post-based groups?:  1
Cookie name/prefix: phpbb3_7t4e7

Coppermine config.:
Cookie name: coppermine
Cookie path: /

phpbb3 ACP PHP Variables:
_COOKIE["coppermine_data"]   YTozOntzOjI6IklEIjtzOjMyOiIxOTU0N2QyZTYwZDU4MmQxYTMzOGU3ZDlmYjY2NjY3MiI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjt9
_COOKIE["c4ea56d5301d33d2682ceaf082de003f"]   756982e450ac2968647f26275984394d
_SERVER["HTTP_COOKIE"]   coppermine_data=YTozOntzOjI6IklEIjtzOjMyOiIxOTU0N2QyZTYwZDU4MmQxYTMzOGU3ZDlmYjY2NjY3MiI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjt9; c4ea56d5301d33d2682ceaf082de003f=756982e450ac2968647f26275984394d
_ENV["HTTP_COOKIE"]   coppermine_data=YTozOntzOjI6IklEIjtzOjMyOiIxOTU0N2QyZTYwZDU4MmQxYTMzOGU3ZDlmYjY2NjY3MiI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjt9; c4ea56d5301d33d2682ceaf082de003f=756982e450ac2968647f26275984394d
Logged

eva4art

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: phpbb3.0.6 and Coppermine 1.4.25 Bridge - log in circle
« Reply #1 on: January 03, 2010, 08:42:50 pm »

I kept trying to change cookies, clear my browser cache, read more post and documentation but still couldn't make the bridge work.
I got 40 views on my post but no help.
I give it an other try maybe some of the more experienced guys give me a helping hand.
My settings now:

Coppermine install: http://eva4art.com/coppermine_gallery
Forum install: http://eva4art.com/phpbb3_forum
Coppermine version: cpg1.4.25
Forum version: phpbb 3.0.6
Test user account: testuser / testing

BridgeManager settings:
Forum URL:  http://eva4art.com/phpbb3_forum
Relative path to your BBS's config file:  ../phpbb3_forum/
Use post-based groups?:  0
Cookie name/prefix: eva4art_forum

Coppermine config.:
Cookie name: eva4art_gallery
Cookie path: /


Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: phpbb3.0.6 and Coppermine 1.4.25 Bridge - log in circle
« Reply #2 on: January 03, 2010, 08:57:44 pm »

Currently the bridge is not enabled properly. If a user tries to login from coppermine with the bridge enabled then that users should be re-directed to the logon page of phpbb3, not the coppermine login page as is currently the case. All I can suggest is that you double check your code.

I am not an expert in bridging however and have only used this bridge once. Maybe Nibbler (the designer of this bridge) will be along soon and can give more advice. Please be patient, we are a small team so it sometimes takes days rather than hours for the right person to see a post to respond.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: phpbb3.0.6 and Coppermine 1.4.25 Bridge - log in circle
« Reply #3 on: January 04, 2010, 08:03:54 am »

Make sure that you're not using the phpbb-bridge file that comes with coppermine out of the box, as that bridge file is only meant to take care of coppermine being bridged with phpbb2.x (you failed to post what bridge you're using). For your version of phpbb3, you will need the bridge discussed in [cpg1.4.x]: PHPBB3 bridge. Disable bridging, upload that phpbb3-bridge file to http://eva4art.com/coppermine_gallery/bridge/ if it's not there already, then re-apply the bridge. However, as far as I can see, you already have the needed bridge file.
What I can see though is your inconsistent use of the leading www-subdomain. You have to understand that subdomains are different domains as far as authentification by cookies is concerned: when clicking on the "Login" link on your coppermine gallery at http://eva4art.com/coppermine_gallery/ I'm being sent to http://www.eva4art.com/phpbb3_forum/ucp.php?mode=login&redirect=http%3A%2F%2Feva4art.com%2Fcoppermine_gallery%2F (notice the leading www subdomain!) instead of http://eva4art.com/phpbb3_forum/
As far as I can see you're using session-driven authentification in phpbb as well, which is of course a show stopper as well: you need to set up your forum to use cookie-driven authentification, as coppermine needs to be able to read your phpbb3-cookie. Coppermine doesn't work with session driven authentification.
Logged

Nibbler

  • Guest
Re: phpbb3.0.6 and Coppermine 1.4.25 Bridge - log in circle
« Reply #4 on: January 04, 2010, 04:16:34 pm »

PHPBB is using sessions because you have an invalid cookie configuration. Disable 'secure cookies' in phpbb. You are not using SSL (https) so you can't use secure cookies.
Logged

eva4art

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: phpbb3.0.6 and Coppermine 1.4.25 Bridge - log in circle
« Reply #5 on: January 05, 2010, 05:16:57 am »

Thank you very much for your help.
I disabled the secure cookie option and will try to get rid of the domain name differences.
The log in is working now. Is there a way to take the customers back automatically to the gallery if they came from there? Right now they go to the forum index page and have to click a button to the gallery. If I remember well I red it in one of the posts that currently there is no such option. Is that the case?
I appreciate your help.

Eva
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: phpbb3.0.6 and Coppermine 1.4.25 Bridge - log in circle
« Reply #6 on: January 05, 2010, 07:15:46 am »

Is there a way to take the customers back automatically to the gallery if they came from there? Right now they go to the forum index page and have to click a button to the gallery. If I remember well I red it in one of the posts that currently there is no such option. Is that the case?
That option would have to reside in phpbb, which is an app we're not familiar with. We can't support you on this, sorry.
Please resolve your threads.
Logged

Nibbler

  • Guest
Re: phpbb3.0.6 and Coppermine 1.4.25 Bridge - log in circle
« Reply #7 on: January 05, 2010, 10:14:44 am »

Yes, that is supported. You need to do as already suggested and stop using the www. prefix in the bridge manager.
Logged

eva4art

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: phpbb3.0.6 and Coppermine 1.4.25 Bridge - log in circle
« Reply #8 on: January 06, 2010, 05:01:16 am »

Thank you guys, again.
I changed the www. prefix in the bridge manager.
On the phpbb forum site I found instructions to make the redirect to the gallery work.
Now everything is working as it should.
If your think it is useful I can post the phpbb link here so maybe it can help others too.
Let me know.
Thank you for your help.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.