We're Hiring!

ldap AuthenticationException after fresh installing

Having a problem deploying OMERO? Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

Re: ldap AuthenticationException after fresh installing

Postby saleht » Wed Nov 23, 2016 9:44 am

i think something wrong in my configuration but where i don't know
and query from Linux works perfectly
saleht
 
Posts: 96
Joined: Wed Nov 16, 2016 1:06 pm

Re: ldap AuthenticationException after fresh installing

Postby atarkowska » Wed Nov 23, 2016 9:56 am

I think
Code: Select all
omero.ldap.user_filter=(memberOf=CN=CAi_Allgemein)
should contains full DN
Code: Select all
omero.ldap.user_filter=(memberOf=CN=CAi_Allgemein,dc=ad,dc=hhu,dc=de)


Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: ldap AuthenticationException after fresh installing

Postby atarkowska » Wed Nov 23, 2016 9:59 am

also, if you are not doing any group filtering would be worth just setting:

Code: Select all
omero.ldap.new_user_group=:query:(member=@{dn})


Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: ldap AuthenticationException after fresh installing

Postby saleht » Wed Nov 23, 2016 10:39 am

Hi
i did nothing works :(
saleht
 
Posts: 96
Joined: Wed Nov 16, 2016 1:06 pm

Re: ldap AuthenticationException after fresh installing

Postby atarkowska » Wed Nov 23, 2016 10:52 am

Just to double check, did you restart OMERO server after each change?

Code: Select all
bin/omero admin stop
bin/omero admin start


What
Code: Select all
bin/omero login -u saleht -s localhost -p 4064
says?

Also what is in Blitz-0.log while you are trying to log in?

Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: ldap AuthenticationException after fresh installing

Postby saleht » Wed Nov 23, 2016 11:11 am

yes i restarted it after changing configuration

and
bin/omero login -u saleht -s localhost -p 4064

check failed for 'saleht': []


log here
2016-11-23 12:05:42,151 INFO [ ome.services.util.ServiceHandler] (l.Server-2) Excp: ome.conditions.RemovedSessionException: No context for e3eea7c8-4517-48ff-be56-a5fee408511e
2016-11-23 12:05:42,155 INFO [ ome.services.util.ServiceHandler] (l.Server-4) Meth: interface ome.api.ISession.getSession
2016-11-23 12:05:42,155 INFO [ ome.services.util.ServiceHandler] (l.Server-4) Args: [f6192f48-9f32-4e12-b5ec-e43d83875dc0]
2016-11-23 12:05:42,155 INFO [ org.perf4j.TimingLogger] (l.Server-4) start[1479899142155] time[0] tag[omero.call.exception]
2016-11-23 12:05:42,155 INFO [ ome.services.util.ServiceHandler] (l.Server-4) Excp: ome.conditions.RemovedSessionException: No context for f6192f48-9f32-4e12-b5ec-e43d83875dc0
2016-11-23 12:05:42,159 INFO [ ome.services.util.ServiceHandler] (l.Server-0) Meth: interface ome.api.ISession.getSession
2016-11-23 12:05:42,159 INFO [ ome.services.util.ServiceHandler] (l.Server-0) Args: [624e9828-dd1f-4302-95b1-8ebdd259faa5]
2016-11-23 12:05:42,159 INFO [ org.perf4j.TimingLogger] (l.Server-0) start[1479899142159] time[0] tag[omero.call.exception]
2016-11-23 12:05:42,159 INFO [ ome.services.util.ServiceHandler] (l.Server-0) Excp: ome.conditions.RemovedSessionException: No context for 624e9828-dd1f-4302-95b1-8ebdd259faa5
2016-11-23 12:05:42,163 INFO [ ome.services.util.ServiceHandler] (l.Server-7) Meth: interface ome.api.ISession.getSession
2016-11-23 12:05:42,163 INFO [ ome.services.util.ServiceHandler] (l.Server-7) Args: [7c103922-c191-4125-b98e-3205be13e7c5]
2016-11-23 12:05:42,163 INFO [ org.perf4j.TimingLogger] (l.Server-7) start[1479899142163] time[0] tag[omero.call.exception]
2016-11-23 12:05:42,163 INFO [ ome.services.util.ServiceHandler] (l.Server-7) Excp: ome.conditions.RemovedSessionException: No context for 7c103922-c191-4125-b98e-3205be13e7c5
2016-11-23 12:05:42,167 INFO [ ome.services.util.ServiceHandler] (l.Server-8) Meth: interface ome.api.ISession.getSession
2016-11-23 12:05:42,167 INFO [ ome.services.util.ServiceHandler] (l.Server-8) Args: [f3cc0f2e-c09a-41d3-b813-ef5ad6c90bc3]
2016-11-23 12:05:42,167 INFO [ org.perf4j.TimingLogger] (l.Server-8) start[1479899142167] time[0] tag[omero.call.exception]
2016-11-23 12:05:42,167 INFO [ ome.services.util.ServiceHandler] (l.Server-8) Excp: ome.conditions.RemovedSessionException: No context for f3cc0f2e-c09a-41d3-b813-ef5ad6c90bc3
2016-11-23 12:05:42,170 INFO [ ome.services.util.ServiceHandler] (l.Server-5) Meth: interface ome.api.ISession.getSession
2016-11-23 12:05:42,170 INFO [ ome.services.util.ServiceHandler] (l.Server-5) Args: [951f51c5-7c8b-4e4a-9832-3671b12d4b7d]
2016-11-23 12:05:42,170 INFO [ org.perf4j.TimingLogger] (l.Server-5) start[1479899142170] time[0] tag[omero.call.exception]
2016-11-23 12:05:42,170 INFO [ ome.services.util.ServiceHandler] (l.Server-5) Excp: ome.conditions.RemovedSessionException: No context for 951f51c5-7c8b-4e4a-9832-3671b12d4b7d
2016-11-23 12:05:42,176 INFO [ ome.services.util.ServiceHandler] (l.Server-6) Meth: interface ome.api.ISession.getSession
2016-11-23 12:05:42,176 INFO [ ome.services.util.ServiceHandler] (l.Server-6) Args: [a7c070cf-5abf-475b-adc6-820405f7cf05]
2016-11-23 12:05:42,176 INFO [ org.perf4j.TimingLogger] (l.Server-6) start[1479899142176] time[0] tag[omero.call.exception]
2016-11-23 12:05:42,176 INFO [ ome.services.util.ServiceHandler] (l.Server-6) Excp: ome.conditions.RemovedSessionException: No context for a7c070cf-5abf-475b-adc6-820405f7cf05
2016-11-23 12:05:42,180 INFO [ ome.services.util.ServiceHandler] (l.Server-1) Meth: interface ome.api.ISession.getSession
2016-11-23 12:05:42,180 INFO [ ome.services.util.ServiceHandler] (l.Server-1) Args: [4627e2b9-1ca7-4944-baa0-5441d88fdd16]
2016-11-23 12:05:42,180 INFO [ org.perf4j.TimingLogger] (l.Server-1) start[1479899142180] time[0] tag[omero.call.exception]
2016-11-23 12:05:42,180 INFO [ ome.services.util.ServiceHandler] (l.Server-1) Excp: ome.conditions.RemovedSessionException: No context for 4627e2b9-1ca7-4944-baa0-5441d88fdd16
2016-11-23 12:05:42,184 INFO [ ome.services.util.ServiceHandler] (l.Server-9) Meth: interface ome.api.ISession.getSession
2016-11-23 12:05:42,184 INFO [ ome.services.util.ServiceHandler] (l.Server-9) Args: [46434e43-51ea-4675-a45f-2f36fae75947]
2016-11-23 12:05:42,184 INFO [ org.perf4j.TimingLogger] (l.Server-9) start[1479899142184] time[0] tag[omero.call.exception]
2016-11-23 12:05:42,184 INFO [ ome.services.util.ServiceHandler] (l.Server-9) Excp: ome.conditions.RemovedSessionException: No context for 46434e43-51ea-4675-a45f-2f36fae75947
2016-11-23 12:05:42,191 INFO [ ome.services.util.ServiceHandler] (l.Server-0) Meth: interface ome.api.ISession.getSession
2016-11-23 12:05:42,191 INFO [ ome.services.util.ServiceHandler] (l.Server-0) Args: [1f238c54-1b9a-4bce-91bb-4f0c9130a20a]
2016-11-23 12:05:42,191 INFO [ org.perf4j.TimingLogger] (l.Server-0) start[1479899142191] time[0] tag[omero.call.exception]
2016-11-23 12:05:42,191 INFO [ ome.services.util.ServiceHandler] (l.Server-0) Excp: ome.conditions.RemovedSessionException: No context for 1f238c54-1b9a-4bce-91bb-4f0c9130a20a
2016-11-23 12:06:00,019 INFO [ ome.services.blitz.fire.SessionManagerI] (2-thread-2) Performing requestHeartbeats
saleht
 
Posts: 96
Joined: Wed Nov 16, 2016 1:06 pm

Re: ldap AuthenticationException after fresh installing

Postby atarkowska » Wed Nov 23, 2016 11:58 am

Could you try minimum config like http://www.openmicroscopy.org/site/supp ... figuration

and identify what may not be working? I would recommand to do it on testing instance of omero server in case you need to wipe the database.

Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: ldap AuthenticationException after fresh installing

Postby saleht » Wed Nov 23, 2016 12:45 pm

i re confiured it
[omero@localhost OMERO.server]$ bin/omero config get --hide-password
omero.data.dir=/mnt/data/OMERO
omero.db.name=omero_database
omero.db.pass=********
omero.db.user=omero_user
omero.ldap.base=dc=AD,dc=hhu,dc=de
omero.ldap.config=true
omero.ldap.password=********
omero.ldap.urls=ldap://SVR-HHU-DC-1.ad.hhu.de:389
omero.ldap.username=SVC_Omero
omero.web.application_server=wsgi-tcp
omero.web.debug=True

when i doing
bin/omero ldap discover
i got Exception

[omero@localhost OMERO.server]$ bin/omero ldap discover
Using session e6048f2c-53ae-4d64-b02a-097a55ff92a6 (root@localhost:4064). Idle timeout: 10 min. Current group: system
Traceback (most recent call last):
File "bin/omero", line 125, in <module>
rv = omero.cli.argv()
File "/home/omero/OMERO.server-5.2.6-ice36-b35/lib/python/omero/cli.py", line 1438, in argv
cli.invoke(args[1:])
File "/home/omero/OMERO.server-5.2.6-ice36-b35/lib/python/omero/cli.py", line 952, in invoke
stop = self.onecmd(line, previous_args)
File "/home/omero/OMERO.server-5.2.6-ice36-b35/lib/python/omero/cli.py", line 1029, in onecmd
self.execute(line, previous_args)
File "/home/omero/OMERO.server-5.2.6-ice36-b35/lib/python/omero/cli.py", line 1111, in execute
args.func(args)
File "/home/omero/OMERO.server-5.2.6-ice36-b35/lib/python/omero/cli.py", line 595, in _check_admin
return func(*args, **kwargs)
File "/home/omero/OMERO.server-5.2.6-ice36-b35/lib/python/omero/plugins/ldap.py", line 202, in discover
elements = ildap.discover()
File "/home/omero/OMERO.server-5.2.6-ice36-b35/lib/python/omero_api_ILdap_ice.py", line 574, in discover
return _M_omero.api.ILdap._op_discover.invoke(self, ((), _ctx))
omero.InternalException: exception ::omero::InternalException
{
serverStackTrace = ome.conditions.InternalException: Wrapped Exception: (org.springframework.ldap.PartialResultException):
Unprocessed Continuation Reference(s); nested exception is javax.naming.PartialResultException: Unprocessed Continuation Reference(s); remaining name ''
at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:203)
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:315)
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:259)
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:606)
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:524)
at ome.logic.LdapImpl.mapUserName(LdapImpl.java:197)
at ome.logic.LdapImpl.findExperimenter(LdapImpl.java:174)
at ome.logic.LdapImpl.discover(LdapImpl.java:708)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at ome.security.basic.EventHandler.invoke(EventHandler.java:154)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:111)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:108)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:249)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:121)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy95.discover(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.java:93)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:43)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy95.discover(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at ome.services.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java:172)
at ome.services.throttling.Callback.run(Callback.java:56)
at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56)
at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:140)
at ome.services.blitz.impl.LdapI.discover_async(LdapI.java:121)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at omero.cmd.CallContext.invoke(CallContext.java:78)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy96.discover_async(Unknown Source)
at omero.api._ILdapTie.discover_async(_ILdapTie.java:72)
at omero.api._ILdapDisp.___discover(_ILdapDisp.java:500)
at omero.api._ILdapDisp.__dispatch(_ILdapDisp.java:583)
at IceInternal.Incoming.invoke(Incoming.java:221)
at Ice.ConnectionI.invokeAll(ConnectionI.java:2536)
at Ice.ConnectionI.dispatch(ConnectionI.java:1145)
at Ice.ConnectionI.message(ConnectionI.java:1056)
at IceInternal.ThreadPool.run(ThreadPool.java:395)
at IceInternal.ThreadPool.access$300(ThreadPool.java:12)
at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:832)
at java.lang.Thread.run(Thread.java:745)

serverExceptionClass = ome.conditions.InternalException
message = Wrapped Exception: (org.springframework.ldap.PartialResultException):
Unprocessed Continuation Reference(s); nested exception is javax.naming.PartialResultException: Unprocessed Continuation Reference(s); remaining name ''
saleht
 
Posts: 96
Joined: Wed Nov 16, 2016 1:06 pm

Re: ldap AuthenticationException after fresh installing

Postby atarkowska » Wed Nov 23, 2016 1:55 pm

I think you have to follow referrals, would you like to look at other suggestions with how to get LDAP plugin to work with AD viewtopic.php?f=5&t=941? Unfortunately we have little experience testing the LDAP plugin with AD

Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Previous

Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest

cron