Announcement

  •  » Extensions
  •  » ldap authentication in piwigo 2.7.2

#1 2014-11-26 08:24:36

anp24
Member
2014-11-26
1

ldap authentication in piwigo 2.7.2

Hello/Hi/Greetings,

I want to know if LDAP Authentication plugin is available in piwigo version 2.7.2. If not , what are other alternatives.

Thanks
Anoop

Piwigo version:
PHP version:
MySQL version:
Piwigo URL: http://

Offline

 

#2 2014-11-26 16:38:49

rtevyncke
Member
2014-07-25
15

Re: ldap authentication in piwigo 2.7.2

The author of the ldap plugin has said he has stopped development. It was a good plugin and a pity he did not continue to update.

We now do authentication with apache directly which works very well.

There is a good step-by-step instructions on how to get apache ldap working and linked with piwigo users. http://anotheritblog.net/2014/07/17/piw … ntication/

Only issue we find is that the statistics recording on each user stopped working. we are working to find the reasons for this issue at the moment.

Offline

 

#3 2014-11-27 08:22:54

nicolas
Former Piwigo Team
2004-12-30
1232

Re: ldap authentication in piwigo 2.7.2

rtevyncke wrote:

We now do authentication with apache directly which works very well.

There is a good step-by-step instructions on how to get apache ldap working and linked with piwigo users. http://anotheritblog.net/2014/07/17/piw … ntication/

The two problem with apache authentication is that users cannot disconnect and password are in plain text in each http header request.

Offline

 

#4 2015-01-22 20:15:55

joxny
Guest

Re: ldap authentication in piwigo 2.7.2

I think that apache authentification is unusable if You want provide your photos for guests.
I am supprised, that so perfect gallery, does not have implemented LDAP auth in core.

 

#5 2015-12-29 07:04:10

Takeshi Kobayakawa
Guest

Re: ldap authentication in piwigo 2.7.2

If the function call for trigger_action is renamed to trigger_notify, the plugin seems working yet.
The followings are the changes attempted.

--- plugins/Ldap_Login/main.inc.php.org    2014-02-09 18:32:24.000000000 +0900
+++ plugins/Ldap_Login/main.inc.php    2015-12-29 14:58:43.010889602 +0900
@@ -62,7 +62,7 @@
    $obj->ldap_conn() or die("Unable to connect LDAP server : ".$ldap->getErrorString());

    if (!$obj->ldap_bind_as($username,$password)){ // bind with userdn
-        trigger_action('login_failure', stripslashes($username));
+        trigger_notify('login_failure', stripslashes($username));
        return false; // wrong password
    }

@@ -74,7 +74,7 @@
   // if query is not empty, it means everything is ok and we can continue, auth is done !
       if (!empty($row['id'])) {
           log_user($row['id'], $remember_me);
-          trigger_action('login_success', stripslashes($username));
+          trigger_notify('login_success', stripslashes($username));
           return true;
       }
      
@@ -99,13 +99,13 @@
            //$row = pwg_db_fetch_assoc(pwg_query($query));

            log_user($new_id, False);
-            trigger_action('login_success', stripslashes($username));
+            trigger_notify('login_success', stripslashes($username));
            redirect('profile.php');
            return true;
        }
        // else : this is the normal behavior ! user is not created.
        else {
-        trigger_action('login_failure', stripslashes($username));
+        trigger_notify('login_failure', stripslashes($username));
        return false;
        }
       }

 

#6 2016-12-03 17:16:33

Felix
Guest

Re: ldap authentication in piwigo 2.7.2

Would be awesome to get ldap login back and working in piwigo. We might have to tackle that, would be great to see a github repo with your adjustments.

 
  •  » Extensions
  •  » ldap authentication in piwigo 2.7.2

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact