shiro - Zeppelin LDAP authentication -


i trying enable ldap authentication zeppelin. configuration in shiro.ini looks :

ldaprealm = org.apache.zeppelin.server.ldapgrouprealm ldaprealm.contextfactory.environment[ldap.searchbase] = ou=abcids,ou=abcpeople,o=abc ldaprealm.contextfactory.url = ldap://hostnamte.co.com:389 ldaprealm.userdntemplate = ad={0},appl\=app,ou\=applications,o\=org ldaprealm.contextfactory.authenticationmechanism = simple 

when enter credentials in login page see following exception :

 exception in login: org.apache.shiro.authc.authenticationexception: authentication token of type [class org.apache.shiro.authc.usernamepasswordtoken] not authenticated configured realms.  please ensure @ least 1 realm can authenticate these tokens.         @ org.apache.shiro.authc.pam.atleastonesuccessfulstrategy.afterallattempts(atleastonesuccessfulstrategy.java:54)         @ org.apache.shiro.authc.pam.modularrealmauthenticator.domultirealmauthentication(modularrealmauthenticator.java:235)         @ org.apache.shiro.authc.pam.modularrealmauthenticator.doauthenticate(modularrealmauthenticator.java:269)         @ org.apache.shiro.authc.abstractauthenticator.authenticate(abstractauthenticator.java:198)         @ org.apache.shiro.mgt.authenticatingsecuritymanager.authenticate(authenticatingsecuritymanager.java:106)         @ org.apache.shiro.mgt.defaultsecuritymanager.login(defaultsecuritymanager.java:270)         @ org.apache.shiro.subject.support.delegatingsubject.login(delegatingsubject.java:256)         @ org.apache.zeppelin.rest.loginrestapi.postlogin(loginrestapi.java:76)         @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)         @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62)         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)         @ java.lang.reflect.method.invoke(method.java:497)         @ org.apache.cxf.service.invoker.abstractinvoker.performinvocation(abstractinvoker.java:180)         @ org.apache.cxf.service.invoker.abstractinvoker.invoke(abstractinvoker.java:96)         @ org.apache.cxf.jaxrs.jaxrsinvoker.invoke(jaxrsinvoker.java:192)         @ org.apache.cxf.jaxrs.jaxrsinvoker.invoke(jaxrsinvoker.java:100)         @ org.apache.cxf.interceptor.serviceinvokerinterceptor$1.run(serviceinvokerinterceptor.java:57)         @ org.apache.cxf.interceptor.serviceinvokerinterceptor.handlemessage(serviceinvokerinterceptor.java:93)         @ org.apache.cxf.phase.phaseinterceptorchain.dointercept(phaseinterceptorchain.java:272)         @ org.apache.cxf.transport.chaininitiationobserver.onmessage(chaininitiationobserver.java:121)         @ org.apache.cxf.transport.http.abstracthttpdestination.invoke(abstracthttpdestination.java:239)         @ org.apache.cxf.transport.servlet.servletcontroller.invokedestination(servletcontroller.java:248)         @ org.apache.cxf.transport.servlet.servletcontroller.invoke(servletcontroller.java:222)         @ org.apache.cxf.transport.servlet.servletcontroller.invoke(servletcontroller.java:153)         @ org.apache.cxf.transport.servlet.cxfnonspringservlet.invoke(cxfnonspringservlet.java:167)         @ org.apache.cxf.transport.servlet.abstracthttpservlet.handlerequest(abstracthttpservlet.java:286)         @ org.apache.cxf.transport.servlet.abstracthttpservlet.dopost(abstracthttpservlet.java:206)         @ javax.servlet.http.httpservlet.service(httpservlet.java:595)         @ org.apache.cxf.transport.servlet.abstracthttpservlet.service(abstracthttpservlet.java:262)         @ org.eclipse.jetty.servlet.servletholder.handle(servletholder.java:812)         @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1669)         @ org.apache.shiro.web.servlet.proxiedfilterchain.dofilter(proxiedfilterchain.java:61)         @ org.apache.shiro.web.servlet.advicefilter.executechain(advicefilter.java:108)         @ org.apache.shiro.web.servlet.advicefilter.dofilterinternal(advicefilter.java:137)         @ org.apache.shiro.web.servlet.onceperrequestfilter.dofilter(onceperrequestfilter.java:125)         @ org.apache.shiro.web.servlet.proxiedfilterchain.dofilter(proxiedfilterchain.java:66)         @ org.apache.shiro.web.servlet.abstractshirofilter.executechain(abstractshirofilter.java:449)         @ org.apache.shiro.web.servlet.abstractshirofilter$1.call(abstractshirofilter.java:365)         @ org.apache.shiro.subject.support.subjectcallable.docall(subjectcallable.java:90)         @ org.apache.shiro.subject.support.subjectcallable.call(subjectcallable.java:83)         @ org.apache.shiro.subject.support.delegatingsubject.execute(delegatingsubject.java:383)         @ org.apache.shiro.web.servlet.abstractshirofilter.dofilterinternal(abstractshirofilter.java:362)         @ org.apache.shiro.web.servlet.onceperrequestfilter.dofilter(onceperrequestfilter.java:125)         @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1652)         @ org.apache.zeppelin.server.corsfilter.dofilter(corsfilter.java:72)         @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1652)         @ org.eclipse.jetty.servlet.servlethandler.dohandle(servlethandler.java:585)         @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:143)         @ org.eclipse.jetty.security.securityhandler.handle(securityhandler.java:577)         @ org.eclipse.jetty.server.session.sessionhandler.dohandle(sessionhandler.java:223)         @ org.eclipse.jetty.server.handler.contexthandler.dohandle(contexthandler.java:1127)         @ org.eclipse.jetty.servlet.servlethandler.doscope(servlethandler.java:515)         @ org.eclipse.jetty.server.session.sessionhandler.doscope(sessionhandler.java:185)         @ org.eclipse.jetty.server.handler.contexthandler.doscope(contexthandler.java:1061)         @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:141)         @ org.eclipse.jetty.server.handler.contexthandlercollection.handle(contexthandlercollection.java:215)         @ org.eclipse.jetty.server.handler.handlerwrapper.handle(handlerwrapper.java:97)         @ org.eclipse.jetty.server.server.handle(server.java:499)         @ org.eclipse.jetty.server.httpchannel.handle(httpchannel.java:311)         @ org.eclipse.jetty.server.httpconnection.onfillable(httpconnection.java:257)         @ org.eclipse.jetty.io.abstractconnection$2.run(abstractconnection.java:544)         @ org.eclipse.jetty.util.thread.queuedthreadpool.runjob(queuedthreadpool.java:635)         @ org.eclipse.jetty.util.thread.queuedthreadpool$3.run(queuedthreadpool.java:555)         @ java.lang.thread.run(thread.java:745) 

any idea going on?

it sounds realm not configured

try adding: securitymanager.realm = $ldaprealm main section of shiro.ini.

or if have securitymanager.realm(s) line, append end (if want use more 1 realm)

[main] ... securitymanager.realms = $otherrealm,$ldaprealm


Comments