asadmin - Problem with create-jacc-provider

37 views
Skip to first unread message

Tomasz Bembnista

unread,
Jan 31, 2018, 4:29:40 AM1/31/18
to Payara Forum

Hi all,

I'm trying to create JACC provider with asadmin command create-jacc-provider. The provider will be created, but the param --property will be not considered.

My command looks like this:

create-jacc-provider --policyproviderclass com.mydomain.PolicyProvider --policyconfigfactoryclass com.mydomain.PolicyConfigurationFactory --property abc=cdf jaac_provider

but the list of properties in created provider is empty:











































I'am using docker image payara/server-full latest (175).

Have you any idea what is wrong with the command? Or is it known issue? Any workarounds?

Thanks in advance,
Tomek


Ondrej Mihályi

unread,
Jan 31, 2018, 8:34:20 PM1/31/18
to Tomasz Bembnista, Payara Forum
Hi Tomasz,

This is a bug in Payara Server. I've tested in and confirm it happens on my side too. Please raise it as an issue on github: https://github.com/payara/Payara/issues/

There's a very simple workaround though. The properties can be added after the JAAC Provider is created, etiher in the Admin console or with asadmin `set` command.

The corresponding asadmin command would look like:

set configs.config.server-config.security-service.jacc-provider.jaac_provider.property.abc=def

This command sould work as is in Docker, because the default configuration is server-config. Only in case you create a separate configuration, you would have to replace server-config with the name of your configuration.

I hope that helps. But even if it does, please raise the bug on github so that we remember to fix it.

Ondro



--
You received this message because you are subscribed to the Google Groups "Payara Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/payara-forum/b1640b3c-55db-4289-9853-6570aff6b855%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tomasz Bembnista

unread,
Feb 1, 2018, 4:34:32 AM2/1/18
to Payara Forum
Hi Ondro,

thank you very much. The workaround works. I have created an issue on github,

Best regards,
Tomek

Fabian Schöneborn

unread,
Feb 1, 2018, 9:37:19 AM2/1/18
to Payara Forum
Hey Ondro,

thank you very much. I ran in exactly the same problem. The workaround works fine :)

Best regards,

Fabian


Am Donnerstag, 1. Februar 2018 02:34:20 UTC+1 schrieb Ondro Mihályi:
Hi Tomasz,

This is a bug in Payara Server. I've tested in and confirm it happens on my side too. Please raise it as an issue on github: https://github.com/payara/Payara/issues/

There's a very simple workaround though. The properties can be added after the JAAC Provider is created, etiher in the Admin console or with asadmin `set` command.

The corresponding asadmin command would look like:

set configs.config.server-config.security-service.jacc-provider.jaac_provider.property.abc=def

This command sould work as is in Docker, because the default configuration is server-config. Only in case you create a separate configuration, you would have to replace server-config with the name of your configuration.

I hope that helps. But even if it does, please raise the bug on github so that we remember to fix it.

Ondro


2018-01-31 10:29 GMT+01:00 Tomasz Bembnista <tomasz.b...@gmail.com>:

Hi all,

I'm trying to create JACC provider with asadmin command create-jacc-provider. The provider will be created, but the param --property will be not considered.

My command looks like this:

create-jacc-provider --policyproviderclass com.mydomain.PolicyProvider --policyconfigfactoryclass com.mydomain.PolicyConfigurationFactory --property abc=cdf jaac_provider

but the list of properties in created provider is empty:











































I'am using docker image payara/server-full latest (175).

Have you any idea what is wrong with the command? Or is it known issue? Any workarounds?

Thanks in advance,
Tomek


--
You received this message because you are subscribed to the Google Groups "Payara Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages