#java #ldap #wildfly
Вопрос:
Я столкнулся с проблемой, пытаясь проверить пользовательские LDAP-файлы.
У меня есть установка веб-приложения в wildfly 23.(прямо сейчас в Windows)
Когда я пытаюсь проверить логин с учетными данными, я получаю эту ошибку:
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, javax.naming.InvalidNameException: java.naming.ldap.attributes.binary: [LDAP: error code 34 - 0000208F: NameErr: DSID-0310022D, problem 2006 (BAD_NAME), data 8350, best match of:
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, 'java.naming.ldap.attributes.binary'
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, ]; remaining name 'java.naming.ldap.attributes.binary'
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.sun.jndi.ldap.LdapCtx.searchAux(Unknown Source)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.sun.jndi.ldap.LdapCtx.c_search(Unknown Source)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(Unknown Source)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(Unknown Source)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(Unknown Source)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at javax.naming.directory.InitialDirContext.search(Unknown Source)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at javax.naming.directory.InitialDirContext.search(Unknown Source)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.davivienda.sv.sasaml.middle.services.LoginWindowsMServiceImpl.findAccountByAccountName(LoginWindowsMServiceImpl.java:170)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.davivienda.sv.sasaml.middle.services.LoginWindowsMServiceImpl.login(LoginWindowsMServiceImpl.java:88)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.davivienda.sv.sasaml.view.controllers.LoginMB.loguearUsuario(LoginMB.java:79)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at java.lang.reflect.Method.invoke(Unknown Source)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.sun.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:153)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.sun.el.parser.AstValue.invoke(AstValue.java:261)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:237)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at org.jboss.weld.module.web.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at org.jboss.weld.module.web.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at org.jboss.weld.module.web.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at org.jboss.weld.module.web.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:65)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.sun.faces.application.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:66)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.sun.faces.application.ActionListenerImpl.getNavigationOutcome(ActionListenerImpl.java:82)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:71)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at javax.faces.component.UICommand.broadcast(UICommand.java:222)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:847)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1396)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:58)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:76)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at com.davivienda.sv.sasaml.view.filters.UserValidateFilter.doFilter(UserValidateFilter.java:37)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.opentracing.contrib.jaxrs2.server.SpanFinishingFilter.doFilter(SpanFinishingFilter.java:52)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:117)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.SendErrorPageHandler.handleRequest(SendErrorPageHandler.java:52)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:269)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.server.Connectors.executeRootHandler(Connectors.java:387)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:841)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1280)
2021-10-01 09:43 29 ERROR, org.jboss.stdio.AbstractLoggingWriter, write, 71, at java.lang.Thread.run(Unknown Source)
Поэтому я не уверен, почему сервер не может решить «java.naming.ldap.attributes.binary»;
Потому что, если я попробую использовать jar в Windows, это действительно сработает, и я смогу войти в систему.
если кто-нибудь может помочь мне найти, в чем может быть проблема.
заранее спасибо!