/** * Only returns if the user is already in the database and has a DN value in * the password table. Note: after a call to * {@link #checkPassword(String, String, boolean)} with this same user value, this * method might begin to return {@code true} due to a call to * {@link LdapImpl#createUser(String, String)}. */ @Override public boolean hasPassword(String user) { if (ldapUtil.getSetting()) { Long id = util.userId(user); if (id != null) { String dn = ldapUtil.lookupLdapAuthExperimenter(id); if (dn != null) { return true; } } } return false; }
/** * Only returns if the user is already in the database and has a DN value in * the password table. Note: after a call to * {@link #checkPassword(String, String,boolean)} with this same user value, this * method might begin to return {@code true} due to a call to * {@link LdapImpl#createUser(String, String)}. */ @Override public boolean hasPassword(String user) { if (ldapUtil.getSetting()) { Long id = util.userId(user); if (id != null) { String dn = ldapUtil.lookupLdapAuthExperimenter(id); if (dn != null) { return true; } } } return false; }
@Override public Boolean checkPassword(String user, String password, boolean readOnly) { if (!ldapUtil.getSetting()) { return null; // EARLY EXIT!
@Override public Boolean checkPassword(String user, String password, boolean readOnly) { if (!ldapUtil.getSetting()) { return null; // EARLY EXIT!