This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push: new 18c9688d42b branch-3.0: [fix](auth)ldap template ignore partial result exception #47858 (#48357) 18c9688d42b is described below commit 18c9688d42b407592070ea790da38edd3ad14cb4 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> AuthorDate: Thu Feb 27 17:51:52 2025 +0800 branch-3.0: [fix](auth)ldap template ignore partial result exception #47858 (#48357) Cherry-picked from #47858 Co-authored-by: zhangdong <zhangd...@selectdb.com> --- .../main/java/org/apache/doris/mysql/authenticate/ldap/LdapClient.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fe/fe-core/src/main/java/org/apache/doris/mysql/authenticate/ldap/LdapClient.java b/fe/fe-core/src/main/java/org/apache/doris/mysql/authenticate/ldap/LdapClient.java index 8d1304658ff..3ae96945296 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/mysql/authenticate/ldap/LdapClient.java +++ b/fe/fe-core/src/main/java/org/apache/doris/mysql/authenticate/ldap/LdapClient.java @@ -72,6 +72,7 @@ public class LdapClient { contextSource.setPassword(ldapPassword); contextSource.afterPropertiesSet(); ldapTemplateNoPool = new LdapTemplate(contextSource); + ldapTemplateNoPool.setIgnorePartialResultException(true); } private void setLdapTemplatePool(String ldapPassword) { @@ -100,6 +101,7 @@ public class LdapClient { TransactionAwareContextSourceProxy proxy = new TransactionAwareContextSourceProxy(poolingContextSource); ldapTemplatePool = new LdapTemplate(proxy); + ldapTemplatePool.setIgnorePartialResultException(true); } public boolean checkUpdate(String ldapPassword) { @@ -145,6 +147,7 @@ public class LdapClient { .filter(getUserFilter(LdapConfig.ldap_user_filter, userName)), password); return true; } catch (Exception e) { + LOG.info("ldap client checkPassword failed, userName: {}", userName, e); return false; } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org