September 06, 2010, 04:16:36 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: The wait is over - Coppermine 1.5.8 [stable] is here
It is with great pride that the Coppermine community announces to the world the immediate availability of Coppermine 1.5.8 stable. As a community of contributors, we have been through celebrations and tribulations. We have had fun, and we have worked hard. We have learned from and helped one another. What started two and a half years ago has grown into what we believe to be the finest PHP photo gallery yet.
[more]
   Home   Help Search Board rules Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Coppermine LDAP Bridging  (Read 11228 times)
0 Members and 1 Guest are viewing this topic.
twanfox Topic starter
Contributor
***
Posts: 2


« on: August 29, 2007, 09:06:27 pm »

While I admit, it sounds weird to bridge LDAP and Coppermine, since it isn't exactly a BBS, I figured it was the easiest and most portable way to allow authentication between Coppermine and a backend LDAP Directory. For the moment, it's a work in progress, but after seeing some requests, I figured I'd drop the line that I had something working and (for the most part) it works. The sad part is that while it is designed as a bridge, it doesn't exactally store things like Group information in the LDAP directory but Coppermine doesn't use it's internal groups if bridging is enabled. It's caused some interesting issues. If someone knows more about Coppermine's interaction and requirements for bridging, I do accept help to figure it out. Wink

At any rate, here is the bridge file as I have it so far.

* ldap.inc.php.txt (23.13 KB - downloaded 203 times.)
« Last Edit: September 05, 2007, 07:38:13 am by GauGau » Logged
gosforth
Coppermine newbie

Posts: 10


« Reply #1 on: September 25, 2007, 02:42:56 pm »

Would be great if at last we could have Coppermine - LDAP integration (not Active Directory even, AD is not a real LDAP in fact).
Logged
twanfox Topic starter
Contributor
***
Posts: 2


« Reply #2 on: September 27, 2007, 02:49:14 am »

I would tend to agree with LDAP integration being a nice feature. However, at least as a starting measure, this seemed to be the easiest way to enable such functionality within the guidelines of the system. I've seen how other hacks and add-ons muddle the original codebase and, when it comes time to upgrade, those hacks prevent that. In this case, even Coppermine handles it's own internal user/group handling as a special-case bridge module.

This bridge could lead into that very easily. Some functionality that mirrors the coppermine "bridge" requires hacks in order to tell the gallery to treat the LDAP bridge like the Coppermine one. If the Coppermine devs feel that this bridge merits such integral revisions, I'd be love to investigate that possibility.
Logged
Joachim Müller
Dev Team member
****
Gender: Male
Germany Germany

Posts: 47735


aka "GauGau"


WWW
« Reply #3 on: September 27, 2007, 07:48:30 am »

If the Coppermine devs feel that this bridge merits such integral revisions, I'd be love to investigate that possibility.
Sounds very interessting. I'd love to see an integration of this bridge into the core. LDAP integration is the key to Coppermine being used in company's intranets or extranets.
So it would be great if you could look into this.
Logged
florismouwen
Coppermine newbie

Netherlands Netherlands

Posts: 1


« Reply #4 on: April 29, 2010, 01:23:17 pm »

I created a new version of the LDAP Bridge with these features:
 - Added CACHE_PASSWORD to prevent password caching in the database
 - Update e-mailaddress from LDAP users to the Database

Maybe in the near future i create another update with the possibility to use LDAP groups and synchronise them to Coppermine.

* ldap.inc.php.txt (24.51 KB - downloaded 78 times.)
Logged
Joachim Müller
Dev Team member
****
Gender: Male
Germany Germany

Posts: 47735


aka "GauGau"


WWW
« Reply #5 on: April 30, 2010, 06:02:07 am »

Thanks for your contribution. The Coppermine version you designed this for is reaching it's end of life. Ideally, you might consider designing a new version for the upcoming cpg1.5.x stable release (currently, a release candidate is out).
Logged
blumer
Coppermine newbie

Czech Republic Czech Republic

Posts: 1


« Reply #6 on: May 03, 2010, 02:34:29 pm »

Hello. I have white screen after login to cpg with this LDAP hack. LDAP connection is bind to server and users are created in db after first login to gallery. Second and all next logins - white screen without any errors. Thanks for your ideas.

cpg 1.4.25
win XP
Vertrigo server with
Apache 2.0.63
PHP 5.2.6
Mysql 5.0.51b
Logged
Phill Luckhurst
Administrator
*****
Gender: Male
United Kingdom United Kingdom

Posts: 2624



WWW
« Reply #7 on: May 03, 2010, 06:11:07 pm »

And the link to your site is?

http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
Logged

It is a mistake to think you can solve any major problems just with potatoes.
Joachim Müller
Dev Team member
****
Gender: Male
Germany Germany

Posts: 47735


aka "GauGau"


WWW
« Reply #8 on: May 03, 2010, 10:10:15 pm »

In fact you should start a new thread and do as suggested in When requesting bridge support - mandatory!
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.102 seconds with 17 queries.