No Admin access after Bridging with phpBB3 No Admin access after Bridging with phpBB3
 

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]

Main Menu

No Admin access after Bridging with phpBB3

Started by eurodude, January 26, 2011, 11:51:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

eurodude

Hello, I recently upgraded my car clubs website to WordPress, with a phpBB3 forum and also added Coppermine.

This is a fresh install of Coppermine and my phpBB3 forum was a fresh install, ie I have never used phpBB2 on this site.

I have looked in the documentation and made modifications to ucp.php in the forum folder and changed phpbb3.inc.php
even though I have not upgraded my site.

All other issues I have found in this forum does not seem to match my problem.
I can access the gallery with bridgemgr.php and use it to turn off bridging and then I get
admin right on the correct native users. If I turn bridging on and login with an admin
user then I dont see the admin menu alternatives.

Coppermine install: http://www.porsche356klubb.se/photogallery/
Bridging app install: http://www.porsche356klubb.se/forum/
Coppermine version: cpg1.5.12
Bridging app version: phpBB3 3.0.8
Test user account: kallekula / testlosen1
BridgeManager settings:
Bridge app URL:  http://www.porsche356klubb.se/forum
Relative path to your bridge app's config file:  ../../porsche356klubb.se/forum/
Cookie name or prefix:  phpbb3_bvrdg
Use bridge app custom groups?:  Yes 

Αndré

Quote from: eurodude on January 26, 2011, 11:51:55 AM
Relative path to your bridge app's config file:  ../../porsche356klubb.se/forum/
Please change that to
../forum/


Quote from: eurodude on January 26, 2011, 11:51:55 AM
If I turn bridging on and login with an admin
user then I dont see the admin menu alternatives.
But logging in works as expected? If so, maybe the admin group IDs don't match. Please post the group ID of your admin group in phpBB.

Pyroaction

Here is my configuration:
Coppermine install: http://www.afmk.net/coppermine/
Bridging app install: http://www.afmk.net/forum/
Coppermine version: cpg1.5.12
Bridging app version: phpBB3 3.0.5
Bridge app URL:  http://www.afmk.net/forum_phpBB3
Relative path to your bridge app's config file: ../forum_phpBB3/
Cookie prefix:  phpbb3_jf3qy
Use bridge app custom groups?:  Yes 


I have the same problem:
when CPG is bridged to my forum, I can access to CPG with the forum identifiers but I CANNOT be connected as an administrator.

the administrator's group ID in phpbb3 is 253.

Αndré

Quote from: Pyroaction on February 10, 2011, 11:51:53 PM
the administrator's group ID in phpbb3 is 253.

Please try the following. Open bridge/phpbb3.inc.php, find
$this->admingroups = array(5);
and replace with
$this->admingroups = array(253);

Pyroaction

Quote from: Αndré on February 11, 2011, 11:09:27 AM
Please try the following. Open bridge/phpbb3.inc.php, find
$this->admingroups = array(5);
and replace with
$this->admingroups = array(253);
Thank you, it is working fine.

bioai

This thread has sorted me a treat, thanks everyone. My admin group_id is different again though (phpBB3 3.0.8 clean install, but data then imported from SMF 1, which in turn was migrated from yaBB), mine was 17.
If anyone needs to check go into your database (use phpmyadmin) and browse the groups table, column:group_id. Hope thi shelps someone :)
Don't just guess incase you pick something else by mistake and give gueasts admin access.

These are mine:
13    GUESTS
14    REGISTERED
15    REGISTERED_COPPA
16     GLOBAL_MODERATORS
17    ADMINISTRATORS
18    BOTS
19    NEWLY_REGISTERED

Question though.. Should I be changing guests from 1, to match. Or anything else? I guess not, can't find anything on here yet, but I'll keep digging :)
Thanks again.

Αndré

Quote from: bioai on March 08, 2011, 12:14:27 AM
Should I be changing guests from 1, to match.
Yes. Change
$this->guestgroup = 1;
to
$this->guestgroup = 13;
in your case.

Thnok

I have the same issue on Mybb 1.6 is it the same way to fix it? But edit the Mybb bridge PHP? What's the group Id for admin in it ?

Αndré

Quote from: Thnok on March 11, 2011, 08:44:15 PM
I have the same issue on Mybb 1.6 is it the same way to fix it? But edit the Mybb bridge PHP?
Yes. Please don't hijack thread, but start your own instead in the future.

benbee

Hi guys,

I realise this thread has been dormant a while, but I'm having the same issues with phpbb3.

I've checked all the settings and changed my /www/gallery/bridge/phpbb3.inc.php to reflect the Administrator group, but it's still not working.

My groups are as follows:

6 GUESTS
7 REGISTERED
8 REGISTERED_COPPA
9 GLOBAL_MODERATORS
10 ADMINISTRATORS
11 BOTS

and the changes I made to the phpbb3 bridge:

            // Group ids
            $this->admingroups = array(10);
            $this->guestgroup = 1;

To clarify, I can login as the Administrator of my forum but do not have access to administer coppermine.
As it IS authenticating I'd assume my cookie 'name' is correct too.

I'm reluctant to give out specific info of my site to all but if someone can provide any suggestions, it would be greatly appreciated.
I've followed the tutorial to the letter.

Ben.

benbee

This is normal, or should the ID's match?

mysql> select group_id,group_name from gallery_usergroups
    -> ;
group_id group_name

106 GUESTS
107 REGISTERED
108 REGISTERED_COPPA
109 GLOBAL_MODERATORS
110 ADMINISTRATORS
111 BOTS

Αndré

Please verify that your admin user's primary group is the admin group.

Coppermine adds 100 to the board's group IDs, so that's normal.

benbee

Αndré thankyou!

That was it, and I didn't think to look as I had no reason to think that the admin didn't have ADMINISTRATOR as it's primary group.

Cheers, let my stupidity be a lesson to others.

Incidentally is there a way to change it's behavior so that it doesn't require 'primary' group access?

Ben.

Αndré

I'm not that familiar with bridging, so I don't know if it's possible, but I assume it's possible somehow.

As you've been the 4th person hijacking this thread, I'll close it. Feel free to start a new thread (here or in the feature requests board) regarding your additional question.