LDAP Authentication...
|
aaugustj
Joined: 2005-07-25
Posts: 6 |
Posted: Thu, 2006-12-07 17:42
|
|
Back over the Summer during Google's Summer of Code, I had seen some prospect of LDAP authentication being available for Gallery 2. Does anyone know what happened to that and if any LDAP support is planned or how hard it would be if I wanted to do it myself? |
|
| Login or register to post comments |

Posts: 32168
The student responsible for that project didn't show up. It was pretty disappointing to say the least.
There's noone working on LDAP integration as far as I know.
It shouldn't be too hard, but you'd have to get your hands dirty by learning some things about the gallery 2 framework and by writing some php code.
Posts: 2
Hi!
My company is going to use G2 as its corporate image database, and therefore we need LDAP authentication, which means that I will write it and we will later contribute it to the project.
I had a look at G2's code today, and I'd like to discuss this with some more G2-experienced developer:
I'm not shure how to write it: is it possible to write a pluggable module for this (my guess: no?), or should I extend or modify the core-GalleryUser.class and GalleryUserHelper-classes?
The plan would be to authenticate a user with LDAP, and create this user as regular G2-user if he doesn't exist yet, but without his password. If LDAP authentication fails, I would try to authenticate the user with the regular G2 username/password mechanism, e.g. for the admin account.
Right?
Regards, Johannes
Posts: 32168
Yes, this can be done in a modular way, no need to change any G2 files.
That's speculative since I haven't thought this through to the end, but from my experience with G2 integrations, this should be possible.
If you want to discuss this, you can chat with developers in irc #gallery on irc.freenode.net.
One way to make LDAP work is through GalleryEmbed creating a wrapper around G2 that checks LDAP first.
See http://codex.gallery2.org/index.php/Gallery2:Embedding (docs -> development -> integration)
Another way is to use the authplugin (also used by the httpauth module in g2.2).
Posts: 2
Thanks for the hints, I'll have a look at it, and I think with some kind of module blueprint for that it won't be too difficult. I'll return to it next week...
Posts: 1
Hi. Any news on this issue? Johannesl, did you proceed / succeed in developing a LADP module for your company?
Posts: 65
Greetings!
I created a LDAP solution for Gallery 1.5.2 (thread at http://gallery.menalto.com/node/31761). I've been wanting to sit down and work on a working solution for 2.2 for some time now, so if someone with a populated LDAP server would like to coordinate on it, I'd love to do so.
-Patrick
Posts: 13
Any updates?h
Posts: 2
Hi,

I'm trying to get Gallery2 work with OpenLDAP, for now I'm using the Http Auth plugin, the authentication against the LDAP directory works, but first I have to sync the Gallery users database and the LDAP directory, secund the users can edit their unused Gallery DB password... and that's far from perfect
It looks that your plugin did correct these problems...
So, if you want, I can help you setting up a working OpenLDAP directory on one of your box, or I can even set up temporally one of mine for test purpose, contact me by PM if you are interested by one of these propositions.
Best regards,
Baptiste
Posts: 1
Hi,
My company is also intersted in LDAP for Gallery. How is the project going? May I help?
Bests,
Oliver