I've whipped up an LDAP integration module.
It's entirely based on the WikiMedia LDAP plugin and all I've done is modify a few bits to work with Pligg. See here for more details
Basically it validates the user against the LDAP and then if the user exists in the Pligg DB it will update the details with the latest password & email address.
If not it will create a new user.
Pligg will then continue on it's normal login procedure and validate the details against the newly created/edited user.
This method provided minimal disruption to the core Pligg code.
The code snippet below needs to be added to the Authenticate function in
/libs/login.php to add a new hook for Pligg to use on authentication.
Quote:
|
function Authenticate($username, $pass, $remember=false, $already_salted_pass='') { global $db; $dbusername=$db->escape($username); $authArray = array("username" => $dbusername, "password" => $pass, "remember" => $remember, "salted_pass" => $already_salted_pass); check_actions('user_authentication', $authArray ); $user=$db->get_row("SELECT user_id, user_pass, user_login FROM " . table_users . " WHERE user_login = '$dbusername'"); |
I have configured and tested it in my environment only. It may or may not support all of the functionality provided by the wikimedia plugin. I do not plan on making any improvements to this module as I am setting things up for a short term test environment.





Linear Mode




