Advanced search  

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

Pages: [1] 2   Go Down

Author Topic: Admin rights not bridging phpBB to CPG  (Read 25571 times)

0 Members and 2 Guests are viewing this topic.

jcocking

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Admin rights not bridging phpBB to CPG
« on: November 24, 2005, 04:19:40 pm »

Current versions:  Gallery 1.4.2 bridged to phpBB 2.0.018

I log on to the forum with my admin user id.  Link over to the gallery and lose my admin rights.  It appears the bridging is accepting the user id, but not giving any permissions.  It is treating the user id as a guest/anonymous user id. 

For example.

1. I logon to the forums with my admin id.
2. link to galleries and am treated as a guest.
3. turn bridging off and my user id becomes the admin of the galleries.
4. turn bridging on and my user looses all addmin permissions


Coppermine install: http://www.lotuselan.net/gallery/
Forum install: http://www.lotuselan.net/forums/
Coppermine version: cpg1.4.2
Forum version: phpBB 2.0.18
Test user account: test / test

BridgeManager settings:
Forum URL:  http://www.lotuselan.net/forums
Relative path to your BBS's config file:  ../forums/
Use post-based groups?:  0 


What have I missed?

jeff
« Last Edit: December 02, 2005, 01:15:01 am by Nibbler »
Logged

Nibbler

  • Guest
Re: Admin rights not bridging phpBB to CPG
« Reply #1 on: November 24, 2005, 05:27:15 pm »

Please post more information about your setup: http://forum.coppermine-gallery.net/index.php?topic=24032.0
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Admin rights not bridging phpBB to CPG
« Reply #2 on: November 24, 2005, 05:30:46 pm »

When bridging is enabled, your coppermine admin account will be no longer valid - coppermine then drops it's own user management in favor of the user management of your bbs app. Therefor, you'll have to log in with your admin account from the BBS.
Logged

jcocking

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Admin rights not bridging phpBB to CPG
« Reply #3 on: November 24, 2005, 05:36:58 pm »

I am using the BBS admin.  All users lose thier user rights when moving from phpbb to CPG.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Admin rights not bridging phpBB to CPG
« Reply #4 on: November 24, 2005, 05:38:21 pm »

do as Nibbler suggested.
Logged

jcocking

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Admin rights not bridging phpBB to CPG
« Reply #5 on: November 24, 2005, 05:40:37 pm »

See original post.  Modifies to have all info in one post.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Admin rights not bridging phpBB to CPG
« Reply #6 on: November 24, 2005, 05:50:52 pm »

when logging in into your bbs, you get redirected back to coppermine as expected. However, coppermine doesn't recognize you as being logged in (as it still displays the login link). This usually means you have something wrong in your bridge setup, or your bbs cookie is not readable for coppermine. Make sure that your bbs app is using cookie authentification (not only a session-driven authentification scheme).
Logged

jcocking

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Admin rights not bridging phpBB to CPG
« Reply #7 on: November 24, 2005, 06:04:49 pm »

So.......

I turned off the bridge.  I can not log into the standalone version with my CPG admin id.  I was able to logon with the standalone id earlier.

jeff
Logged

Nibbler

  • Guest
Re: Admin rights not bridging phpBB to CPG
« Reply #8 on: November 24, 2005, 06:09:22 pm »

Looks like your groups are not properly synced. Comment out this line in groupmgr.php and then go to the page directly in your browser

Code: [Select]
if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
When you use the bridge manager you must complete the process right to the final step.
Logged

jcocking

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Admin rights not bridging phpBB to CPG
« Reply #9 on: November 24, 2005, 06:18:03 pm »

There is something really screwy going on.

I am in stand alone mode:

All users with a user group of 1 can not login.  They go through the process, but nothing ever happens.
All users with a user group of 2 can login and use all the standard user features.

I commented out the previous field and still get permission denied on running the bridge manager.
Logged

Nibbler

  • Guest
Re: Admin rights not bridging phpBB to CPG
« Reply #10 on: November 24, 2005, 06:29:26 pm »

To re-sync the groups you need to go to groupmgr.php (the file you just modified) in Coppermine with your browser . You seem to have picked up an extra administrators group somehow. Please re-enable the bridge, experimenting with both 'post based groups' settings.
Logged

jcocking

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Admin rights not bridging phpBB to CPG
« Reply #11 on: November 24, 2005, 06:35:14 pm »

the group manager showed 2 administrator groups.  Deleted one.  Resolved the user group 1 versus 2 problem.  Will work on some on trying different group settings....
Logged

jcocking

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Admin rights not bridging phpBB to CPG
« Reply #12 on: November 24, 2005, 07:37:30 pm »

I have tried every thing and nothing works.  It appears we have a cookie incompatibility between phpbb 2.0.18 and CPG 1.4.2.  Here are my cookie settings for phBB:

Cookie domain:   .lotuselan.net
Cookie name  lotuforu_phpbb
Cookie path  /forums
Cookie secure  Disabled

Can you tell me what I am supposed to set the bridgemgr setting for it to work?

thank you....
Logged

Nibbler

  • Guest
Re: Admin rights not bridging phpBB to CPG
« Reply #13 on: November 24, 2005, 08:38:20 pm »

The cookie path must be set to '/' for coppermine to be able to read them.
Logged

jcocking

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Admin rights not bridging phpBB to CPG
« Reply #14 on: November 24, 2005, 10:16:22 pm »

We are getting closer. 

Cookies are working and people are authenticated correctly. 

I still have a problem with a couple of key user accounts.  I do not use groups within phpBB.  So phpBB assigns each user a group id that is unique and incremented.  My admin user id is assigned group 1 and only has user rights in the gallery.  The second registered user has a group id of 2, has user rights in the forum, but has admin rights in the gallery. 

I have the bridgemanager set not to use groups, but appears that it is using the lower numbered groups for security settings.

jeff 
Logged

Nibbler

  • Guest
Re: Admin rights not bridging phpBB to CPG
« Reply #15 on: November 24, 2005, 10:37:55 pm »

That system may not be compatible with the coppermine bridging system then. Anyone in phpbb's group 2 is given admin rights in coppermine.
Logged

jcocking

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Admin rights not bridging phpBB to CPG
« Reply #16 on: November 25, 2005, 12:18:22 am »

Then why do you have the option to use group settings or not to use group settings within your Bridge Manager?

To sum this support request:

You can only use phpBB 2.0.18 and CPG 1.4.2  together, if you implement groups. 

If you do not implement groups, phpBB assigns a sequential group number to the registered users: 
  • The first registered user within phpBB is assigned a user group of 1.
  • The second registered user within phpBB is assigned a user group of 2.
  • The third registered user within phpBB is assigned a user group of 3.
  • The fourth and so on.......
This is the default setting in phpBB. 

CPG uses the groups number to assign admin rights from phpBB, even if you tell the bridge manager not to use groups.

This means:
  • The first registered user is a user.
  • The second registered user is the admin.
  • The third registered user is a ?
  • The fourth registered user is a ?

Please verify if I am understanding your previous post correctly.  Can you also provide what the higher number groups will be?

jeff
Logged

Nibbler

  • Guest
Re: Admin rights not bridging phpBB to CPG
« Reply #17 on: November 25, 2005, 12:31:52 am »

I don't recognise this groups system that you describe. The user with id 2 is in group 2 which is the default admin account you create during installation of phpbb. That user and any other user you add into group 2 is treated as an admin by cpg. If 'post based groups' is disabled then anyone in any other group is treated as a regular user and you just have 4 simple groups in coppermine's groups page. If you enabled 'post based groups' then all groups you have created yourself in phpbb are imported to coppermine and you can setup different permissions for different groups of registered users. The integration works fine both ways.

If you have a user with id 1 or a user with id 2 that is not the default admin account then you have something wrong with your forum.
Logged

jcocking

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Admin rights not bridging phpBB to CPG
« Reply #18 on: November 25, 2005, 01:06:23 am »

The user with id 2 is in group 2 which is the default admin account you create during installation of phpbb. That user and any other user you add into group 2 is treated as an admin by cpg.

The only problem, is the first user id created is the admin of the phpBB boards.  It gets assigned a user group of 1.  The second register is assigned group 2.  This second register becomes the admin of CPG and the forum administrator is only a user.

With phpBB with group settings turned off, you should be keying off of the user_level field found in the phpbb_users table.  In this table, registered users are "0" and administrators are "1".




Logged

Nibbler

  • Guest
Re: Admin rights not bridging phpBB to CPG
« Reply #19 on: November 25, 2005, 01:08:02 am »

With phpBB with group settings turned off

Where is this setting ?
Logged
Pages: [1] 2   Go Up
 

Page created in 0.022 seconds with 20 queries.