• Resolved danilocubrovic

    (@danilocubrovic)


    Can it be used with Drupal 7 hashed passwords?
    If can what I have to setup for “Password Hashing”.
    As I have figured out drupal 7 uses sha512 but in loop n times plus salt…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author tbenyon

    (@tbenyon)

    Hey @danilocubrovic,

    It certainly can but because it appears Drupal uses a very custom approach to validate passwords, you would have to give the plugin the logic of validating your passwords.

    This can be achieved by utilising this logic with the plugins exlog_hook_filter_authenticate_hash.

    You can find documentation on how to use the hook in the FAQ section under the title “What hooks are available in the External Login flow?”.

    You’ll need to do the dev work in making this work yourself (or find a developer who’s willing to write this custom implementation for you).

    I’m going to mark this as resolved as I think I’ve answered your question but if you have any additional questions on how to use the hook or the plugin please don’t hesitate to get back to me. 🙂

    Thanks @danilocubrovic,

    Tom 🙂

    Thread Starter danilocubrovic

    (@danilocubrovic)

    You point me in the right direction. I have solved it by adding drupal’s passord.inc file and your hook to use it for hash. Now it works well.

    require “password.inc”;

    function myExlogHashAuthenticator($password, $hashFromDatabase, $username, $externalUserData) {
    $object = new stdClass();
    foreach ($externalUserData as $key => $value){
    $object->$key = $value;
    }
    $amireal = user_check_password($password, $object);
    if ($amireal == TRUE) {
    return true;
    }
    return false;
    }
    add_filter(‘exlog_hook_filter_authenticate_hash’, ‘myExlogHashAuthenticator’, 10, 4);

    Plugin Author tbenyon

    (@tbenyon)

    I have solved it by adding drupal’s passord.inc file

    GREAT IDEA!!!

    I’m sure others will find it useful so thanks for sharing back here.

    If it all works I’d be grateful if you could write a review or even buy me a beer.

    Thanks,

    Tom 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Drupal 7 hash’ is closed to new replies.