Piwigo vs. OAuth Login
I'm trying to install piwigo on my cloudron so people can use their accounts to u/l images. There are currently several plugins for piwigo, but none seem to do the trick out of the box.
Ldap Plugin (http://piwigo.org/ext/extension_view.php?eid=650): Doesn't seem to work properly, maybe someone has an idea? Github issue with error-animation is herehttps://github.com/VSLCatena/ldap_login/issues/5
OAuth Plugin (http://piwigo.org/ext/extension_view.php?eid=684): Only uses built in providers (facebook, google, instagram, linkedin, tumblr, twitter, windows live, vkontakte, yahoo, 500px, openid, flickr, steam and wordpress), so it would be required to copy one of those providers and populate it with cloudrons data. Which would be the closest one to the cloudron API?
However, there is a 3y old forked version of that plugin (https://github.com/AchilleAsh/Piwigo-oAuth-Custom-Client) which uses a different/custom provider, but after adjusting the urls to the cloudrons, this is giving me an error after callback aswell.
Any pointers on how to approach this?
girish last edited by
@msbt The LDAP looks promising!
The error comes fromhttps://github.com/VSLCatena/ldap_login/blob/master/admin/configuration.php#L55. I think that means that
I think the issue is that it harcodes objectClass=person inhttps://github.com/VSLCatena/ldap_login/blob/master/class.ldap.php#L170 . Can you patch the line to say objectcategory=person and see if it works? Otherwise that log file in /var/log might be good to see.
thanks for getting back to me, changing that didn't do anything as far as I can see. The log files aren't exactly informative. All it says is
[ldap_search_dn]> Connecting to server
[ldap_search_dn]> Cannot connect to server!
I'll wait for a bit, apparently someone else is also having problems with that version aswell, maybe that's related (https://github.com/VSLCatena/ldap_login/issues/1)
alexy last edited by
@msbt I'd love to hear more about your adventures with Piwigo. I'd love to have it be a part of Cloudron. Have you had success running it (apart from LDAP) on your instance? I've played around with a local docker install but it wasn't stable at all for me.
yes I got it working, even with LDAP (although the automatic group settings doesn't work as intended). I don't have a way to automatically install it, that's why it's not released yet. I'm happy to push a small tutorial for the lamp app and include all the required files if you want.