#1 2014-01-20 07:08:15

jeanmarre
Member
Registered: 2013-12-23

User login after creation

Hello,
I have a problem after the creation of a user.
I can't login with the password I choose during creation. I've got the message "login attempt failed".
I tried to activate the account but I can't configure the email because I'm on a closed network.

How can I activate the account without an email ?
Thanks.

Jean-Marie

Offline

#2 2014-01-21 00:55:05

Thorsten J. Krause
datenwerke
Registered: 2012-02-15
Website

Re: User login after creation

Hi,

the account activation just creates a random password and sends it to the user - so there is no need to use it, if you manually assigned a password.
Your user is probably just missing the necessary permission to access ReportServer.

In Administation -> Permission management check the ReportServer Access permission.

Cheers,
Thorsten

Offline

#3 2014-01-22 15:53:38

jeanmarre
Member
Registered: 2013-12-23

Re: User login after creation

Hello,

Now i can login with the user but I've got an error at startup :

Error
javax.script.ScriptException: javax.script.ScriptException: net.datenwerke.security.service.security.exceptions.ViolatedSecurityException

net.datenwerke.gxtdto.client.servercommunication.exceptions.ServerCallFailedException: javax.script.ScriptException: javax.script.ScriptException: net.datenwerke.security.service.security.exceptions.ViolatedSecurityException
<br>	at net.datenwerke.rs.scripting.server.scripting.ScriptingRpcServiceImpl.executeLoginScript(ScriptingRpcServiceImpl.java:109)
<br>	at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110)
<br>	at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)
<br>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
<br>	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
<br>	at java.lang.reflect.Method.invoke(Method.java:606)
<br>	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
<br>	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
<br>	at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110)
<br>	at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)
<br>	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
<br>	at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
<br>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
<br>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
<br>	at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110)
<br>	at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)
<br>	at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
<br>	at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
<br>	at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
<br>	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
<br>	at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:89)
<br>	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
<br>	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
<br>	at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
<br>	at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
<br>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
<br>	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
<br>	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
<br>	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
<br>	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
<br>	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
<br>	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
<br>	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
<br>	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
<br>	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
<br>	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
<br>	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
<br>	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2430)
<br>	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2419)
<br>	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
<br>	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
<br>	at java.lang.Thread.run(Thread.java:744)
<br>Caused by: net.datenwerke.rs.scripting.service.scripting.exceptions.ScriptEngineException: javax.script.ScriptException: javax.script.ScriptException: net.datenwerke.security.service.security.exceptions.ViolatedSecurityException
<br>	at net.datenwerke.rs.scripting.service.scripting.engines.GroovyEngine.eval(GroovyEngine.java:62)
<br>	at net.datenwerke.rs.scripting.service.scripting.ScriptingServiceImpl.executeScript(ScriptingServiceImpl.java:200)
<br>	at net.datenwerke.rs.scripting.service.scripting.ScriptingServiceImpl.executeScript(ScriptingServiceImpl.java:245)
<br>	at net.datenwerke.rs.scripting.service.scripting.ScriptingServiceImpl.executeScript(ScriptingServiceImpl.java:288)
<br>	at net.datenwerke.rs.scripting.server.scripting.ScriptingRpcServiceImpl.executeLoginScript(ScriptingRpcServiceImpl.java:94)
<br>	... 42 more
<br>Caused by: javax.script.ScriptException: javax.script.ScriptException: net.datenwerke.security.service.security.exceptions.ViolatedSecurityException
<br>	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:138)
<br>	at net.datenwerke.rs.scripting.service.scripting.engines.GroovyEngine.eval(GroovyEngine.java:60)
<br>	... 46 more
<br>Caused by: javax.script.ScriptException: net.datenwerke.security.service.security.exceptions.ViolatedSecurityException
<br>	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:335)
<br>	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:132)
<br>	... 47 more
<br>Caused by: net.datenwerke.security.service.security.exceptions.ViolatedSecurityException
<br>	at net.datenwerke.rs.terminal.service.terminal.vfs.hooks.TreeBasedVirtualFileSystem.checkRead(TreeBasedVirtualFileSystem.java:407)
<br>	at net.datenwerke.rs.terminal.service.terminal.vfs.hooks.TreeBasedVirtualFileSystem.getLocation(TreeBasedVirtualFileSystem.java:83)
<br>	at net.datenwerke.rs.terminal.service.terminal.vfs.VirtualFileSystemDeamon.getLocation(VirtualFileSystemDeamon.java:142)
<br>	at net.datenwerke.rs.terminal.service.terminal.vfs.VirtualFileSystemDeamon.getAbsoluteLocation(VirtualFileSystemDeamon.java:104)
<br>	at net.datenwerke.rs.terminal.service.terminal.vfs.VirtualFileSystemDeamon.getLocation(VirtualFileSystemDeamon.java:80)
<br>	at net.datenwerke.rs.terminal.service.terminal.vfs.hookers.VfsObjectResolver.getParentLocation(VfsObjectResolver.java:81)
<br>	at net.datenwerke.rs.terminal.service.terminal.vfs.hookers.VfsObjectResolver.consumes(VfsObjectResolver.java:23)
<br>	at net.datenwerke.rs.terminal.service.terminal.objresolver.ObjectResolverDeamon.getObjects(ObjectResolverDeamon.java:60)
<br>	at net.datenwerke.rs.terminal.service.terminal.objresolver.ObjectResolverDeamon.getObjects(ObjectResolverDeamon.java:88)
<br>	at net.datenwerke.rs.terminal.service.terminal.objresolver.ObjectResolverDeamon.getObjects(ObjectResolverDeamon.java:84)
<br>	at net.datenwerke.rs.scripting.service.scripting.scriptservices.GlobalsWrapper.findObjects(GlobalsWrapper.java:91)
<br>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
<br>	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
<br>	at java.lang.reflect.Method.invoke(Method.java:606)
<br>	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSite.invoke(PojoMetaMethodSite.java:189)
<br>	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
<br>	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
<br>	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
<br>	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
<br>	at Script4.run(Script4.groovy:3)
<br>	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:332)
<br>	... 48 more
<br>

I 've added Full Access to the user.
Is it a problem with my configuration or I'm missing something in the user creation ?

Jean-Marie

Offline

#4 2014-01-22 21:40:55

Thorsten J. Krause
datenwerke
Registered: 2012-02-15
Website

Re: User login after creation

Hi,

your user is missing the necessary permissions to execute the login script.
Verify the permissions set on the /bin/onlogin.d folder (in ReportServers internal fileserver).
This folder and all the contained scripts must be readable and executable for all users.

Cheers,
Thorsten

Offline

#5 2014-03-03 13:00:18

jeanmarre
Member
Registered: 2013-12-23

Re: User login after creation

Hello,

How to I verify and set the permissions for the /bin/onlogin.d folder ?
I can't find the proper command in the terminal.

Jean-Marie

Offline

#6 2014-03-04 08:43:09

Thorsten J. Krause
datenwerke
Registered: 2012-02-15
Website

Re: User login after creation

Hi,

you can edit the filesystem permissions from the "Permission management" tab in the "File System" section of the admin module.
Make sure that all users have read access on "FileServer Root" and "bin" folders. Additionally execute permission on the onlogin.d folder is required.

Cheers,
Thorsten

Offline

#7 2014-12-25 12:16:23

philip_chan
Member
Registered: 2014-12-09

Re: User login after creation

I granted [root] read right to all users, /bin/ read + exec to all users as well, but I still got the "Login attempt failed." error. Only root can login the system.

where
[reportserver.properties]
rs.authenticator.pams = net.datenwerke.rs.authenticator.service.pam.UserPasswordPAM


any things missed?

Offline

#8 2014-12-25 14:28:55

philip_chan
Member
Registered: 2014-12-09

Re: User login after creation

Solved. by granting the right in "Permission Management"

Offline

Board footer

Powered by FluxBB