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: No users of coppermine in usermambo after bridging  (Read 6584 times)

0 Members and 1 Guest are viewing this topic.

seb123

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
No users of coppermine in usermambo after bridging
« on: November 28, 2005, 08:44:05 pm »

Upgrading en bridging went fine with mambo. Only the registrated users in mambo can automaticly use coppermine. But the users of coppermine (before bridging) can't login with the login of mambo. How do I put the users of coppermine in mambo, so that they also can login?
Logged

Nibbler

  • Guest
Re: No users of coppermine in usermambo after bridging
« Reply #1 on: November 28, 2005, 08:45:11 pm »

You'll need to convert them to mambo users by transfering them into the mambo users table. I can't provide detailed instructions though.
Logged

seb123

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: No users of coppermine in usermambo after bridging
« Reply #2 on: November 28, 2005, 08:50:19 pm »

Do you know somebody who can? Do i have to use phpMyAdmin or a script?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: No users of coppermine in usermambo after bridging
« Reply #3 on: November 29, 2005, 12:00:44 am »

there's no script nor automatic method available - you have to do this manually.
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#integrating_users_start
Logged

seb123

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: No users of coppermine in usermambo after bridging
« Reply #4 on: November 29, 2005, 08:59:14 am »

I manual made the users of coppermine in de Mos_users. (first made new users in mambo admin and then changed the id to the id of coppermine). The first few users was not a problem, but when i finished this the integration didn't work at all. If a (new) user logged in with mambo he is now not logged in in coppermine. Does somebody know what i did wrong and how a can change this. I already tried to disable and enable ingetration, but that didn't work.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: No users of coppermine in usermambo after bridging
« Reply #5 on: November 29, 2005, 09:20:58 am »

hard to say without knowing what you did exactly.
Logged

seb123

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: No users of coppermine in usermambo after bridging
« Reply #6 on: November 29, 2005, 09:55:08 am »

I made a new user (example; rob)in mambo (in admin panel). Then i went to phpMyAdmin, changed the id of rob in mos_users for example: id:87 into id:4. Because id 4 is the id of rob in coppermine.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: No users of coppermine in usermambo after bridging
« Reply #7 on: November 29, 2005, 10:00:05 am »

ok, I'm afraid that this might collide with mambo's user management - you shouldn't change the ids. Instead, you'd have to go through coppermine's database and change all references to the user with the id "4" to the id "87".
Logged

seb123

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: No users of coppermine in usermambo after bridging
« Reply #8 on: November 29, 2005, 05:56:40 pm »

Thanks for the support. I brought my db settings for coppermine back to normal and als the mos_user. But if i want to bridge again it seems that it isn't working. I made the change of mambo.inc. If i click on log in in coppermine i'm going to the mainpage and logging in as admin of mambo. When i'm going to coppermine i'm not logged in coppermine. And if i'm clicking on the albums of other users it's saying that there are no albums of users, but they are!
Does somebody knows what the problem might be? Before changing the mos_user it all was working perfectly.
Help!!!!! :\'(
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: No users of coppermine in usermambo after bridging
« Reply #9 on: November 30, 2005, 11:03:14 am »

I made the change of mambo.inc.
What change?
Logged

seb123

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: No users of coppermine in usermambo after bridging
« Reply #10 on: November 30, 2005, 11:49:30 am »

// Connect to db
      $this->connect();
      
      // Delete old sessions
      $past = time()-$mosConfig_lifetime;
      $sql = 'delete from '.$this->sessionstable.' where (time < '.$past.');';
      cpg_db_query($sql, $this->link_id);
      
      }
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: No users of coppermine in usermambo after bridging
« Reply #11 on: November 30, 2005, 08:01:49 pm »

who told you to change the file?
Logged

seb123

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Logged

gram

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: No users of coppermine in usermambo after bridging
« Reply #13 on: December 05, 2005, 06:37:30 pm »

seb123:

If you are going to create new users in Mambo, you need to leave thier userid's intact.  Mambo creates several entries in its user groups tables that correlate to the userid it assigns.  It cannot be modified without extensive knowledge of how to make correlating changes in the other tables.

If you choose to use the bridge supplied with CPG 1.4, you do not need to change thier ids in Mambo to match those in Coppermine.

After entering each new user, just make sure that their group affiliation allows them to do what you want them to do in CPG.  CPG will use the groups assigned by Mambo, and your settings for those groups in CPG to setup their rights and access under CPG.

The userid's don't have to match, as CPG will ignore its own user table when you have the bridge activated.  Mambo users who are either Super Administrators, or Administrators  will be admins under CPG.  Be careful of one issue.  If you want a user to be an administrator under CPG, don't just set them up as Super Admins under Mambo.  MAmbo has no way to derank or delete them once they are super admins.

GRAM

GRAM
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.