aajisaka commented on code in PR #7761:
URL: https://github.com/apache/kyuubi/pull/7761#discussion_r4124728672


##########
kyuubi-common/src/main/scala/org/apache/kyuubi/service/authentication/ldap/LdapSearch.scala:
##########
@@ -59,7 +59,7 @@ class LdapSearch(conf: KyuubiConf, ctx: DirContext) extends 
DirSearch with Loggi
     var allLdapNames: Array[String] = null
     if (LdapUtils.isDn(user)) {
       val userBaseDn: String = LdapUtils.extractBaseDn(user)
-      val userRdn: String = LdapUtils.extractFirstRdn(user)
+      val userRdn: String = 
LdapUtils.escapeLDAPSearchFilter(LdapUtils.extractFirstRdn(user))

Review Comment:
   Nice catch! Fixed in 
https://github.com/apache/kyuubi/pull/7761/commits/9bf046ab9505734b7e9c7b05edf02a9562aa8952
   Thank you @wangzhigang1999 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to