Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Tunnel2CPG user synchronization plugin(s)  (Read 1190 times)

0 Members and 1 Guest are viewing this topic.

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 535
Tunnel2CPG user synchronization plugin(s)
« on: April 20, 2017, 02:22:50 PM »

This package contains a CPG 1.6 plugin that provides one-way user synchronization from (currently) Joomla 3.x or pbpBB 3.1+ to CPG.

By use of secure encrypted cookies, users logged into Joomla or phpBB3 using a special link to CPG will automatically be logged in to CPG, creating an account if necessary. This creates a loose coupling between the two apps that can easily be broken with no harmful effects. The user accounts fully exist in each web app, allowing users to directly log into either one as though the other doesn't exist. The option is available to sync passwords, as well ... password changes at Joomla or phpBB3 will automatically be applied at CPG.

Update 12 May 2017: CPG plugin 1.3.3 - corrected issue where link to CPG via tunnel does not login user on first use.

Code: [Select]
Joomla! and/or phpBB3 to Coppermine Photo Gallery Tunnel
version: 1.3.3

The three zipped files in this package are plugins for CPG, Joomla! and phpBB(3.1+).

For CPG:
--------
Install the plugin, cpg1.6.x_plugin_tunnel2cpg_v1.3.3.zip
Configure its 'secret phrase', usergroup settings, whether to sync passwords and optional theme name.
The tunnel encryption method must be set the same for each tunnel component (CPG and Joomla/phpBB3).

For Joomla!:
------------
Install the plugin, plg_system_cpgtunnel_v1.3.2.zip
Enable the plugin and configure its 'secret phrase' (phrase same as CPG), usergroup settings and encryption method.
Establish any links in Joomla! that will point to CPG as:  <CPG URL>/index.php?file=tunnel2cpg/joomla
Use the same link when setting up access to CPG using a Joomla! menu item 'wrapper'

For phpBB3:
------------
Unzip the extension, ron4mac_tunneltocpg_v1.1b.zip, into the <phpbb>/ext folder
Enable the extension and configure its 'secret phrase' (phrase same as CPG), usergroup settings and encryption method.
Establish any links in phpBB3 that will point to CPG as:  <CPG URL>/index.php?file=tunnel2cpg/phpbb3


NOTES:
------
Joomla! and phpBB3 users will have to logout and back in before a tunnel will be established.
Subsequently, when users logout from Joomla! or phpBB3, they will also be logged out of CPG.

Once users have accessed the CPG instance via Joomla! or phpBB3, they will also be able to go directly to the
CPG instance (<CPG URL>) and login with their same Joomla! or phpBB3 username and password.

A sample CPG theme is provided that is designed for use when accessing CPG via a Joomla! menu item wrapper.
« Last Edit: May 12, 2017, 11:44:04 PM by ron4mac »
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Online Online
  • Gender: Male
  • Posts: 4368
    • Windsurf.me
Re: Tunnel2CPG user synchronization plugin(s)
« Reply #1 on: April 20, 2017, 04:29:53 PM »

Excellent work as ever.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

maxhasher

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Tunnel2CPG user synchronization plugin(s)
« Reply #2 on: May 04, 2017, 06:19:31 PM »

Good Work there .
Up and running on a live site with CPG 1.6.03 , modified tunnel (on my site end) and logs in and out well, and does password update into cpg.. excellent.
cheshirehash.co.uk not a bb.

 8)
Logged

maxhasher

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Tunnel2CPG user synchronization plugin(s)
« Reply #3 on: May 04, 2017, 06:30:20 PM »

Works well on both test box with PHP 7.0.15 apache 2.4.18 and MySQL server 5.7.18

and on live site with PHP 5.6 and MySQL community server 5.01
Logged

DirkMa

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Tunnel2CPG user synchronization plugin(s)
« Reply #4 on: May 04, 2017, 10:14:39 PM »

Hello,

I have installed the plugin but the tunnel don't work.
I have the same secret phrase in cpg and joomla (for example 1234hhh)

I have tree attachments.

What's wrong?

Dirk
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 535
Re: Tunnel2CPG user synchronization plugin(s)
« Reply #5 on: May 05, 2017, 04:32:21 AM »

What's wrong?
What happens when you use the Joomla menu item? Does it link to CPG with an error message? Did you enable the Joomla plugin and log out and then back in before using the link to CPG?
Logged

DirkMa

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Tunnel2CPG user synchronization plugin(s)
« Reply #6 on: May 05, 2017, 05:58:48 AM »

Sorry, my english isn't so good that's the reason I write a little bit short.
The Problem is that I come to the login from cpg (joomla3.jpg).
My user in joomla is "Super user" and with the same name and password in cpg als "administrators".

MfG

Dirk
Logged

DirkMa

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Re: Tunnel2CPG user synchronization plugin(s)
« Reply #7 on: May 05, 2017, 06:06:36 AM »

What happens when you use the Joomla menu item? Does it link to CPG with an error message? Did you enable the Joomla plugin and log out and then back in before using the link to CPG?

Yes, I enable the Joomla plugin and logged out.

Dirk
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 535
Re: Tunnel2CPG user synchronization plugin(s)
« Reply #8 on: May 05, 2017, 02:01:22 PM »

It seems that you are not accessing CPG with the required link. You must be logged in to Joomla and then access CPG as:
<CPG URL>/index.php?file=tunnel2cpg/joomla

Can you provide links to Joomla and CPG? And maybe a test-user login?
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 535
Re: Tunnel2CPG user synchronization plugin(s)
« Reply #9 on: May 05, 2017, 02:15:27 PM »

You could also try using MCrypt for encryption instead of Openssl.
Logged

DirkMa

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Tunnel2CPG user synchronization plugin(s)
« Reply #10 on: May 06, 2017, 02:34:14 PM »

I have used MCrypt too. It's the same.
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 535
Re: Tunnel2CPG user synchronization plugin(s)
« Reply #11 on: May 06, 2017, 06:35:37 PM »

I have used MCrypt too. It's the same.
Emailed you.
Logged

DirkMa

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Tunnel2CPG user synchronization plugin(s)
« Reply #12 on: May 09, 2017, 05:53:49 AM »

Hi,

sorry, I doesn't get an email.

Dirk
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 535
Re: Tunnel2CPG user synchronization plugin(s)
« Reply #13 on: May 09, 2017, 01:43:09 PM »

sorry, I doesn't get an email.
I just tried with my own mail client instead of the Forum's email function and sending to your Forum registered email gets rejected.

If you send me links to your sites and a login(s), I’ll see what I can do to resolve the issue.
« Last Edit: May 18, 2017, 01:27:31 PM by ron4mac »
Logged

DirkMa

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Tunnel2CPG user synchronization plugin(s)
« Reply #14 on: May 09, 2017, 06:55:09 PM »

Hi,

I'm sorry, I've forgot to change my email. I have done it today.
I have send you an email.

Thanks

Dirk
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 535
Re: Tunnel2CPG user synchronization plugin(s)
« Reply #15 on: May 09, 2017, 07:47:34 PM »

I have send you an email.

I logged into Joomla and then clicked on the CPG link. Like what you saw, it just displayed a CPG login page. But, if I just refreshed the browser page, I was logged into CPG. After that, I could log in and out and it worked as expected. I'm not sure why it behaved like that. It may have something to do with there being no public view for CPG.

I'll setup a similar Joomla and CPG instance in one of my work areas and see if I can duplicate the behavior and find the cause.
Logged

DirkMa

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Tunnel2CPG user synchronization plugin(s)
« Reply #16 on: May 09, 2017, 08:00:32 PM »

Hi,

thanks for your Support.
Ich hope you find a solution.

Dirk
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 535
Re: Tunnel2CPG user synchronization plugin(s)
« Reply #17 on: May 12, 2017, 06:12:06 PM »

Ich hope you find a solution.

See updated version in original post...
Logged
Pages: [1]   Go Up
 

Page created in 0.077 seconds with 20 queries.