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] 2   Go Down

Author Topic: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...  (Read 11955 times)

0 Members and 1 Guest are viewing this topic.

NightriderXP

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • RoseBUD Community Forums (RCF)
Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« on: August 15, 2006, 09:19:27 am »

I have the following issue when trying to bridge coppermine and phpBB 2.0.21:

I have bridged them together, but when I enter the Gallery, I am not logged in even though I'm logged in to phpBB.  When I click on the Coppermine login, it takes me back to the phpBB index page...

Coppermine install: http://www.freenclearstuff.com/gallery
Forum install: http://www.freenclearstuff.com/forum/nfphpbb
Coppermine version: cpg1.4.8
Forum version: phpBB 2.0.21
Test user account: testuser / testpwd

BridgeManager settings:
Forum URL:  http://www.freenclearstuff.com/forum/nfphpbb
Relative path to your BBS's config file:  ../forum/nfphpbb/
Use post-based groups?:  0

Gallery Cookie Path: /
Gallery Cookie: cpg148
phpBB Cookie Path: /
phpBB Cookie: phpbb2mysql

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg398.imageshack.us%2Fimg398%2F3663%2Fdontknow6sf.gif&hash=8c16b2011ebf10b663cad7a9267d0c50198ae5f0)
« Last Edit: August 16, 2006, 11:52:49 pm by Nibbler »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #1 on: August 15, 2006, 09:50:26 am »

test user account doesn't work for me.
Logged

NightriderXP

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • RoseBUD Community Forums (RCF)
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #2 on: August 15, 2006, 10:09:45 am »

I'm sorry.  I created the Test account in Coppermine rather than phpBB.  You should be able to log in now using the following:

testuser / testpwd

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg358.imageshack.us%2Fimg358%2F2396%2Ficonredface4wb.gif&hash=55fca93615f79343ab91c26fd02a8c39276f3e47)
Logged

NightriderXP

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • RoseBUD Community Forums (RCF)
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #3 on: August 15, 2006, 10:15:48 am »

I just noticed that the Bridge seems to work perfectly for the Test account, but not for my Admin account.  I have cleared cookies in my browser too, but that doesn't seem to make any difference...

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg398.imageshack.us%2Fimg398%2F3663%2Fdontknow6sf.gif&hash=8c16b2011ebf10b663cad7a9267d0c50198ae5f0)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #4 on: August 15, 2006, 11:04:09 am »

but not for my Admin account.
What exactly doesn't work for you phpBB admin account?
Logged

NightriderXP

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • RoseBUD Community Forums (RCF)
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #5 on: August 15, 2006, 05:12:51 pm »

When logged in as an Admin in phpBB, I am not logged in when I go into the Coppermine gallery.  But when I'm logged in as the Test member, I am logged in when entering the Gallery.  So it seems that the Bridge is only working for non-Admin members...

This is what I see when entering the Gallery logged in as an Admin:

[Edit GauGau]
replaced hotlinked screenshot [ i m g ] http://img54.imageshack.us/img54/7501/screenshot740dc7.jpg [ / i m g ] with an attachment. In the future, please use attachments instead of hotlinks.
[/edit]
[/i]

But if I was logged in as admin when entering the Gallery, I shouldn't be seeing this menu.  If I click on Login in the Gallery, I am redirected back to the phpBB Index page...

OTOH, this is what I see when logged in to the Test account in phpBB then enter the Gallery.  This part seems to be working correctly.  So it seems that I have a partial bridge that only allows regular members to remain logged in when entering the Gallery...

[Edit GauGau]
Replaced hotlinked pic [ i m g ] http://img54.imageshack.us/img54/5804/screenshot741bc9.jpg [ / i m g ] with an attchment for the same reason as suggested above
[/edit]
[/i]

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg398.imageshack.us%2Fimg398%2F3663%2Fdontknow6sf.gif&hash=8c16b2011ebf10b663cad7a9267d0c50198ae5f0)

« Last Edit: August 15, 2006, 07:27:14 pm by GauGau »
Logged

Nibbler

  • Guest
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #6 on: August 15, 2006, 05:28:34 pm »

Try clearing your cookies. Even if Coppermine doesn't recognise your admin rights it should have at least recognised you as a registered member. Also make sure you selected the right type of phpbb bridge in the bridge manager.
Logged

NightriderXP

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • RoseBUD Community Forums (RCF)
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #7 on: August 15, 2006, 06:20:03 pm »

Yes, I've cleared my browser cookies for the domain several times, yet still see the same results.  Basically if I am logged in as admin, the bridge doesn't recognize my account at all and acts like phpBB and Coppermine haven't been bridged, yet when I'm logged in as the regular test member, the bridge works perfectly...

Also, since I am working on a phpBB 2.0.21 board, I used the phpBB Bridge for 2.0.18 or Greater setting...

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg398.imageshack.us%2Fimg398%2F3663%2Fdontknow6sf.gif&hash=8c16b2011ebf10b663cad7a9267d0c50198ae5f0)
Logged

Nibbler

  • Guest
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #8 on: August 15, 2006, 06:23:30 pm »

Make sure you are accessing your site using www. each time. If you are happy to PM the admin account details I can investigate for you.
Logged

NightriderXP

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • RoseBUD Community Forums (RCF)
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #9 on: August 15, 2006, 07:46:48 pm »

Thanks Nibbler.  I sent you a PM with the admin login details...

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg453.imageshack.us%2Fimg453%2F8123%2Fheadbangzc7.gif&hash=c378bfaa16aacdbf04bbae8d13c4dab321b6ff28)
Logged

Nibbler

  • Guest
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #10 on: August 15, 2006, 07:55:08 pm »

I can confirm the issue. Have you applied any mods to phpbb that could have changed admin authentication code ?
Logged

NightriderXP

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • RoseBUD Community Forums (RCF)
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #11 on: August 15, 2006, 08:04:08 pm »

Not really.  This isn't even my site.  On my site, I've installed over 800 MODs and have the Coppermine 1.4.3 Gallery successfully bridged.  On this site, there are only 3 installed MODs and none of them have anything to do with the Sessions or logging system...

The MODs installed on this site are:

  • ImageShack Panel for Posting Body
  • Configurable Smilies Table 2
  • Fast Resize Remote Avatar Mod

I have all but the last MOD and a whole lot more installed on my site...

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg398.imageshack.us%2Fimg398%2F3663%2Fdontknow6sf.gif&hash=8c16b2011ebf10b663cad7a9267d0c50198ae5f0)
Logged

NightriderXP

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • RoseBUD Community Forums (RCF)
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #12 on: August 16, 2006, 04:08:24 am »

Ok, any idea of where we go from here???

 ???
Logged

NightriderXP

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • RoseBUD Community Forums (RCF)
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #13 on: August 16, 2006, 08:50:27 pm »

Could you give me an idea of whether you can help me or if this problem has stumped you too?  I need to know one way or another so I can decide where to go from here...

 ???

Logged

Nibbler

  • Guest
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #14 on: August 16, 2006, 08:52:39 pm »

If you are happy to PM me FTP and DB access then I can get it fixed. I don't know what else to suggest.
Logged

NightriderXP

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • RoseBUD Community Forums (RCF)
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #15 on: August 16, 2006, 10:13:58 pm »

Thanks Nibbler.  That is a generous offer.  I sent you a PM...

 :D
Logged

Nibbler

  • Guest
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #16 on: August 16, 2006, 11:05:13 pm »

Seems to be working ok now. Your phpbb admin account has an id of 1, which is strange since phpbb account numbers normally start from 2. You'll need to either reapply the marked sql change in bridge/udb_base.inc.php whenever you update your gallery or make yourself a new admin account.
Logged

NightriderXP

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • RoseBUD Community Forums (RCF)
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #17 on: August 16, 2006, 11:36:07 pm »

Yes, I added my admin record long after the site owner had established her membership.  I copied my admin record from my Test Database to her Users table and since 1 is usually an available User ID, that is the User ID that I use...

So are you saying that Coppermine wasn't working for me simply because my User ID was set to 1?  If true, I should be able to change my User ID to any other number and it should work for me...

Ok, I checked and after changing my User ID to a number larger than 1 and clearing my browser cookies for the site, the Bridge seems to be working correctly for my admin acct.  Is there any reason why the User ID 1 should not be used?  This is the first time that it has caused me any problems when working on a site...

Thanks for your help on this Nibbler.  It would never have occurred to me that the User ID might be a problem...

 :D
Logged

Nibbler

  • Guest
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #18 on: August 16, 2006, 11:52:10 pm »

That would explain it then. It's not a problem that the account was 1, the problem is that there was no corresponding entry in the user_groups table for user_id 1 since you manually added the account to only one of the tables. Apparently phpbb can tolerate this, maybe for backwards compatibility reasons, but I didn't allow for that. I only test against clean installs of the software we bridge to. Since the authentication query joins the user table to the user_group table you do need to be in both to be recognised. First time I came across this problem, thankyou for your cooperation in resolving it.
Logged

NightriderXP

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • RoseBUD Community Forums (RCF)
Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
« Reply #19 on: August 17, 2006, 12:00:49 am »

Interesting.  I didn't add a User Group record when I changed the User ID in the Users table to a value greater than one, but now the Bridge is working perfectly for me.  I will add a record to the User Group now just to guarantee that this doesn't become an issue for me again in the future...

I'm not surprised that we keep finding ways to break the software.  Over in Area 51, I would have hoped that I would have resolved every problem that could arise.  But every day, I get a new challenge that I had never seen before.  They keep me on my toes there and I imagine that we keep you on your toes here as well...

Thanks for all the help with this Nibbler...

 ;D
Logged
Pages: [1] 2   Go Up
 

Page created in 0.026 seconds with 19 queries.