Hi Frank,

the authentication is defined in the WebConsole branding bundle.

In the branding OSGI-INF/blueprint/webconsole.xml, you can see:

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";

xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0";
           default-activation="lazy">

    <cm:property-placeholder persistent-id="org.apache.karaf.webconsole">
        <cm:default-properties>
            <cm:property name="realm" value="karaf"/>
            <cm:property name="role" value="admin"/>
        </cm:default-properties>
    </cm:property-placeholder>

<bean id="securityProvider" class="org.apache.karaf.webconsole.JaasSecurityProvider">
        <property name="realm" value="${realm}"/>
        <property name="role" value="${role}"/>
    </bean>

    <service auto-export="interfaces" ref="securityProvider" />

</blueprint>

Just remove this part to disable the authentication (removing the securityProvider service is enough).

However, it's not possible to disable it (I will create a Jira for that), so you have to tune the provided branding bundle.

Regards
JB

On 01/07/2015 10:30 AM, Frank Lyaruu wrote:
Hi Karaf,

Is there an easy way to disable the Basic Auth for the webconsole? It
conflicts with my own auth.
I see that the plain Felix webconsole can be disabled by removing the
username value:

http://felix.apache.org/site/apache-felix-web-console.html

but that does not really translate to the karaf web console, I've tried
removing the role and realm setting.

Any tips?

regards, Frank

--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to