Message Boards

Liferay 7.1.3 CE GA4: unable to customize credentials for Felix Console

thumbnail
Alessandro Candini, modified 3 Years ago.

Liferay 7.1.3 CE GA4: unable to customize credentials for Felix Console

Regular Member Posts: 130 Join Date: 10/17/15 Recent Posts

Hi everyone, we're struggling with the following situation.

On a Liferay 7.1.3 CE GA4 instance, we're using the org.apache.felix.webconsole-4.3.8-all.jar.

Everything works fine, but we're not able to change the default credentials for the console access.

Following official documentation, we've put the org.apache.felix.webconsole.internal.servlet.OsgiManager.cfg inside ${LIFERAY_HOME}}/osgi/configs folder; that file contains the following:

username="test1"
password="test1"

We've seen from Liferay logs that the configuration is loaded and from the Felix Console itself (!), we can see it in Status > Configurations but the new credentials does not work anyway: they continue to remain the defaults.

Any suggenstions will be really appreciated.

Thank you!

thumbnail
Antonio Musarra, modified 3 Years ago.

RE: Liferay 7.1.3 CE GA4: unable to customize credentials for Felix Console

Junior Member Posts: 66 Join Date: 8/9/11 Recent Posts

Hi Alessandro. I have good news for you.
To apply the configurations to the Web Console just proceed in this way. You should add the following properties to the Liferay configuration file.

The properties you see are those indicated by the Web Console documentation. The difference is that I took advantage of the Framework Properties that Liferay's allows you to specify.

The Web Console documentation is quite data, it may be that the vi configuration file OSGi configuration does not work because maybe they have done some refactoring, to say it would have to go and see the source code.

I hope it was helpful to you.

##
## Module Framework
##

    #
    # Pass arbitrary extra properties to the framework using the prefix:
    # "module.framework.properties." to avoid avoid colliding with other
    # frameworks that may be running within the same JVM.
    #
    module.framework.properties.felix.webconsole.username = administrator
    module.framework.properties.felix.webconsole.password = $admin1234$