Hi, François, it's possible the problem you have found may have something to do with this issue:
https://jira.duraspace.org/browse/DS-1007 But, I think it's likely you've found a new issue specific to the LDAP AuthN code. I'd suggest opening a Jira ticket for this issue http://jira.dspace.org/ and include any patches/workarounds you find which help with the problem. This will help us track down, and possibly fix, the problem. Posting workarounds in a Jira ticket will help others who may encounter the issue. Thanks! -- HARDY POTTINGER <pottinge...@umsystem.edu> University of Missouri Library Systems http://lso.umsystem.edu/~pottingerhj/ https://MOspace.umsystem.edu/ "No matter how far down the wrong road you've gone, turn back." --Turkish proverb On 9/27/12 6:37 AM, "François Lefebvre" <francois.lefeb...@univ-lille1.fr> wrote: > > > >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_context > > >I 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 > >-- > >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=e >mail&utm_campaign=braml> > > >On Thu, Sep 27, 2012 at 10:54 AM, François Lefebvre ><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(ApplicationDispat >cher.java:312) > at >org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatch >er.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.ja >va: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(Applicati >onFilterChain.java:290) > at >org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter >Chain.java:206) > at >org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappSe >rvletFilter.java:78) > at >org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati >onFilterChain.java:235) > at >org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter >Chain.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:1 >27) > at >org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1 >02) > at >org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja >va: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:70 >5) > at >org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.ja >va:898) > at >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.j >ava: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(RegisterSer >vlet.java:298) > at >org.dspace.app.webui.servlet.RegisterServlet.doDSPost(RegisterServlet.java >:172) > at >org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.ja >va: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(Applicati >onFilterChain.java:290) > at >org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter >Chain.java:206) > at >org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappSe >rvletFilter.java:78) > at >org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati >onFilterChain.java:235) > at >org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter >Chain.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:1 >27) > at >org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1 >02) > at >org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja >va: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:70 >5) > at >org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.ja >va:898) > at >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.j >ava: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.nethttps://lists.sourceforge.net/lists/listi >nfo/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 >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 https://lists.sourceforge.net/lists/listinfo/dspace-tech