Yep... probably myselft, trying to solve something else.

Enviado do Email<https://go.microsoft.com/fwlink/?LinkId=550986> para Windows

De: Justin Bertram<mailto:jbert...@apache.org>
Enviado:sexta-feira, 11 de fevereiro de 2022 17:33
Para: users@activemq.apache.org<mailto:users@activemq.apache.org>
Assunto: Re: Create console user without restart

I'm glad you got it working.

To be clear, the default login.config should have reload=true so someone
must have removed it from the login.config in your environment at some
point.


Justin

On Fri, Feb 11, 2022 at 2:22 PM Edson Richter <edsonrich...@hotmail.com>
wrote:

> Right on bullseye... I had no “reload=true” in login.config.
> Adding it, works like a charm.
>
> Thank you!
>
> Edson
>
> Enviado do Email<https://go.microsoft.com/fwlink/?LinkId=550986> para
> Windows
>
> ________________________________
> De: Justin Bertram <jbert...@apache.org>
> Enviado: Wednesday, February 9, 2022 10:32:19 PM
> Para: users@activemq.apache.org <users@activemq.apache.org>
> Assunto: Re: Create console user without restart
>
> Both of these options should work by default. I just tested a default
> instance of 2.20.0 by using the "user add" command and also by modifying
> the properties files manually. Both methods allowed me to add a user and
> then login with that user without restarting the broker.
>
> Do you have reload=true set on your PropertiesLoginModule in your
> etc/login.config?
>
> It's worth noting that the properties files are generally not recommended
> for production use. Here's a warning from the documentation [1]:
>
> > In general, using properties files and broker-centric user management for
> anything other than very
> > basic use-cases is not recommended. The broker is designed to deal with
> messages. It's not in the
> > business of managing users, although that functionality is provided at a
> limited level for convenience.
> > LDAP is recommended for enterprise level production use-cases.
>
>
> Justin
>
> [1]
>
> https://activemq.apache.org/components/artemis/documentation/latest/security.html#propertiesloginmodule
>
> On Wed, Feb 9, 2022 at 6:39 AM Edson Richter <edsonrich...@hotmail.com>
> wrote:
>
> > Artemis 2.20.0
> > Hawtio 2.14.0
> > Hawtio Core 4.15.0
> > Hawtio Integration 4.16.5
> > Hawtio OAuth 4.12.5
> > java.class.path  /opt/apache-artemis-2.20.0/lib/artemis-boot.jar
> > java.class.version           55.0
> > java.compiler    j9jit29
> > java.fullversion 11.0.13+8 JRE 11 Linux amd64-64-Bit Compressed
> References
> > 20211022_206 (JIT enabled, AOT enabled) OpenJ9 - e1e72c497 OMR -
> 299b6a2d2
> > JCL - 43ed76284c based on jdk-11.0.13+8
> > java.home         /usr/local/java/jdk-11.0.13+8
> >
> >
> > Is there any way to create a console user without restarting Artemis?
> > Attempt 1: I’ve tried to create the user in “artemis-user...” file and
> > then touch broker.xml for reaload => try login, result is fail. Restart
> > artemis, then user is able to login.
> >
> > Attempt 2: Connected to console, go to operations => addUser => user
> > created. Checked “artemis-user...” file and the user is there => try
> login,
> > result is fail. Restart artemis, then user is able to login.
> >
> > So, restarting works, but in a busy enviroment, that’s not an option.
> > I’m sure I’m doind something wrong, and I need your guidance.
> >
> > Thanks in advance,
> >
> > Edson
> >
> >
> > Enviado do Email<https://go.microsoft.com/fwlink/?LinkId=550986> para
> > Windows
> >
> >
>

Reply via email to