ZenphotoCMS Forum
ldap login - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: ldap login (/thread-13029.html)

Pages: 1 2


ldap login - MyAGzenphoto - 2017-10-16

Hello,
I would like to use ldap authentication with zenphoto.
how to install and configure the zenldap plugin ?
Best Regards.

MyAGzenphoto




ldap login - acrylian - 2017-10-16

You find the instructions her: https://github.com/f1dot4/zenLdap

Given the plugin still works as it is unsupported and seems not to have been update for 5 years. I never used it.




ldap login - MyAGzenphoto - 2017-10-17

I have followed the instructions and now how can I launch the login procedure. Till now I use the following URL from my browser:
http://zenphoto.private.vki.eu/zenphoto/ (location of my gallery).
I never get a login prompt even before.
Maybe the way I access my gallery is wrong.

Best Regards.

MyAGzenphoto




ldap login - acrylian - 2017-10-17

The general login url is http://zenphoto.private.vki.eu/zenphoto/admin if using modrewrite.

Besides that I cannot help with the plugin. I don't know it and never used it. It very well may not work anymore.




ldap login - MyAGzenphoto - 2017-10-17

Hello,
Trying to reset my zenphoto site.
By the way, can you tell me where I can find a zenphoto user's guide in pdf format.
Thanks in advance.

Best Regards.

MyAGzenphoto




ldap login - acrylian - 2017-10-17

There is no user guide besides all that is on the site and the explainations on the backend.




ldap login - MyAGzenphoto - 2017-10-23

Hello,
About the LDAP plugin: " https://github.com/f1dot4/zenLdap",
I have followed the instructions mentionned:
cd /home/giuseppe/
unzip zenLdap-master.zip
mkdir /alt/plugins/alt/
cd /alt/plugins/alt
cp /home/giuseppe/zenLdap-master/alt/lib-auth.php .
cd /alt/plugins/alt
cp /home/giuseppe/zenLdap-master/alt/lib-auth.php .

At this point how can I make zenphoto aware that the plugin is installed ?
Maybe from the admin Backend ?
Indeed , there is a "Plugins" tag.
Can you help me please.

Best Regards.

MyAGzenphoto




ldap login - acrylian - 2017-10-23

Please review the plugin install info here that you installed correctly:
http://www.zenphoto.org/news/using-plugins-and-third-party-features/
And again, it is old and third party and may not work anymore.




ldap login - MyAGzenphoto - 2017-10-25

Hello,
Thanks for your answer.
I have followed the instructions at http://www.zenphoto.org/news/using-plugins-and-third-party-features/

Here is wath I did:

             cd /var/www/html/zenphoto/zp-core
              mkdir plugins
              cd plugins
              cp ~giuseppe/zenLdap-master/ldapLogon.php .
              mkdir ldaplogon
              cp ~giuseppe/zenLdap-master/alt/lib-auth.php ./ldaplogon/.

Nothing changes, I still cannot see my ldapLogon plugin from the admin Backend
It is a pity, because to go on I really need LDAP authentication.
Any help will be welcome.Best Regards.

MyAGzenphoto




ldap login - acrylian - 2017-10-25

So the plugin file itself is within /plugins and also the alt folder?

Sorry but if that all does not work the plugin is probably just not compatible anymore. Again I have never used it, it is five years old and not supported.

It seems there is a pull request by someone who apparently updated the plugin. Here is the repo so I sugggest to try that: https://github.com/blind-coder/zenLdap

It's always best if someone actually using and needing a feature maintains it.




ldap login - fretzl - 2017-10-25

Third party plugins should be in the plugins folder, in the root of your installation. This folder is already present.
I see the plugin instructions are not correct.
In the zenLdap folder you downloaded you will find a folder named alt (with the lib-auth.php file inside) and a file named ldapLogon.php.
The folder should be renamed to ldapLogon (the same name as the PHP file)
Now just put the folder (ldapLogon) and the file (ldapLogon.php) in the plugins folder in the root of your installation.

Now the plugin should show up in the backend.

Just to be safe you should make a small change to the ldapLogon.php file.
On line 19, function ldapLogon() should be changed to function __construct()




ldap login - fretzl - 2017-10-25

It seems there is a pull request by someone who apparently updated the plugin.
Nice! Didn't see that. Weird that the folder is still named alt.




ldap login - acrylian - 2017-10-25

Quote:In the zenLdap folder you downloaded you will find a folder named alt (with the lib-auth.php file inside) and a file named ldapLogon.php.
The folder should be renamed to ldapLogon (the same name as the PHP file)
Now just put the folder (ldapLogon) and the file (ldapLogon.php) in the plugins folder in the root of your installation.
That's not correct. This plugin has no separate folder. The folder must be in /plugins/alt/ as it is meant that way to take over the authentification process from /zp-core/lib-auth.php that way.




ldap login - fretzl - 2017-10-25

Oops, sorry




ldap login - MyAGzenphoto - 2017-10-25

Hello,
Thanks for your help.
By the way, I have tried the one you mentioned: "https://github.com/blind-coder/zenLdap" and nothing changes.
Best Regards.

MyAGzenphoto




ldap login - acrylian - 2017-10-25

If you really installed everything correctly in the root plugins folder, I can only suggest to try to contact that author.




ldap login - MyAGzenphoto - 2017-10-25

Hello,
I am sorry, even by making this changes, it does not work( I cannot see the plugin in the Backend).
Help, I need somebody help, not just anybody help...

Best Regards.

MyAGzenphoto




ldap login - acrylian - 2017-10-25

You are really sure you installed it correctly? Otherwise please review your error log.

Again, the best is to contact the author(s) of the plugins. I am not sure they read here regulary. I sadly cannot help with this plugin.




ldap login - MyAGzenphoto - 2017-10-25

Hello,
At this point, I think it is a good idea to try to contact that author( "https://github.com/blind-coder/zenLdap").
Can you give me his e-mail so that I can make him aware of my problems with his plugin).
Thanks in advance.

Best Regards.

MyAGzenphoto




ldap login - acrylian - 2017-10-25

I neither know the author nor do I have his email. Sadly he has not opened tickets on his fork repo. Try to comment on the pull request on the original repo. Maybe he sees that and responds.