Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ private void setLdapTemplateNoPool(String ldapPassword) {
contextSource.setPassword(ldapPassword);
contextSource.afterPropertiesSet();
ldapTemplateNoPool = new LdapTemplate(contextSource);
ldapTemplateNoPool.setIgnorePartialResultException(true);
}

private void setLdapTemplatePool(String ldapPassword) {
Expand Down Expand Up @@ -100,6 +101,7 @@ private void setLdapTemplatePool(String ldapPassword) {

TransactionAwareContextSourceProxy proxy = new TransactionAwareContextSourceProxy(poolingContextSource);
ldapTemplatePool = new LdapTemplate(proxy);
ldapTemplatePool.setIgnorePartialResultException(true);
}

public boolean checkUpdate(String ldapPassword) {
Expand Down Expand Up @@ -145,6 +147,7 @@ boolean checkPassword(String userName, String password) {
.filter(getUserFilter(LdapConfig.ldap_user_filter, userName)), password);
return true;
} catch (Exception e) {
LOG.info("ldap client checkPassword failed, userName: {}", userName, e);
return false;
}
}
Expand Down