christiangierschner opened a new issue, #7842: URL: https://github.com/apache/kyuubi/issues/7842
### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) ### Search before asking - [x] I have searched in the [issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no similar issues. ### Describe the bug Hi, we have a user, that cannot login via binary and http when one of these special characters is used in password `§ ß ö ä ü €`. webui does works though...i verified each character with a testaccount binary ``` Could not open client transport with JDBC Uri: jdbc:hive2://cx-kyuubi:10009/;ssl=true;sslTrustStore=/Users/user/Downloads/kyuubissl-keystore;trustStorePassword=changeit: Peer indicated failure: Error validating the login Peer indicated failure: Error validating the login 2026-11-04 09:15:32.736 ERROR org.apache.kyuubi.shaded.thrift.transport.TSaslTransport: SASL negotiation failure javax.security.sasl.SaslException: Error validating the login [Caused by javax.security.sasl.AuthenticationException: Error validating LDAP user: testaccount [Caused by javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C09045E, comment: AcceptSecurityContext error, data 52e, v3839]]] at org.apache.kyuubi.service.authentication.PlainSASLServer.evaluateResponse(PlainSASLServer.scala:81) at org.apache.kyuubi.shaded.thrift.transport.TSaslTransport$SaslParticipant.evaluateChallengeOrResponse(TSaslTransport.java:507) at org.apache.kyuubi.shaded.thrift.transport.TSaslTransport.open(TSaslTransport.java:250) at org.apache.kyuubi.shaded.thrift.transport.TSaslServerTransport.open(TSaslServerTransport.java:42) at org.apache.kyuubi.shaded.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:226) at org.apache.kyuubi.shaded.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:227) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583) Caused by: javax.security.sasl.AuthenticationException: Error validating LDAP user: testaccount [Caused by javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C09045E, comment: AcceptSecurityContext error, data 52e, v3839]] at org.apache.kyuubi.service.authentication.ldap.LdapSearchFactory.getInstance(LdapSearchFactory.scala:37) at org.apache.kyuubi.service.authentication.LdapAuthenticationProviderImpl.createDirSearch(LdapAuthenticationProviderImpl.scala:103) at org.apache.kyuubi.service.authentication.LdapAuthenticationProviderImpl.authenticate(LdapAuthenticationProviderImpl.scala:69) at org.apache.kyuubi.service.authentication.PlainSASLHelper$PlainServerCallbackHandler.handle(PlainSASLHelper.scala:69) at org.apache.kyuubi.service.authentication.PlainSASLServer.evaluateResponse(PlainSASLServer.scala:75) ... 8 more Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C09045E, comment: AcceptSecurityContext error, data 52e, v3839] at java.naming/com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3260) at java.naming/com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3206) at java.naming/com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2992) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2906) at java.naming/com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:349) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxFromUrl(LdapCtxFactory.java:229) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:189) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:247) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84) at java.naming/javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:520) at java.naming/javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305) at java.naming/javax.naming.InitialContext.init(InitialContext.java:236) at java.naming/javax.naming.InitialContext.<init>(InitialContext.java:208) at java.naming/javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:130) at org.apache.kyuubi.service.authentication.ldap.LdapSearchFactory.createDirContext(LdapSearchFactory.scala:54) at org.apache.kyuubi.service.authentication.ldap.LdapSearchFactory.getInstance(LdapSearchFactory.scala:32) ... 12 more 2026-11-04 09:15:32.737 ERROR org.apache.kyuubi.shaded.thrift.server.TThreadPoolServer: Error occurred during processing of message. java.lang.RuntimeException: org.apache.kyuubi.shaded.thrift.transport.TTransportException: Error validating the login at org.apache.kyuubi.shaded.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:229) at org.apache.kyuubi.shaded.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:227) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583) Caused by: org.apache.kyuubi.shaded.thrift.transport.TTransportException: Error validating the login at org.apache.kyuubi.shaded.thrift.transport.TSaslTransport.sendAndThrowMessage(TSaslTransport.java:199) at org.apache.kyuubi.shaded.thrift.transport.TSaslTransport.open(TSaslTransport.java:281) at org.apache.kyuubi.shaded.thrift.transport.TSaslServerTransport.open(TSaslServerTransport.java:42) at org.apache.kyuubi.shaded.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:226) ... 4 more ``` http ``` Could not open client transport with JDBC Uri: jdbc:hive2://cx-kyuubi:10010/;transportMode=http;httpPath=cliservice/;ssl=true;sslTrustStore=/Users/user/Downloads/kyuubissl-keystore;trustStorePassword=changeit: Could not establish connection to jdbc:hive2://cx-diz-kyuubi.med.tu-dresden.de:10010/;transportMode=http;httpPath=cliservice/;ssl=true;sslTrustStore=/Users/gierschch/Downloads/kyuubissl-keystore;trustStorePassword=changeit: HTTP Response code: 401 Could not establish connection to jdbc:hive2://cx-kyuubi:10011/;transportMode=http;httpPath=cliservice/;ssl=true;sslTrustStore=/Users/user/Downloads/kyuubissl-keystore;trustStorePassword=changeit: HTTP Response code: 401 HTTP Response code: 401 2026-11-04 09:21:31.017 ERROR org.apache.kyuubi.server.http.ThriftHttpServlet: Error: javax.security.sasl.AuthenticationException: Error validating LDAP user: testaccount [Caused by javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C09045E, comment: AcceptSecurityContext error, data 52e, v3839]] at org.apache.kyuubi.service.authentication.ldap.LdapSearchFactory.getInstance(LdapSearchFactory.scala:37) at org.apache.kyuubi.service.authentication.LdapAuthenticationProviderImpl.createDirSearch(LdapAuthenticationProviderImpl.scala:103) at org.apache.kyuubi.service.authentication.LdapAuthenticationProviderImpl.authenticate(LdapAuthenticationProviderImpl.scala:69) at org.apache.kyuubi.server.http.authentication.BasicAuthenticationHandler.authenticate(BasicAuthenticationHandler.scala:84) at org.apache.kyuubi.server.http.ThriftHttpServlet.$anonfun$authenticate$1(ThriftHttpServlet.scala:282) at scala.Option.map(Option.scala:230) at org.apache.kyuubi.server.http.ThriftHttpServlet.authenticate(ThriftHttpServlet.scala:280) at org.apache.kyuubi.server.http.ThriftHttpServlet.doPost(ThriftHttpServlet.scala:116) at javax.servlet.http.HttpServlet.service(HttpServlet.java:665) at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:554) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:772) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:516) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:555) at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:410) at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:164) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583) Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C09045E, comment: AcceptSecurityContext error, data 52e, v3839] at java.naming/com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3260) at java.naming/com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3206) at java.naming/com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2992) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2906) at java.naming/com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:349) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxFromUrl(LdapCtxFactory.java:229) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:189) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:247) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84) at java.naming/javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:520) at java.naming/javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305) at java.naming/javax.naming.InitialContext.init(InitialContext.java:236) at java.naming/javax.naming.InitialContext.<init>(InitialContext.java:208) at java.naming/javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:130) at org.apache.kyuubi.service.authentication.ldap.LdapSearchFactory.createDirContext(LdapSearchFactory.scala:54) at org.apache.kyuubi.service.authentication.ldap.LdapSearchFactory.getInstance(LdapSearchFactory.scala:32) ... 46 more 2026-11-04 09:21:31.110 ERROR org.apache.kyuubi.server.http.ThriftHttpServlet: Error: javax.security.sasl.AuthenticationException: Error validating LDAP user: testaccount [Caused by javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C09045E, comment: AcceptSecurityContext error, data 52e, v3839]] at org.apache.kyuubi.service.authentication.ldap.LdapSearchFactory.getInstance(LdapSearchFactory.scala:37) at org.apache.kyuubi.service.authentication.LdapAuthenticationProviderImpl.createDirSearch(LdapAuthenticationProviderImpl.scala:103) at org.apache.kyuubi.service.authentication.LdapAuthenticationProviderImpl.authenticate(LdapAuthenticationProviderImpl.scala:69) at org.apache.kyuubi.server.http.authentication.BasicAuthenticationHandler.authenticate(BasicAuthenticationHandler.scala:84) at org.apache.kyuubi.server.http.ThriftHttpServlet.$anonfun$authenticate$1(ThriftHttpServlet.scala:282) at scala.Option.map(Option.scala:230) at org.apache.kyuubi.server.http.ThriftHttpServlet.authenticate(ThriftHttpServlet.scala:280) at org.apache.kyuubi.server.http.ThriftHttpServlet.doPost(ThriftHttpServlet.scala:116) at javax.servlet.http.HttpServlet.service(HttpServlet.java:665) at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:554) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:772) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:516) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:555) at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:410) at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:164) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583) Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C09045E, comment: AcceptSecurityContext error, data 52e, v3839] at java.naming/com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3260) at java.naming/com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3206) at java.naming/com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2992) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2906) at java.naming/com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:349) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxFromUrl(LdapCtxFactory.java:229) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:189) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:247) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84) at java.naming/javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:520) at java.naming/javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305) at java.naming/javax.naming.InitialContext.init(InitialContext.java:236) at java.naming/javax.naming.InitialContext.<init>(InitialContext.java:208) at java.naming/javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:130) at org.apache.kyuubi.service.authentication.ldap.LdapSearchFactory.createDirContext(LdapSearchFactory.scala:54) at org.apache.kyuubi.service.authentication.ldap.LdapSearchFactory.getInstance(LdapSearchFactory.scala:32) ... 46 more ``` ### Affects Version(s) 1.11.0,1.12.0 ### Kyuubi Server Log Output ```logtalk ``` ### Kyuubi Engine Log Output ```logtalk ``` ### Kyuubi Server Configurations ```yaml kyuubi.authentication=LDAP kyuubi.authentication.ldap.baseDN=OU=users,DC=domain kyuubi.authentication.ldap.bindDN= kyuubi.authentication.ldap.bindpw= kyuubi.authentication.ldap.customLDAPQuery=(&(objectclass=person)(sAMAccountName=%s)(|(memberOf:1.2.840.113556.1.4.1941:=CN=kyuubi-users,OU=users,DC=domain))) kyuubi.authentication.ldap.domain=domain kyuubi.authentication.ldap.url=ldaps://domain:636 ``` ### Kyuubi Engine Configurations ```yaml ``` ### Additional context _No response_ ### Are you willing to submit PR? - [ ] Yes. I would be willing to submit a PR with guidance from the Kyuubi community to fix. - [x] No. I cannot submit a PR at this time. -- 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]
