Apache-AuthPerLDAP

 view release on metacpan or  search on metacpan

AuthPerLDAP.pm  view on Meta::CPAN

        $r->note_basic_auth_failure;
        $r->log_reason("user $username: username not found",$r->uri);
        return AUTH_REQUIRED;
    }

# Found username in LDAP database, get its DN

    my $dn = $entry->getDN();

#
# Try to rebind with the users DN and password.
#

    unless (($dn ne "") && ($conn->simpleAuth($dn, $password))) {
        $r->note_basic_auth_failure;
        $r->log_reason("user $username: invalid password", $r->uri);
        return AUTH_REQUIRED;
    }

return OK;



( run in 1.218 second using v1.01-cache-2.11-cpan-2398b32b56e )