ldap login

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

MyAGzenphoto

«1

Comments

  • acrylian Administrator

    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.

  • 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

  • acrylian Administrator

    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.

  • 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

  • acrylian Administrator

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

  • 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

  • acrylian Administrator

    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.

  • 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

  • acrylian Administrator
    edited October 2017

    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.

  • fretzl Administrator
    edited October 2017

    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()

  • fretzl Administrator

    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.

  • acrylian Administrator
    edited October 2017
    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.

  • fretzl Administrator

    Oops, sorry

  • 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

  • acrylian Administrator

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

  • 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

  • acrylian Administrator

    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.

  • 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

  • acrylian Administrator

    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.

  • fretzl Administrator

    I never use the command line but if I look at your code above I think you're creating a plugins folder in the zp-core folder which is not good. Correct me if I'm wrong.

    Anyway, I just downloaded and installed the fork too.
    It shows up in the backend.
    The folder tree of your Zenphoto install should look something like this:

    • albums
    • backup
    • cache
    • ...
    • plugins
      • alt
        • lib-auth.diff
        • lib-auth.php
      • ldapLogon.php
      • ... more plugin files/folders
    • ...
    • zp-core
    • zp-data
  • fretzl Administrator

    His email address is on his GitHub overview page.
    https://github.com/blind-coder

  • acrylian Administrator

    Indeed, he lists one. However, you need to be loggedin on GitHub to see it.

  • Hello,
    Concerning my tree installation, I have exactly what you mention except that I have no album yet neither backup yet and in the plugin/alt directory, I only have lib-auth.php, not lib-auth.diff

  • fretzl Administrator

    You're correct. In a fresh install there is no backup folder but there should be an albums folder.

    If you downloaded the plugin from here: https://github.com/blind-coder/zenLdap you'll see that there are 2 files in the alt folder.
    I see now that the lib-auth.diff file is not needed.

    Just a silly idea:
    The plugin GitHub repository and the downloaded plugin folder are named zenLdap but the plugin itself is named ldapLogon.
    Are you looking for the correct plugin name on the backend?

  • I was looking for the plugin "ldapLogon" and I did not find it.
    Is this correct ?

  • fretzl Administrator

    Yes, you should look for the "ldapLogon" plugin.

  • Hello,
    Thanks for your answer.
    I have checked for both zenLdap and ldapLogon in the plugin list of zenphoto and none of both are in the list.
    Best Regards.

    MyAGzenphoto

  • acrylian Administrator

    Having both plugins might be the reason why you don't see any. One is a fork of the other so they both use the same functions which might cause an error. You should see something about that in the error logs I already suggested to review. Remove the older plugin and try again please. The fork one does show up fine for me.

  • Hello,
    here is a part of my log files:
    {1085:Mon, 23 Oct 2017 14:26:18 GMT}

    WARNING: require_once(/var/www/html/zenphoto/zp-core/../../zp-core/classes.php): failed to open stream: No such file or directory in /var/www/html/zenphoto/zp-core/lib-auth.php on line 44

    require_once called from require_once (lib-auth.php [44])

    from require_once (auth_zp.php [14])

    from require_once (load_objectClasses.php [42])

    from require_once (functions.php [33])

    from require_once (admin-functions.php [8])

    from require_once (admin-globals.php [15])

    maybe, this can help.

    Best Regards.

    MyAGzenphoto

  • acrylian Administrator

    I looked at the newer plugin internally and it seems not be setup correctly. Line 44+ of /plugins/alt/lib-auth.php reads:
    require_once(dirname(__FILE__) . '/../../zp-core/classes.php'); require_once(dirname(__FILE__) . '/../../plugins/ldapLogon.php');

    It probably should be something like:
    require_once(dirname(__FILE__) . '/../../zp-core/classes.php'); // root is two level above require_once(dirname(__FILE__) . '/../ldapLogon.php'); // The plugins folder is one level above the /alt folder

    Or just try the actual absolute paths:
    SERVERPATH . '/'. ZENFOLDER . '/classes.php
    SERVERPATH . '/'. USER_PLUGINS_FOLDER . '/ldapLogon.php

    (I did not test these changes)

Sign In or Register to comment.