Multiple sites, single login Multiple sites, single login
 

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

Multiple sites, single login

Started by SpikeTheLobster, February 01, 2013, 09:44:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SpikeTheLobster

As the title suggests, I'm wondering if there's a way to let users log in on a single site and have the login work on multiple installs of Coppermine, preferably by passing a parameter in the URL or something equally simple. All sites are hosted on the same server, though they're on different domain URLs... presumably this means there'd be a need for either a shared user table or some process to create the same user in all tables.

I had a hunt around and couldn't see any solutions for this. It'd be very nice for my network of sites, as it would save people having about 15 different logins.

Alternatively, can someone tell me if one centralised database with all the installs in it (with different table prefixes per site) would slow things down dramatically? And how difficult it would be to access that DB from 15 different domains? (Not a big SQL pro, here.)

Αndré

It should work if you bridge all Coppermine galleries to the same application.

SpikeTheLobster

So I'd have to get them to register on a sort of "umbrella" app (which would remain unused) and use that as the source of a multi-site-wide login?

Sounds complex. Methinks I'll need to re-read all the bridging docs!  :o

Αndré

It's not that complex. You just need e.g. an SMF installation and then bridge each gallery to it.

SpikeTheLobster

I was thinking of the conceptual side (i.e. a good way to tie in a registration to a completely redundant app without making the users go "huh?") and the fact that they'll all have to point to a database on another domain - that bit I've never done before, though I've bridged.

I'll have a look and figure something out... very carefully, before I try implementing anything!

Thanks for the pointer to get me started. Much appreciated.

SpikeTheLobster

Oh dear. First thing I saw on the documentation:

This won't work:
Bridge app: http://yourfirstdomain.com/board/
Coppermine: http://yourseconddomain.com/gallery/


So basically I'm screwed.  :'(

Αndré

Sorry, I missed that part in your initial post. Another approach would be to use a third-party provider (Facebook, OpenID, ...) or to built such a service yourself. Have a look at the plugin contributions board and you'll find at least 2 Facebook login/authentification plugins. I haven't checked in detail if they do what you're looking for.

phill104

If your server supports LDAP then that may also be an option.
It is a mistake to think you can solve any major problems just with potatoes.