[Dspace-tech] self-registered button & e-persons' password

85 views
Skip to first unread message

Vera Kriezi

unread,
Aug 26, 2015, 9:59:20 AM8/26/15
to DSpac...@lists.sourceforge.net
Dear all,

I am trying to create e-persons to submit items to a collection and assign them to a group with submission priviledges.
The problem is that I can not find a way to set a password (or even to say: I forgot the password, so the user should first register in order to set his own password, as instructed). I realised that DSPACE does not have the option to set passwords for users/epersons for security reasons. 
But, from the jspui there is no option for users to self-register. Is there any way to set this from dspace.cfg ?

thanks,

Vera Kriezi
Music Library "Lilian Voudouri" 
Athens, GR

--
β.

helix84

unread,
Aug 26, 2015, 9:59:21 AM8/26/15
to Vera Kriezi, DSpac...@lists.sourceforge.net
On Wed, Oct 24, 2012 at 2:30 PM, Vera Kriezi <vera....@gmail.com> wrote:
> I am trying to create e-persons to submit items to a collection and assign
> them to a group with submission priviledges.
> The problem is that I can not find a way to set a password (or even to say:
> I forgot the password, so the user should first register in order to set his
> own password, as instructed). I realised that DSPACE does not have the
> option to set passwords for users/epersons for security reasons.
> But, from the jspui there is no option for users to self-register. Is there
> any way to set this from dspace.cfg ?

Hi Vera,

although I'm not completely familiar with the JSPUI specifics, I
know there's a registration page. Try entering
http://www.yourdspace.com/register, it should show up. You can
register the users there (this is the same page they would use to
register themselves) with their email addresses and they will receive
an email telling them how they can set a password.

I'm not completely sure, but I think they're in the database as users
even before they set the password, so you should be able to assign
them to a group. Even if not, you can wait for their registration
notification to be sent to your email (registration.notify =
your...@example.com) and do it then.

Regards,
~~helix84

helix84

unread,
Aug 26, 2015, 9:59:23 AM8/26/15
to Vera Kriezi, DSpac...@lists.sourceforge.net
On Wed, Oct 24, 2012 at 2:52 PM, Vera Kriezi <vera....@gmail.com> wrote:
> I tried to access mydspace/register page and it is working. When I put the
> email address the system says that:
>
> Already Registered
>
> Our records show that you've already registered with DSpace and have an
> active account with us.

That means that the email address you put into the registration form
already has a DSpace account. In that case
1) you shouldn't change the password of this user
2) you should be able to just assign him to a group

> The configuration of this DSpace site means that you need a valid Web
> certificate to log in.

Hmm, it seems like you're using the X509Authentication authentication
method (client certificates). That means that the user with the email
you specified is not logging in using a password, but a personal
certificate installed in your web browser. I don't have experience
with those, but as I wrote before, it shouldn't be necessary because
the user already exists.

Regards,
~~helix84

Vera Kriezi

unread,
Aug 26, 2015, 9:59:23 AM8/26/15
to hel...@centrum.sk, DSpac...@lists.sourceforge.net
Hi Helix,
thanks for the answer.

I tried to access mydspace/register page and it is working. When I put the email address the system says that:

Already Registered

Our records show that you've already registered with DSpace and have an active account with us.

You can set a new password if youve forgotten it.


So, the /forgot page appears again. If I press I forgot my password button then I got this message:

Certificate Required

The configuration of this DSpace site means that you need a valid Web certificate to log in.

Regards,

Vera

--
β.

Hardik Mishra

unread,
Aug 26, 2015, 9:59:28 AM8/26/15
to vera....@gmail.com, dspac...@lists.sourceforge.net
Vera,

There is an option of self-register under My Dpsace and When you get Login screen.


Pre-requisite is to have e-mail settings enabled.

Its bit old but should work.

Thanks
Hardik Mishra

essage: 8
Date: Wed, 24 Oct 2012 15:30:27 +0300
From: Vera Kriezi <vera....@gmail.com>
Subject: [Dspace-tech] self-registered button & e-persons' password
Message-ID:
<CADfVMEcFdnx4VK0jbHV1fnGZ4CxjE7s7=q0L6cTdn...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Dear all,

I am trying to create e-persons to submit items to a collection and assign
them to a group with submission priviledges.
The problem is that I can not find a way to set a password (or even to say:
I forgot the password, so the user should first register in order to set
his own password, as instructed).

 I realised that DSPACE does not have the
option to set passwords for users/epersons for security reasons.

But, from the jspui there is no option for users to self-register. Is there
any way to set this from dspace.cfg ?

Vera Kriezi

unread,
Aug 26, 2015, 9:59:29 AM8/26/15
to Hardik Mishra, dspac...@lists.sourceforge.net
Unfortunately, 
when I try to register a new user a get an internal error.
I checked the dspace log file and I only saw these:



2012-10-24 16:36:10,437 DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query "select * from eperson where email = ? "  with parameters: a.chark...@megaron.gr
2012-10-24 16:36:10,656 INFO  org.dspace.app.webui.servlet.RegisterServlet @ anonymous:session_id=4CA712FE7AD7B0E0B6D0FD011B303537:ip_addr=192.168.0.150:sendtoken_register:email=a.chark...@megaron.gr
2012-10-24 16:36:10,656 DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query "select * from registrationdata where email = ? "  with parameters: a.chark...@megaron.gr
2012-10-24 16:36:10,671 DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query "INSERT INTO registrationdata ( registrationdata_id,expires,token,email) VALUES ( getnextid('registrationdata'),?,?,?) RETURNING registrationdata_id"
2012-10-24 16:36:10,671 DEBUG org.dspace.eperson.AccountManager @ Created callback 4 with token d8aa13749cb4575fff3be537eedad908 with email "a.chark...@megaron.gr"
2012-10-24 16:36:10,718 INFO  org.dspace.app.webui.servlet.RegisterServlet @ anonymous:session_id=4CA712FE7AD7B0E0B6D0FD011B303537:ip_addr=192.168.0.150:error_emailing:email=a.chark...@megaron.gr
javax.mail.MessagingException: Could not connect to SMTP host: mail.megaron.gr, port: 25;
  nested exception is:
java.net.ConnectException: Connection refused: connect
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:275)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at javax.mail.Transport.send0(Transport.java:168)
at javax.mail.Transport.send(Transport.java:98)
at org.dspace.core.Email.send(Email.java:366)
at org.dspace.eperson.AccountManager.sendEmail(AccountManager.java:262)
at org.dspace.eperson.AccountManager.sendInfo(AccountManager.java:222)
at org.dspace.eperson.AccountManager.sendRegistrationInfo(AccountManager.java:67)
at org.dspace.app.webui.servlet.RegisterServlet.processEnterEmail(RegisterServlet.java:260)
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:641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:286)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:272)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1730)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)
... 35 more
2012-10-24 16:36:10,734 DEBUG org.dspace.app.webui.util.JSPManager @ anonymous:session_id=4CA712FE7AD7B0E0B6D0FD011B303537:ip_addr=192.168.0.150:view


thank you for your help,
Vera
--
β.

helix84

unread,
Aug 26, 2015, 9:59:29 AM8/26/15
to Vera Kriezi, Hardik Mishra, dspac...@lists.sourceforge.net
On Wed, Oct 24, 2012 at 3:46 PM, Hardik Mishra <hardik...@aol.in> wrote:
> Follow this link:
> http://blog.stuartlewis.com/2009/09/05/using-gmail-with-dspace/.
> Its bit old but should work.

Ugh... Use a your gmail account's SMTP server only as a last resort.

The proper way is to ask about your network administrator about SMTP
server address and settings. It's the same thing as you set up in your
email client.

Regards,
~~helix84

Vera Kriezi

unread,
Aug 26, 2015, 9:59:47 AM8/26/15
to hel...@centrum.sk, Hardik Mishra, dspac...@lists.sourceforge.net
thank you all for the advices. The error persists and it seems to be something wrong with the mail server.
I will contact IT dept. for any clues.

Kind regards,
Vera
--
β.
Reply all
Reply to author
Forward
0 new messages