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
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
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
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.
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;
}
}
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.