Loss of Admin functions - PHPBB CPG Bridging Loss of Admin functions - PHPBB CPG Bridging
 

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

Loss of Admin functions - PHPBB CPG Bridging

Started by Richard Munn, December 03, 2005, 05:57:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Richard Munn

A bit embarrassing, since this sounds very similar to some of the other posts, but I'm stumped.

Existing install of phpbb 2.0.14.  New install of CPG 1.4.2.
Bridging seemed to work fine.  If I logged in using CPG, I was directed to the forum login, and properly redirected back to the gallery.

Problem is that when I arrived back at the gallery, it was not as an admin - no way of getting into the admin functions.

Ended up having to rerun bridgemgr.php again, and it disabled bridging.

However, now when I try to log into the gallery, I enter my (previous admin) username and password.  It appears to accept it - says "Welcome Richard" and shows the continue button, but then says "You don't have permission to access this page" so I can't log into the gallery at all.

Any ideas?  Thanks in advance for any and all help on this matter - I've been using the forums for a while, but am new to CPG

Coppermine install: http://www.myccr.com/gallery/
Forum install: http://www.myccr.com/SectionForums/
Coppermine version: cpg1.4.2
Forum version: PHPBB 2.0.14
Test user account: username: Test_User  password: test123

Cookie settings for the forums:
cookie domain: www.myccr.com
cookie name: phpbb2_myccr
cookie path: /
cookie secure: disabled

BridgeManager settings:
Forum URL:  http://www.myccr.com/SectionForums
Relative path to your BBS's config file:  ../SectionForums/ 
Use post-based groups?:  1 


Nibbler

1) Open your groupmgr.php

2) Edit

if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);

so it reads

//if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);

3) Navigate to groupmgr.php in your browser and the groups will re-sync.

4) Update your files from CVS versions:

udb_base.inc.php
phpbb.inc.php
bridgemgr.php

5) Enable the bridge with the bridge manager.

6) Reverse your change from step 2

gram

Thanks Nibbler!

Same problem, but with Mambo Bridge.

Implemented your suggestions (except Mambo bridge from CVS), problem solved.

GRAM

dancook

OK...forgive for being a newb...I'm putting together my first website using phpbb 2.0.14 and I just installed cpg 1.4.2 as well.

After I logged off of the admin account to create my own user account, I went back to admin account and had no admin controls (same situation as these guys I guess).

I'm not familiar with the bridge manager and didn't really know I was bridging anything. Is there anything here that explains step-by-step what I need to do to get this corrected? I'm still new with changing code around, but if I have something to refer to I can get by.

Thanks in advance!!

Dan Cook
Greenville, SC

ingsiang

Thanks alot Nibbler! I followed your tutorial and succeed in restore my admin control! Millions of thanks~ You are such a great guy!  ;D ;D ;D ;D

ingsiang

#5
Wao! I juz recheck my CPG and realize dat the tutorial above doesnt only solve my admin mode prob.. but also the login/logout redirection and memberlist problem! You rocks! nibbler~ thank you!!!!!!!!!!!!!! ;D ;D ;D ;D ;D ;D ;D ;D

car88win

Quote from: Nibbler on December 03, 2005, 05:49:20 PM
1) Open your groupmgr.php

2) Edit

if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);

so it reads

//if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);

3) Navigate to groupmgr.php in your browser and the groups will re-sync.

4) Update your files from CVS versions:

udb_base.inc.php
phpbb.inc.php
bridgemgr.php

5) Enable the bridge with the bridge manager.

6) Reverse your change from step 2

If I am to understand correctly, after we are able to get back in as admin etc. we are to copy and paste the text in these files into ours?
udb_base.inc.php
phpbb.inc.php
bridgemgr.php

Nibbler


car88win

super quick question eplain to a noob, please:

Relative path to your BBS, seen from your Coppermine folder (e.g. "../forum/" if your BBS is at http://www.yourdomain.tld/forum/ and Coppermine at http://www.yourdomain.tld/gallery/)

I think this is where I screwed up and got myself messed up.


Joachim Müller