• When logging in to wordpress, one can determine whether or not a given username has a record in LDAP by attempting to login as that user with an incorrect password. The error message produced when the user is present in LDAP is different than when the user is not present in LDAP.

    The relevant code is in lib/wpmu_ldap.functions.php :
    $errors->add('invalid_userpass', __('<strong>ERROR</strong>: Wrong username / password combination. LDAP Access Denied.'));

    To match the error if the user does not exist in LDAP, it should be:

    $errors->add('invalid_userpass', __('<strong>ERROR</strong>: Wrong username / password combination.'));

    http://wordpress.org/extend/plugins/wpmuldap/

  • The topic ‘[Plugin: WPMU Ldap Authentication] LDAP password error different than default password error’ is closed to new replies.