Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User import and group association throws ldap referral exception error #57

Closed
snazare opened this issue Aug 9, 2022 · 4 comments
Closed
Assignees
Milestone

Comments

@snazare
Copy link

snazare commented Aug 9, 2022

The issue was found by a lead while testing the Active Directory Application. He has setup the application properly, user login and group sync is working.

However, when he tries to import users or associate groups, he receives the following error:

org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getUsers' in  class com.xwiki.ldapuserimport.script.LDAPUserImportScriptService threw exception LDAPReferralException: Search result reference received, and referral following is off (10) Referral

LDAPReferralException: Referral: ldap://[ForestDnsZones.mydomain.com/DC=ForestDnsZones,DC=mydomain,DC=com](http://forestdnszones.mydomain.com/DC=ForestDnsZones,DC=mydomain,DC=com) at xwiki:LDAPUserImport.LDAPUserImportService[line 63, column 41]

        at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:308)

        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:235)

        at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)

        at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:704)

        at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:75)

        at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:242)

        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)

        at org.apache.velocity.runtime.parser.node.ASTElseIfStatement.render(ASTElseIfStatement.java:108)

        at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:190)

        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)

        at org.xwiki.velocity.internal.directive.TryCatchDirective.render(TryCatchDirective.java:86)

        at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)

        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)

        at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:171)

        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)

        at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:171)

        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)

        at org.apache.velocity.Template.merge(Template.java:358)

        at org.apache.velocity.Template.merge(Template.java:262)

        at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)

        at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)

        at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:131)

        at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:52)

        at org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:279)

        at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:182)

        at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)

        at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:309)

        at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)

        at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:88)

        at org.xwiki.display.internal.DocumentContentAsyncExecutor.executeInCurrentExecutionContext(DocumentContentAsyncExecutor.java:395)

        at org.xwiki.display.internal.DocumentContentAsyncExecutor.execute(DocumentContentAsyncExecutor.java:268)

        at org.xwiki.display.internal.DocumentContentAsyncRenderer.execute(DocumentContentAsyncRenderer.java:107)

        at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:157)

        at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:54)

        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:273)

        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)

        at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.execute(DefaultBlockAsyncRendererExecutor.java:125)

        at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:67)

        at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:43)

        at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)

        at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)

        at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:123)

        at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:52)

        at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)

        at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)

        at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1350)

        at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1487)

        at com.xpn.xwiki.doc.XWikiDocument.displayDocument(XWikiDocument.java:1436)

        at com.xpn.xwiki.api.Document.displayDocument(Document.java:779)

        at jdk.internal.reflect.GeneratedMethodAccessor306.invoke(Unknown Source)

        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.base/java.lang.reflect.Method.invoke(Method.java:566)

        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)

        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)

        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)

        at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)

        at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:704)

        at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:75)

        at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:242)

        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)

        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)

        at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:190)

        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)

        at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:171)

        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)

        at org.xwiki.velocity.internal.directive.TryCatchDirective.render(TryCatchDirective.java:86)

        at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)

        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)

        at org.apache.velocity.Template.merge(Template.java:358)

        at org.apache.velocity.Template.merge(Template.java:262)

        at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)

        at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)

        at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)

        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)

        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)

        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)

        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)

        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)

        at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)

        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)

        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)

        at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)

        at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:773)

        at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:746)

        at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:726)

        at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:712)

        at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)

        at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)

        at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2545)

        at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2523)

        at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)

        at jdk.internal.reflect.GeneratedMethodAccessor174.invoke(Unknown Source)

        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.base/java.lang.reflect.Method.invoke(Method.java:566)

        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)

        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)

        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)

        at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)

        at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)

        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)

        at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)

        at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)

        at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)

        at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)

        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)

        at org.apache.velocity.Template.merge(Template.java:358)

        at org.apache.velocity.Template.merge(Template.java:262)

        at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)

        at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)

        at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)

        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)

        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)

        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)

        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)

        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)

        at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)

        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)

        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)

        at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)

        at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:773)

        at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:746)

        at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:726)

        at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:712)

        at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)

        at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)

        at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2545)

        at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2523)

        at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)

        at jdk.internal.reflect.GeneratedMethodAccessor174.invoke(Unknown Source)

        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.base/java.lang.reflect.Method.invoke(Method.java:566)

        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)

        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)

        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)

        at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)

        at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)

        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)

        at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)

        at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)

        at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)

        at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)

        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)

        at org.apache.velocity.Template.merge(Template.java:358)

        at org.apache.velocity.Template.merge(Template.java:262)

        at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)

        at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)

        at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)

        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)

        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)

        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)

        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)

        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)

        at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)

        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)

        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)

        at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)

        at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:773)

        at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:746)

        at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:726)

        at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:712)

        at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)

        at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)

        at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2545)

        at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2523)

        at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)

        at jdk.internal.reflect.GeneratedMethodAccessor174.invoke(Unknown Source)

        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.base/java.lang.reflect.Method.invoke(Method.java:566)

        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)

        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)

        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)

        at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)

        at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)

        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)

        at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)

        at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)

        at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)

        at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)

        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)

        at org.apache.velocity.Template.merge(Template.java:358)

        at org.apache.velocity.Template.merge(Template.java:262)

        at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)

        at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)

        at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)

        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)

        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)

        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)

        at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)

        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)

        at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)

        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)

        at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)

        at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)

        at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:773)

        at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:746)

        at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:726)

        at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:712)

        at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)

        at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)

        at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2545)

        at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:179)

        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:601)

        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:289)

        at com.xpn.xwiki.web.LegacyActionServlet.service(LegacyActionServlet.java:114)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

        at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

        at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:61)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

        at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

        at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

        at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

        at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)

        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)

        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:375)

        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)

        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)

        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)

        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

        at java.base/java.lang.Thread.run(Thread.java:829)

Caused by: LDAPReferralException: Search result reference received, and referral following is off (10) Referral

LDAPReferralException: Referral: ldap://[ForestDnsZones.mydomain.com/DC=ForestDnsZones,DC=mydomain,DC=com](http://forestdnszones.mydomain.com/DC=ForestDnsZones,DC=mydomain,DC=com)

        at com.novell.ldap.LDAPSearchResults.next(LDAPSearchResults.java:253)

        at org.xwiki.contrib.ldap.PagedLDAPSearchResults.next(PagedLDAPSearchResults.java:182)

        at com.xwiki.ldapuserimport.internal.DefaultLDAPUserImportManager.getUsers(DefaultLDAPUserImportManager.java:323)

        at com.xwiki.ldapuserimport.internal.DefaultLDAPUserImportManager.getUsers(DefaultLDAPUserImportManager.java:190)

        at com.xwiki.ldapuserimport.script.LDAPUserImportScriptService.getUsers(LDAPUserImportScriptService.java:59)

        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.base/java.lang.reflect.Method.invoke(Method.java:566)

        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)

        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)

        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)

        ... 243 more
        ```
@snazare
Copy link
Author

snazare commented Aug 9, 2022

Client ad configuration (they changed the xwiki group reference in the meantime to refer to XWiki.XWikiAuthors)
ad-config

@oanalavinia
Copy link
Contributor

Related to xwikisas/application-ldapuserimport#34

@oanalavinia oanalavinia added this to the 1.15-rc-1 milestone Nov 4, 2022
@oanalavinia oanalavinia self-assigned this Nov 4, 2022
@oanalavinia
Copy link
Contributor

Closed by #60, specifically by https://jira.xwiki.org/browse/LDAP-119

@ane-gabriela
Copy link

Tested with XWiki 14.4.6 on Windows 11, with Chrome 107 and AD 1.15-rc-1 and the user import works without errors.

@oanalavinia oanalavinia modified the milestones: 1.15-rc-1, 1.15 Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants