You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Frank Lyaruu <fl...@gmail.com> on 2015/01/07 10:30:39 UTC
Disabling authorization in Karaf webconsole
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
Re: Disabling authorization in Karaf webconsole
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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é
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Disabling authorization in Karaf webconsole
Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi Frank,
I fear you can't with the one provided by the Karaf feature.
Though you should be able to install the standard Felix WebConsole.
Only downside you don't the have the Karaf extensions for it available.
For that you'd need to install those bundles on top.
Basically a custom feature with the Felix Bundles should work.
Another alternative un-checked though comes to my mind.
Just install the webconsole feature and after that un-install the
org.apache.karaf.webconsole.console bundle. That's the one which adds the
Security stuff to it.
regards, Achim
2015-01-07 10:30 GMT+01:00 Frank Lyaruu <fl...@gmail.com>:
> 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
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
Software Architect / Project Manager / Scrum Master
Re: Disabling authorization in Karaf webconsole
Posted by Frank Lyaruu <fl...@gmail.com>.
Ok, I can work with that!
thanks guys!
On Wed, Jan 7, 2015 at 10:39 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:
> Hi Morgan,
>
> no it's not this that Frank talks about: it's the Basic Auth on the Karaf
> WebConsole.
>
> Regards
> JB
>
> On 01/07/2015 10:36 AM, Morgan Hautman wrote:
>
>> Hello Frank,
>>
>> In your etc/org.ops4j.pax.web.cfg file you can set the authentication to
>> -> org.osgi.service.http.secure.enabled=false
>>
>> You also have a secure and non-secure port
>>
>> Default ones:
>>
>> org.osgi.service.http.port=8040
>>
>> org.osgi.service.http.port.secure=9001
>>
>> Hope this helps.
>>
>> *From:*Frank Lyaruu [mailto:flyaruu@gmail.com]
>> *Sent:* woensdag 7 januari 2015 10:31
>> *To:* user@karaf.apache.org
>> *Subject:* Disabling authorization in Karaf webconsole
>>
>> 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é
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
Re: Disabling authorization in Karaf webconsole
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Morgan,
no it's not this that Frank talks about: it's the Basic Auth on the
Karaf WebConsole.
Regards
JB
On 01/07/2015 10:36 AM, Morgan Hautman wrote:
> Hello Frank,
>
> In your etc/org.ops4j.pax.web.cfg file you can set the authentication to
> -> org.osgi.service.http.secure.enabled=false
>
> You also have a secure and non-secure port
>
> Default ones:
>
> org.osgi.service.http.port=8040
>
> org.osgi.service.http.port.secure=9001
>
> Hope this helps.
>
> *From:*Frank Lyaruu [mailto:flyaruu@gmail.com]
> *Sent:* woensdag 7 januari 2015 10:31
> *To:* user@karaf.apache.org
> *Subject:* Disabling authorization in Karaf webconsole
>
> 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é
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
RE: Disabling authorization in Karaf webconsole
Posted by Morgan Hautman <mo...@gmail.com>.
Hello Frank,
In your etc/org.ops4j.pax.web.cfg file you can set the authentication to -> org.osgi.service.http.secure.enabled=false
You also have a secure and non-secure port
Default ones:
org.osgi.service.http.port=8040
org.osgi.service.http.port.secure=9001
Hope this helps.
From: Frank Lyaruu [mailto:flyaruu@gmail.com]
Sent: woensdag 7 januari 2015 10:31
To: user@karaf.apache.org
Subject: Disabling authorization in Karaf webconsole
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