Hi, Thanks for your answer. I think I found a beginning of a solution :
In RegisterServlet.java ( line 298 ), Dspace try to add new users in the LDAP. But He can't. So, to avoid this, I play with the conditions. I change the JSP new-ldap-user. In this file, you can write your mail only. So, if your netid is empty, you don't enter in this condition, so you add your new users in the dspace DB and not your LDAP.
So registration works. The second point is :Each time I click on the link "become a new user", I receive a error by mail :
at org.dspace.app.webui.servlet.RegisterServlet.doDSGet(RegisterServlet.java:101) The source code is : // Registering a new user if (ldap_enabled) { JSPManager.showJSP(request, response, "/register/new-ldap-user.jsp"); } JSPManager.showJSP(request, response, "/register/new-user.jsp"); So : LDAP is enabled, so the new-ldap-user.jsp is called. But, new-user.jsp too ! I don't want to change the source code. Is there a way to make a new-user.jsp empty ? <% return 0; %> or something like that ? Thanks. Le 27/09/2012 12:03, Bram Luyten a écrit :
Hi François, you might be suffering from a DSpace bug. Does it work when you configure following values in *dspace.cfg* * * ldap.provider_url ldap.id_field ldap.search_contextI know that they *should* be in authentication-ldap.cfg, but the bug you might be facing still expects them to be in dspace.cfg.If this works, we should check whether this has already officially been filed as a bug in JIRA.best regards, Bram -- logo *Bram Luyten*/@mire/ /2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010/ /Esperantolaan 4, Heverlee 3001, Belgium/<http://www.atmire.com/>www.atmire.com <http://atmire.com/website/?q=services&utm_source=emailfooter&utm_medium=email&utm_campaign=braml>On Thu, Sep 27, 2012 at 10:54 AM, François Lefebvre <francois.lefeb...@univ-lille1.fr <mailto:francois.lefeb...@univ-lille1.fr>> wrote:Hi, I'm still looking about this error. Any ideas ? In the mailing archives, I found a similar post but there is no solution. Someone wrote that he doesn't understand why there are 2 authentications. For me, we need both because we've got 2 kinds of population : from the university and the others. So the others must not appear in our LDAP. I put the logs in DEBUG mode, but I don't see something which help me. thanks. Le 26/09/2012 16:53, François Lefebvre a écrit :Hi, I'm a new dspace user. I've installed dspace 1.8.2 and I have an error when I try to register a user with the jspui interface. I'm using LDAP authentication et password, so in the authentication.cfg file I have : plugin.sequence.org.dspace.authenticate.AuthenticationMethod = \ org.dspace.authenticate.PasswordAuthentication, \ org.dspace.authenticate.LDAPAuthentication So with LDAP user, all is OK. When I try to subscribe ( the /register page ), I send the form an dspace displays "An internal server error". This is what I'm getting by mail : The first one : An internal server error occurred onhttp://iris.univ-lille1.fr/jspui <http://iris.univ-lille1.fr/jspui>: Date: 26/09/12 16:43 Session ID: 76B9E5504639E1D3FB64A8FBCC6512DA User: Anonymous IP address: xxxxxxxxxxxxxxxxxxxxxxxxx -- URL Was:http://iris.univ-lille1.fr/jspui//register -- Method: GET -- Parameters were: Exception: java.lang.IllegalStateException: Impossible d'utiliser faire-suivre (forward) après que la réponse ait été envoyée at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:312) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:60) at org.dspace.app.webui.servlet.RegisterServlet.doDSGet(RegisterServlet.java:101) at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:119) at org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:636) The second one : An internal server error occurred onhttp://iris.univ-lille1.fr/jspui <http://iris.univ-lille1.fr/jspui>: Date: 26/09/12 16:43 Session ID: 76B9E5504639E1D3FB64A8FBCC6512DA User: Anonymous IP address: xxxxxxxxxxxxxxxxxxx -- URL Was:http://iris.univ-lille1.fr/jspui//register -- Method: POST -- Parameters were: -- submit: "S'enregistrer" -- email:"bu-infor@......." <mailto:bu-infor@.......> -- netid: "buinfo" -- password: "thepassword" -- step: "1" Exception: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:411) at org.dspace.app.webui.servlet.RegisterServlet.processEnterEmail(RegisterServlet.java:298) at org.dspace.app.webui.servlet.RegisterServlet.doDSPost(RegisterServlet.java:172) at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:115) at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:73) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:636) Could you help me ? Thanks ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats.http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net <mailto:DSpace-tech@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/dspace-tech-- Cordialement.François Lefebvre Bibliothèque Universitaire de Lille 1 - bât A4/A5 Cité Scientifique - B.P. 30155 59653 VILLENEUVE D'ASCQ CEDEX Tél.: 03.20.33.60.73 ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net <mailto:DSpace-tech@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/dspace-tech
-- Cordialement. François Lefebvre Bibliothèque Universitaire de Lille 1 - bât A4/A5 Cité Scientifique - B.P. 30155 59653 VILLENEUVE D'ASCQ CEDEX Tél.: 03.20.33.60.73
<<attachment: francois_lefebvre.vcf>>
------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech