Problem with Creating user in docker

65 views
Skip to first unread message

K S

unread,
Jan 27, 2024, 2:09:30 PM1/27/24
to DSpace Technical Support
Hi,
When creating new users, how can we set/reset password? Is it only through email? If it is only through email, when using docker deployment, we don't get the email to reset password. Was wondering how we can create user and set password when using DSPace with docker deployment. Thanks so much.

Eike Martin Löhden

unread,
Jan 29, 2024, 1:34:34 AM1/29/24
to dspac...@googlegroups.com

Hej!

there is another possibility: you can set the user and password in the command line via "dspace create-administrator" and later change the privileges of the account via the UI.

However, getting dspace-mail running inside the docker container is a bit tricky. If you have a SMTP client running on your host, you'll can address it via "host.docker.internal".  You have to add "--add-host=host.docker.internal:host-gateway" to your docker-run command, so every request to your host can be routed through this address. After that, you have to allow port 25 in the firewall of the host for your docker-network IP-range and perhaps also modify the setting of your mail client. That's how it worked for us.

Kind regards,
Eike.

Am 27.01.24 um 20:09 schrieb K S:
Hi,
When creating new users, how can we set/reset password? Is it only through email? If it is only through email, when using docker deployment, we don't get the email to reset password. Was wondering how we can create user and set password when using DSPace with docker deployment. Thanks so much.
--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/9e2af31c-8912-4be0-bd13-9215f7385608n%40googlegroups.com.
-- 
Eike Martin Löhden
Projektmitarbeiter, DFG-Projekt mediarep, Infrastruktur Digitale Sammlungen
Philipps-Universität Marburg
Deutschhausstraße 9
35032 Marburg

+49 6421 28-25238
eike.l...@staff.uni-marburg.de

mwood...@gmail.com

unread,
Jan 29, 2024, 8:38:22 AM1/29/24
to dspac...@googlegroups.com
On Sat, Jan 27, 2024 at 07:09:30PM +0000, K S wrote:
> When creating new users, how can we set/reset password? Is it only through email? If it is only through email, when using docker deployment, we don't get the email to reset password. Was wondering how we can create user and set password when using DSPace with docker deployment. Thanks so much.

'bin/dspace user' can create, delete, modify, and list users from the
command line. If you have a large number of users to create or
modify, you can make a script of 'user' commands and feed it to
'bin/dspace read'.

--
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
signature.asc
Reply all
Reply to author
Forward
0 new messages